I have “close” button and the code behind is @command([File close window]). but when I edit the document in the web and save and then close, sometimes it will go back to view and sometimes not.
The strange thing is that, when I open the document, click on edit then save and then again edit & save. after that if close it will behave like history.back.
My requirement is very straight, if user click on close it will back to the view from where the document is opened.
Subject: RE: @commad([File Close window] is not working properly in web
You need to carry the ViewName value into you form either OnLoad of your form or from a WQO Agent. So when you open a document from a view ($$viewtemplate) the ViewName field value will be available.
Subject: RE: @commad([File Close window] is not working properly in web
I’m sorry. Just a monday morning hang over. You don’t need to carry the value etc…forget about that. If you just create a ViewName field with the formula @ViewTitle that should be enough. When you open a document it should evaluate to a view name from which it’s opened.