I am developing a web application that displays some data in different views. I have 2 frames, one with the view names to select and the other with the view itself. In each view, the user can select a button to create a new document (Same form name (selection formula) across multiple views). When the user selects “New” it composes the document. When the user saves the document, I want it to return to the view from whence it was launched (and refreshed to show the new doc in the view). I’m looking for the correct syntax to put in the $$return field on the form.
Any suggestions would be appreciated.
Thanks
Leo
Subject: $$Return to different views
Hi Leo,using the CGI-variable Path_Info_Decoded might help - search the designer help for “cgi”.
Path_Info_Decoded retrieves the path, db-name, design-element and url-command used in the URL:
e.g. “/qvuser_data/websam20.nsf/eigene?OpenView”
HTH,
Buzzy
Subject: RE: $$Return to different views
Sorry,my first answer won’t help you :-/
What might work is using JavaScript (window.referrer, I think) which tells you, from where the curent page is called. Store this value in a field, extract the view and use it in $$ReturnValue…I hope it will work this way…
Buzzy
Subject: RE: $$Return to different views
Possibly it’s easier to write a WQS agent to interrogate the doc, find out which view you were in, then print out the new URL?
Subject: RE: $$Return to different views
but how does the doc know from which view it was initiated?
Subject: RE: $$Return to different views
It’s a built-in feature, and that’s all you need to know about it.
Subject: RE: $$Return to different views
READ THE RESPONSE ABOVE:
@ViewTitle
Subject: $$Return to different views
Have a computed for display hidden field on the form called “ReferView”, using the formula
@ViewTitle
You have to be careful if you are using a view alias though and will need to use @sybset accordingly.
You then use JavaScript to create the URL to return to.
This is just a 'different" way of doing it.
Now, why are you using Framesets on the web? They are just plain evil and you can get a lot more flexibility, as well as a better user experience, by not using them.