Hitachi

JP1 Version 12 JP1/Navigation Platform Content Editing Guide


5.11.5 Items in the Attribute Settings window (JavaScript Plugin part)

Figure 5‒22: Attribute Settings window (displayed from JavaScript Plugin part)

[Figure]

Figure 5‒23: Attribute Settings window (When the input and output parameters are added)

[Figure]

The following describes the items in the Attribute Settings window.

Organization of this subsection

(1) Plugin name text box

Enter a plugin name of up to 20 characters. By default, JavaScriptPlugin is displayed as the plugin name. You must always enter a plugin name. An error occurs in the following cases:

(2) URL text box

Enter the URL of the HTTP request to be called, which must be no longer than 8,190 characters. An error occurs in the following case:

(3) JavaScript text area

Enter the JavaScript to be executed on the server. An error occurs in the following cases:

Important

Variables starting with ucnp are the system variables used with Navigation Platform. Do not use variables starting with ucnp in JavaScript.

(4) Execute in the browser check box

Specify whether to run JavaScript on a web browser (on the client-side).

If the JavaScript text area contains client-side JavaScript, select this check box to enable the JavaScript to run on a web browser (on the client-side).

If the JavaScript text area contains server-side JavaScript, clear this check box to enable the JavaScript to run on a server.

By default, this check box is cleared.

(5) Execute when return check. box

Specify whether to run JavaScript when clicking Back.

If this check box is selected, the JavaScript will run when clicking the Back button, or when returning by direct transition.

By default, this check box is cleared.

(6) Parameter settings area under "Input from parts"

You can specify an input parameter for JavaScript Plugin Parts.

(7) Parameter settings area under "Output to parts"

You can specify an output parameter for JavaScript Plugin Parts.

(8) Input Parameters

The cached value of the input parameter is set in the variable inside the JavaScript, and is referenced when invoked by a script inside the JavaScript. The default value of the input parameter is set before the JavaScript runs.

In addition, the input parameter is checked before the script inside the JavaScript is invoked. An error occurs in the following cases:

(9) Output Parameters

The value set in the variable inside the JavaScript is stored as the cached value of the output parameter.