JScript
Kalipso - Developing - Specific options - JScript
Last updated
Kalipso - Developing - Specific options - JScript
Last updated
Kalipso allows you to create your own JavaScript functions (without graphic interface) and execute them. The objective is to allow you to make a high complexity algorithm that would be harder to make using Kalipso Actions and Functions.
When the option is selected, this screen appears:
In the window you can access the list of Java Scripts already created. The table is divided in two columns:
Name - Name for the JScript.
Description - Description for the JScript. Description that you want to give to the JScript. This property is for your information only.
For the management of Java Scripts, three simple icons are available:
Add - Adds Jscript (opens a new window)
Edit - Edit a selected Jscript in the table
Delete - Deletes a selected JScript in the table.
When you click on add a new Java Script a new window appears that allows you to create it. This window is similar to the one that appears when editing an already created Java Script. Therefore, the process for both actions is described simultaneously.
The fields are:
Name - Name for the JScript
Description - Description for the JScript. Description that you want to give to the JScript. This property is for your information only.
Parameters - Field to insert JScript variables that can be passed as parameters in to the Code.
Code - Area for the introduction of Java Script code.
Next to the fields for the name and description is a button to Test the code. Clicking, Kalipso will test the result of the code entered and present it in a window. The test combines code and parameters fields.The testing process is preceded by a window that displays the code to be tested, as shown in the image below.
When you click on next, the test is performed and the result appears.
Before testing you need to save first