Injecting the Forms Runtime Adapter in the Browser

The Forms Runtime Adapter is hosted by the BPM runtime. To use this, you first need to load the Forms Runtime Adapter file in the page. This is typically done via a <script> tag in the <head> section of the HTML document.

<script src=“http://<host-name>:<port>/bpmresources/formsclient /formsclient.nocache.js”/>

See Rendering a TIBCO Business Studio Form for more information. Once the JavaScript API loading is complete, it notifies the client application by invoking a function called onTIBCOFormRunnerLoad. The client application can define this function on the page and receive notification of the availability of com.tibco.forms.client.FormRunner.

For example:

function onTIBCOFormRunnerLoad() {
    // Forms Runtime Adapter is now available for use on the page.
    // com.tibco.forms.client.FormRunner.loadForm() can be accessed from now on
    // to load the form.
}