Solved

Navigation within search results on web

Posted on 2002-07-23
19
243 Views
Last Modified: 2013-12-18
Hi,
As we do FTsearch on client and can navigate within search results through "Navigate Next", "Navigate Previous" smarticons. That is, we open first document from search results and move back and forth through smarticon buttons.
Is there any way of navigating within search results obtained through "....viewname?searchview&Query=....".
My requirement is to have "Next" and "Previous" buttons/Links in the form which will take user to Previous or Next document in the search results and not in the main view on which we have performed search.

Thanks
0
Comment
Question by:ad_kumar
  • 10
  • 8
19 Comments
 

Expert Comment

by:giusepe
ID: 7172257
You can use this formulas in Link Hotspots to navigate in Previous and Next Documents

Previous documents:
@DbCommand("Domino"; "ViewPreviousPage")

Next documents:
@DbCommand("Domino"; "ViewNextPage")

These formulas work for the web and when you make a search using serachView&Query=....
You should use these formulas in a $$ViewTemplate form so you can customize it with Previous and Next navigation for the search.

Hope this helps !!!

Giusepe
0
 

Author Comment

by:ad_kumar
ID: 7173414
Hi Giusepe,

Thanks for your prompt response and help.

But I am already using the formula for moving page to page in search result list.

My requirement is :

I open say first document from the search result list, there will be two links (Next & Previous) in the document/form.
On clicking the links I want to goto next or previous DOCUMENT listed in SEARCH RESULT LIST and NOT in the view on which I have run search query.

Thanks
0
 

Author Comment

by:ad_kumar
ID: 7173645
Hi Giusepe,

Thanks for your prompt response and help.

But I am already using the formula for moving page to page in search result list.

My requirement is :

I open say first document from the search result list, there will be two links (Next & Previous) in the document/form.
On clicking the links I want to goto next or previous DOCUMENT listed in SEARCH RESULT LIST and NOT in the view on which I have run search query.

Thanks
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 7177160
Have you tried the following:

To navigate to the next document in the view:
@Command([NavigateNext]);
To navigate to the previous document in the view:
@Command([NavigatePrev]);
0
 

Author Comment

by:ad_kumar
ID: 7179319
Hi jerrith,

I tried these but these commands open the next document in the VIEW.
I want to open next document in the SEARCH RESULT LIST.

It'll be great haelp if you could give me solution for my problem.

Thanks
0
 

Author Comment

by:ad_kumar
ID: 7179424
Hi jerrith,

I tried these but these commands open the next document in the VIEW.
I want to open next document in the SEARCH RESULT LIST.

It'll be great haelp if you could give me solution for my problem.

Thanks
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 7179436
I don't think this is an easy one, but I'll have a crack at it later today if I find the time (I first need to finish some work for my client).
If you haven't heard from me by Monday, remind me by posting a comment here.
0
 

Author Comment

by:ad_kumar
ID: 7184292
Hi jerrith,

Have you found any solution?
0
 

Author Comment

by:ad_kumar
ID: 7184502
Hi jerrith,

Have you found any solution?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 7184987
I'm sorry, I didn't find the time to look into it yet.
I'm not even sure there is a solution for this, except to do it programmatically.

Here's an idea :
1) Perform the search through LotusScript and put the found documents in a folder.
2) Embed this folder in a $$ViewTemplate page to display it in any format you like (HTML or java applet).
3) When you open a document from this folder, you can navigate using the @Command([NavigateNext]) and @Command([NavigatePrev]) commands.
4) To clean up the folder, put a javaScript line in onUnload event of the $$ViewTemplate page to launch an agent that removes all documents from the folder.
For example:location.href="Cleanup+Search+Results?OpenAgent" would launch the agent "Cleanup Search Results".

I don't know if you can build your agents from this or not. First let me know what you think of the idea and if you want me to code it for you.
If you want me to code it for you, you need to give me more info on how you search the database.

0
 

Author Comment

by:ad_kumar
ID: 7185183
Hi jerrith,

Thanks for your response. Yes you are right, I am searching for some direct solution for past many weeks but couldn't found any.
Your idea definetly seems good.
Currently I am not using db.search by which I could get collection of result documents and put them into some folder. I am using simple
ViewName?SearchView&Query=[FieldName]=value type of query on web. Can I get handel for search result documents in this case also, as I could get all docs in collection through db.search.
No problem I will write agent to clean documents from the folder, on load of the $$ViewTemplate form containing the embaded folder.

Please tell how can I get collection/handel of results documents got through serachview&query= type of search query.

Thanks
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 7185191
You need to construct the formula you would use in Formula language to perform the query, then pass this string to db.search to get the collection of documents.
If you use a customized search form, you can build the search string in a WebQuerySave agent or just run the agent from an an action button or hotspot button on the search form.
You can then reference the search form as the DocumentContext in the agent to construct the search string and perform the db.search in script.

You can first cleanup the temporary folder, then perform the search and put the resulting document collection in the folder.
0
 

Author Comment

by:ad_kumar
ID: 7185340
When I'll put the documents in folder were they be copy of actual documents or the actual documents getting seened in flder, because I am doing some actions on these documents i.e. changing status of these documents etc.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 7185378
If you put a document in a folder, this is the original document, so when you perform an action on a document in the folder, the original document is changed.
For the same reasone, when you remove a document from the folder, it is still available in your database, it's just no longer visible in the folder.
0
 

Author Comment

by:ad_kumar
ID: 7185423
Can I contact through mail jerriht? Can you give me your mail ID?
0
 
LVL 8

Accepted Solution

by:
Jean Marie Geeraerts earned 80 total points
ID: 7185578
mailto:jean-marie.geeraerts@philips.com
Am now going home (enjoying a cold one because it is way too hot here), but will definitely get back to you tomorrow morning.
0
 

Author Comment

by:ad_kumar
ID: 8548964
Happy now?
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 8549048
Thanks for the 'A', not sure whether I deserved it allready, though. Did you solve your problem?
My mail address has changed since this post. My current business address is jmg@xatrax.com
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 8549051
Oh, I see I only got a B ;-)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now