-
I am trying to do a redirect in postOpenDocument to bypass read mode and go straight to edit, after running some code to see if that’s appropriate. So the user clicks a link that says it’s going to read the document, pOD runs an Agent to check the document’s status, and if it’s “right” then it bypasses read and goes directly to edit.
-
I thought to use context.getUrl(), but that’s pointing to the server, not any particular application or document. I see from the Agent log that HTTP_REFER points to where I want to go. I’m going to see about using it.
-
BUT there may be something simpler, like currentDocument.setEditable() or some such.
Any ideas? Thanks for your time…