refreshing caller window

Probably not shocking to experienced Apex developers but this is a nice piece of code to discover:

onUnload="javascript:window.opener.doSubmit();"

in the On Load of a pop-up page will refresh the window that opened the pop-up.

Take a good look at the branches of the window that called the pop-up though to make sure the submit does what you want.
To make a specific branch to do something when the pop-up requests a submit of the caller window use

onUnload="javascript:window.opener.doSubmit('<SUBMITSTRING>');"

In the caller window make a branch with a condition ‘Request = Expression 1′ with <SUBMITSTRING> as Expression 1.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>