scriptedInterface

This consists of four separate samples of custom interfaces that are managed in custom JavaScript methods. For each of these samples, a ’source’ attribute is specified in the customInterfaces.xml file that contains the name of a custom method that must be created in JSXAPPS\workspace\application\js\AppMain.js.

The custom method is automatically invoked when the menu or toolbar button that launches the custom interface is executed. This custom method may utilize "helper" methods to control display characteristics of the tool that launches the interface, as well as manage the loading, placement, and display of the custom interface. The available helper methods are described in Custom Interface Helper Methods.

The scriptedInterface samples are:

  • Helper Methods - Demonstrates getting and setting attribute values of the menu or toolbar button that launches the custom interface.
  • simpleIframe - Demonstrates loading a simpleIframe custom interface. The http://www. bing.com maps website is loaded into an iFrame in "Area D" of the Workspace layout. An "address" is added as a parameter on the URL, specifying the location to display on the map. This address is obtained from the value of the 'Attribute2' attribute, of the selected item in a list of work items, in the user's Inbox.
  • simpleHubIframe - Demonstrates loading a simpleHubIframe custom interface by loading a web application into a Managed Hub iFrame. The application subscribes to selected WCC Component PageBus events and displays a list of the events received.
  • simplePrototype - Demonstrates loading a simplePrototype custom interface by loading a TIBCO General Interface prototype into "Area C" of the Workspace application layout.

Specific information about implementing these samples is provided in the readme.txt file in the following directory:

StudioHome\wcc\version\Samples\CustomInterfaces\scriptedInterface

Each of the samples can be modified to fit your particular requirements.