I need to know how to return user to the view where he came from after saving a document on web.I have multiple views for a single form. I have tried different ways with $Return field and HTTP_Referer but I am not getting anywhere.
I am looking for a working solution if somebody has.
Please help.
Subject: Return a user to view on web
Pass the view name in through the URL that opens the document - i.e. http://myserver.com/mydatabase.nsf/0/9023829084902834?EditDocument&view=
where computed field is @Subset(@ViewTitle;1) (this is all assuming that the view is being displayed in a $$ViewTemplateDefault.)
Then, in the form that the document opens to, create a field called returnView or whatever. Set it to computed for display. The formula should be @Right(query_string; “&view=”).
Your return field can then reference that field to get the name of the view to return to (or, if you’re running an agent on WebQuerySave, you can use the Print statement to go back to the view by printing out the URL including the view name.)
Subject: RE: Return a user to view on web
I am new to the web development on domino. I am opening views in a $$ViewTemplateDefault. But I do I pass view name in through the url that opens the doc?
Subject: RE: Return a user to view on web
In your view, make the column that contains the links be formula, instead of just choosing the field from a list. The formula should look something like this:
“<a href="” + @ReplaceSubstring(@Subset(@DbName;-1);“\”;“/”) + “/” + @Text(@DocumentUniqueID) + “?opendocument&view=” + returnView + “">” + fieldName + “”
Subject: RE: Return a user to view on web
Thanks for helping me.I am getting column value as
90366
on web, may be because my returnView field is not able to show the value. But when I change the view properties to “Treat view contents as HTML” the column values looks OK to me but it all scrambled data of all columns. I can send you the database if you can help me.
Subject: RE: Return a user to view on web
When you use “Treat view contents as HTML” you have to code in all of the
, and tags yourself.
Subject: RE: Return a user to view on web
Where I need to embed the
, and tags?
Should I put the and in column formula?
Subject: RE: Return a user to view on web
Yes, and the
go on the template form/page before and after the view.