Embedded View $$Return

I have an embedded view in a form that is viewed on the web. When a document is selected from the embedded view and closed, I want to return to the parent document. How can I do this?

Subject: Embedded View $$Return

There is more than one way to do this, depending on what you’re doing.

When a document is selected, are you displaying it or editing it?

If you are editing it, and want to save it, then want to go back to the form with the embedded view, you can code a $$Return field on the document with the URL of the form with the embedded view. The url needs to be in square brackets. Designer help explains this quite well.

If you are merely opening the documents for viewing, you can use a link on the document to go back to the form with the embedded view. A link hotspot would be fine for this; you can specify the design element that you want to go back to. Again, this is covered in Designer help

Subject: Embedded View $$Return

Hi Linda,

Some ways I think of (but not worked out completely):

  • If the documents in the embedded view are really responses it’s simple: you can use the parent unique id to build the $$Return field dynamically in the response doc.

  • Write the uniqueid of the parent to a cookie, then read it when opening the child and use it to create the $$Return manually

  • Use javascript for your $$Return to go back 2 steps in history (doesn’t feel comfortable to me, you never really know if it works, especially when there are refreshes involved etc.)

Martin Vereecken

http://www.bizzybee.be