?
Solved

Document count for internet based searches.

Posted on 2003-02-20
5
Medium Priority
?
281 Views
Last Modified: 2013-12-18
I have a R5 database running on the web.  In that I have various methods of searching the database.  Either though list boxes which return documents based on that category using an embedded view on a page.  The other way is using a serach bar which uses:

dbpath + "Searching?SearchView&Query=" + QueryString + "&Count=6&Start=1"

I am trying to display on the respective page & form the number of documents returned from the search and then use that number to hide/change the Next/Previous buttons.

Does that make sense??  Can anyone help?

Just to note the new pages are loaded using Javascript and not through a notes agent.
0
Comment
Question by:Controversy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
CRAK earned 400 total points
ID: 7986510
I have once seen a solution like that. It was bases on a $$viewtemplate with a $$ViewBody field.... I'm not sure if it also works for an embedded view. I can put a lot effort in right now (sorry for that), so you'll have to check that yourself. It does require some knowledge of stylesheets and Javascript!

You'll need to have the view size limited to e.g. 20 (or whatever you prefer).
In case of 20, bear in mind that domino always shows 1-20, 20-39, 39-...: the last document on a page gets displayed as the 1st on the next one. Thus: the very last page may contain only one page that was already shown on the previous page. In case of 20 search results: page 1 shows 1-20, page 2 shows #20 only.

Retrieve the Start-parameter's value from Query_String (or Query_String_Decoded).

Hide "Previous" when Start = "1" or Start = "".

Set a style to the next button (in a Div). Set visibility="hidden" by default. Use some ID to address the style later.

In the onLoad event (javascript) determine document.links.length and compare it to the maximum view size. If I remember well, you should set document.getElementById(<your styles ID>).style.visibility = "visible" when Start equals or exceeds (I can't check that right now) the max. view size.

Be aware that any additional links on the $$ViewTemplate may / will affect the value returned by document.links.length. Not sure if there was a correction for that somehow.

Anyway, I hope this points you in the right direction or is considered an assist in someone elses goal.
Good luck!
0
 
LVL 13

Expert Comment

by:CRAK
ID: 7986522
Small but important typo made: I can't (as in "can NOT") put in a lot of effort....
0
 

Author Comment

by:Controversy
ID: 7986587
Cheers for the pointer.  I will look into it.  I use the $$ViewBody on the form which displays the results of the second way of searching the database - ie the search bar.

Will keep you posted.
0
 

Author Comment

by:Controversy
ID: 7988125
Thanks for your help Crak.  Got everything working now.
0
 
LVL 13

Expert Comment

by:CRAK
ID: 7989320
Excellent job!
Thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question