Manage Learn to apply best practices and optimize your operations.

Refreshing embedded view from a child window

I have an embedded view on a form using the Java Applet and showing only the documents associated with the Account Name on that document. From that form, I launch a new window to fill out a driver information form. When I save the form, it saves and closes the new window and refreshes just the embedded view and not the entire form.

I will call the main form Form1 and the new window Form2.

Form1 has a JS function in the JS header as follows:

function refreshView() {
var viewApplet = document.applets.view;

Form 2 has a save button with the following code:
@Command([FileSave]); @Command([FileCloseWindow])

The $$Return field on Form2 is as follows:
"[" + dbName + "/redirect?OpenPage]"

Note: redirect is the name of the page I created with the following pass through HTML that closes the Form2 window:
<script language="javascript">
function closeWin(){
<body bgcolor="white" onLoad="closeWin();">

In the onUnload event in Form2, I have the following code that executes the function on Form1 to refresh the embedded view: window.opener.refreshView()

You open your Form1 and click the create button to create your new document (Form2). Save it and it automatically redirects and closes (so fast you don't even notice it) and the embedded view reflects the changes!

This is a compilation of ideas I found and tweaked in this forum over several days. It took 45 searches and help received from a coworker named Super Curt.

Dig Deeper on Domino Resources - Part 7

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...