A href Links in domino

hi all,

I have a job search page in my website. when the user searches for jobs, he gets a list of jobs that matches his search string. Once the user clicks on the job, he can apply to this job.

After the user applies to this job, he gets a confirmation page. Is there any way i can provide a link that takes him back to the search result page from the confirmation page.

For the confirmation page, I have used a $$ return field that says Thank you and provides a link to the main view.

It goes like this:

"

Thank you, " + who + "


<a

href=/register.nsf/Main+View?OpenView>Main View"

Is there any way i can provide a link to the search result page?

Any responces greatly appreciated…

Thanks,

Jay

Subject: One way

  1. Get the value of the search query string. You can do this either by (a) getting the “&Query=” string from the URL of the search results; or (b) by getting the value of the “Query” field on your customized search form (See Designer Help - Index - Search forms - described - Customizing search forms).

  2. Store the “escaped” query string in a cookie when the search results are displayed. You can use javascript triggered by the OnLoad event or the @SetHttpHeader function to do this.

  3. Create a Confirmation Page with the “Thank you” message and a button or link on it. Read the query from the cookie and construct the url for the link or button that runs the search again.

  4. In $$Return, call the Confirmation Page.

Subject: a href Links in domino

Depends on how the search is performed in the first place. If it’s done via an agent, you can have the search terms stored in either cookies, or fields on all subsequent docs.

Then, in your return field, instead of calling a view URL, call the agent again, passing in the search terms.

Subject: RE: a href Links in domino

no, not agent but I have used $$Viewtemplate and $$ searchtemplate forms to develop the search engine.

Let me state the problem again for clarity.

Once the user applies to the job, he sees a job confirmation page that says “Your job application has been sent.” Below that message i want to provide a link that takes him back to the search results page…

Can i do it using ?

Subject: RE: a href Links in domino

You didn’t need to restate your problem. I understand what you’re trying to do. But the fact remains that search results are not a “saved” entity, and so you’re going to have to pass the search terms to something to rerun the search and then send the user back to that.

Subject: RE: a href Links in domino

Is it possible to save the results in $$Viewbody field.

J

Subject: RE: a href Links in domino

I doubt it. The $$ViewBody field is a reserved field used to display embedded views. To the best of my knowledge the only thing it can contain is the name of a view.

Subject: a href Links in domino

try capturing the search results URL in a field… then you can use that field…?