I developed a web applications.The problem is if I access the application through my mailbox and after some approving workflow it would not return to the mailbox.
What is the script like to return to the original page? thanks.
I developed a web applications.The problem is if I access the application through my mailbox and after some approving workflow it would not return to the mailbox.
What is the script like to return to the original page? thanks.
Subject: RE: Return to the original window and close the pop-up window
Use HTML and MIME to create the email notifications. When you create a link to the workflow application, add a TARGET=“_blank” in the tag. That will leave the user’s email window open, so that when they decide they’re done and close the workflow app’s window, there they will be back in their mail file.
Subject: RE: Return to the original window and close the pop-up window
Thank you for your prompt response, but unfortunately it didnt work in my case.
My problem is when I click the Approve button, it will calls an agent to route the document. It close the document and return to default view. What I want is to close the whole application and return to mailbox.
Is there any alternatives? Thank you very much.
Subject: RE: Return to the original window and close the pop-up window
At a particular point you want to return to the user’s mailbox, exiting the application.
You can close the current web browser window using JavaScript window.close(). Depending how the window was opened, the IE browser may ask the user to confirm that they want to close the window. To avoid the prompt, you must either “sign” your JavaScript, or use a trick. I believe I’ve seen a tip that you can avoid the prompt by first setting window.opener = top – I haven’t tried it myself, and I don’t know whether it will continue to work, since MS may regard it as a bug.
Otherwise, you can probably use $$Return field to open the user’s mailbox. However, since you don’t say what kind of mailbox this is, I have no way of telling whether the Domino application has a way to locate the mailbox.
Subject: RE: Return to the original window and close the pop-up window
Thank you very much Andre,it works fine now. I used this script:
if (top.window.history.length ==0)
{top.window.close(); }