Topics

03 Troubleshooting
Designer
Web Server uses last @SetTargetFrame/@Command

@SetTargetFrame is a new @Function that works with certain @Commands. See the "@SetTargetFrame" topic in Domino 5 Designer Help for a list of compatible @Commands.

This note discusses the effects of multiple @SetTargetFrames and @Commands.

Program a button or hotspot as follows:

@SetTargetFrame("FrameA")
@Command([OpenForm]; "Form A");
@SetTargetFrame("FrameB")
@Command([OpenForm]; "Form B");

In the Notes client, this formula opens Form A in FrameA and Form B in FrameB. In a Web browser, only the last @SetTargetFrame @Command combination executes, so that Form B opens in FrameB, but Form A does not open in FrameA.

To avoid this problem and to open multiple pages in multiple frames from one button or hotspot on the Web Server, use JavaScript. The example below assumes that there are three frames in the frameset.

FrameNav has two sibling frames named FrameA and FrameB.

The page loaded in FrameNav can have a hotspot or button that executes the following JavaScript code:

parent.FrameA.location = "http://myserver/mydb.nsf/FormA?OpenForm";
parent.FrameB.location = "http://myserver/mydb.nsf/FormB?OpenForm";