$$Return problem

I have a form, with an author field, that has a $$Return field that work perfectly … if you are listed in the author field. If you are not listed in the author field, you can read the document and when you hit the save and exit button, it does a file save and file closewindow, it does not show the same thing as if you had correct authority.

The form is selected from a view that is within a frameset. When it works correctly it will prompt the user with a list of option on where to go. When someone who is not in the author list hits save and exit it doesn’t work correctly, it takes you to the view, but doesn’t show the frameset, just the view.

Any help would be appreciated

Subject: $$Return problem

The $$Return is not at fault. If there is an unrecoverable submission error, the database should throw the user back to the default database opening option. In this case, the user is not an allowable author for the document, which is an unrecoverable error.

Subject: $$Return problem

If the user isn’t a listed author and they hit a button with filesave; fileclosewindow, then the save doesn’t work (since the doc isn’t in edit mode, it couldn’t possibly work) but the window closes – with no error message about the failed filesave. Since there was no submit, the $$Return is ignored. When executing fileclosewindow on the web, the user is redirected to a view.

Hide your submit button in read mode, and show instead a Close button that takes you where you want to go a la your $$Return code.

Subject: RE: $$Return problem

Bruce,

Thanks for the help. I guess your answer is my weakness. I tried what you said, but I’m unfamiliar with writing that code. I tried to take the code out of the $$Return field and put it in the close button, but to no avail. OBviously I’m not doing correctly. Can you post an example of what the code should look like?

Thanks in advance.

Subject: RE: $$Return problem

The code in a $$Return field can take many forms. If it’s in the format “[/some_url]” for example (note the square brackets), your close button could read @urlopen(“/some_url”) – note the lack of square brackets. If it contains a bunch of other statements before an @Command([OpenPage]/[OpenView]/etc), you can just use the last @Command([OpenWhatever]) in your close button. Without seeing exactly what’s in your $$Return field (and possibly other parts of your db), this vague response is the best I can give you. I assume you’ve read the hep doc on how to write a $$Return formula? (http://www.lotus.com/ldd/doc/domino_notes/Rnext/help6_designer.nsf/855dc7fcfd5fec9a85256b870069c0ab/765c65c71d64b5f885256c54004b6cd4?OpenDocument)

Subject: RE: $$Return problem

Bruce,

Thanks for the help. This will get me where I need to be! The $$return field works like a charm, it was just code in the “close” button that I was unsure of. I’ll let you know how it oes/went.

thanks again