Opening Forms when Testing an Application Locally

If you are launching a non-deployed WCC application locally to test it during development, forms will not open without performing the work around described here.

For more information about issues with launching applications from the local file system, also see Cross-Domain Scripting.

To configure your application so that forms will open properly when testing from the local file system, follow the procedure below.

Procedure

  1. Open the application’s launch fragment with a text editor.

    For information about the location of the launch fragment, see Launching a Non-Deployed Application.

  2. Locate the following line:
    <script type="text/javascript" language="javascript" src="../bpmresources/formsclient/formsclient.nocache.js"></script>
  3. In the src attribute, replace the ‘..’ with ‘http://Host:Port’,

    where:

    • Host is the name or IP address of the machine hosting the BPM runtime. Port is the port number used by the ActiveMatrix WebApp Implementation Type to communicate with web applications.

      For example:

      <script type="text/javascript" language="javascript" src="http://Austin:8080/bpmresources/formsclient/formsclient.nocache.js"></script>

      Also note that the httpConnector cannot be running SSL for this procedure to work, that is, the URL must include ‘http’, not ‘https’.

  4. Save and close the launch fragment.
    Note: Important: Before deploying your application, ensure that you reverse the changes you made in this procedure.