Tools User Interface Center JavaScript functions
The following JavaScript functions are available to your JSP page if it is inside of a Tools User Interface Center, from the top frame, accessible by top.functionName().
JavaScript Function | Description |
---|---|
put(String key, String value) | Stores the given value in the top level JavaScript object. |
get(String key, String defaultValue) | Returns the value of the given key from the top level JavaScript object. |
remove(String key) | Removes the given key from the top level JavaScript object. |
openHelp() | Opens a context sensitive help window. This is functionally equivalent to when the user clicks Help. |
setContent(String text, String link, Boolean newtrail, Object parameters) | Sets the content frame URL and updates the breadcrumb
trail. Supported arguments are:
|
showContent(String link, Object parameters) | Sets content frame URL without updating the breadcrumb
trail. Supported arguments are:
|
setHome() | Sets the content frame to the default Home page, and resets the breadcrumb trail to the initial state. For example, sets the breadcrumb trail to "logout - home". |
goBack() | Goes back one item in the breadcrumb trail and removes the last item from the breadcrumb trail. |
resetBCT() | Resets the breadcrumb trail to the initial state. For example, sets the breadcrumb trail to "logout - home". |
refreshBCT() | Refreshes the breadcrumb trail to reflect the current state. |
showProgressIndicator(Boolean flag) | Manually turns on or off the progress indicator. |
SaveData(Object model, String slotName) | Saves data so that it can be retrieved later,
either in the same page or in another page or element. Supported arguments
are:
|
getData(String slotName, int stepsBack) | Gets data saved before using the SaveData function.
Supported arguments are:
|
sendBackData(Object data, String slotName) | Sends a data object back to the calling wizard.
This is used in Wizard Chaining. Supported arguments are:
|
saveModel(Object model) | A function provided for convenience which saves
the "model" object, which is used often within notebooks, wizards,
and dialogs. Supported arguments are:
|
getModel(stepsBack) | A convenience function to get back the "model"
object previously saved. Supported arguments are:
|
setReturningPanel(String panelName) | Sets the returning panel name. This is typically
used in a Wizard Chaining scenario. Supported arguments are:
|
setRemoteHelp(String key) | Sets the remote helpkey. Use this function only if your next content page is served from a remote site. Due to a browser restriction, the tools user interface top frame cannot call remote content frame's getHelp() function. Instead, a help key must be set before the remote page is loaded. |
getRemoteHelp() | Gets the remote helpkey set by the setRemoteHelp() function. |
getCSSFile() | Gets the locale dependent cascading stylesheet
file name. For example, centre_zh_TW.css . |
menuVisible(int index, boolean flag) | Sets menu visible or hidden dynamically. Supported
arguments are:
|