Passing Parameters From an Invoke Script command

An Invoke Script command in a web layout can be used to pass custom parameters to a page. The parameters can be any values that are available via the Viewer API.

To pass parameters, edit the web layout. Define a new Invoke Script command. On the Additional Parameters tab, enter the JavaScript code to retrieve the values to be passed. Add the command to the toolbar, context menu, or task bar menu.

The JavaScript code can call Viewer API functions or other functions to retrieve values. To pass the parameters to a page, call the Submit method of the formFrame with the parameters, the page URL, and the name of the target frame. Use taskPaneFrame or scriptFrame as the target frame, depending whether the loaded page should be visible or not.

NoteThe parameters must include standard parameters like SESSION and MAPNAME, if they are needed.