If you would like to upgrade to a newer long-term support version of Studio Pro, see Moving from Mendix Studio Pro 8 to 9.
JavaScript Action Call
Introduction
The JavaScript action call activity can be used to call a JavaScript action. Arguments can be passed to the action, and the result can be stored.
Properties
There are two sets of properties for this activity, those in the dialog box on the left, and those in the properties pane on the right:
The JavaScript action call properties pane consists of the following sections:
Action Section
The Action section of the properties pane shows the action associated with this activity.
You can open a dialog box to configure this action by clicking the ellipsis (…) next to the action.
You can also open the dialog box by double-clicking the activity in the microflow or right-clicking the activity and selecting Properties.
JavaScript Action
This property sets the JavaScript action called by an activity.
Parameter
Depending on the selected JavaScript action, you will see a list of its parameters. Parameters pass data to the activity.
Arguments
Click Edit next to the parameter to fill in the arguments.
An argument is the input data that you are passing to the JavaScript action. For each JavaScript action parameter, you must supply an argument of the same type.
The values of the arguments are defined using expressions:
Return Type
This read-only property indicates whether you will retrieve a variable, object or list. The return type is defined by the JavaScript action.
Use Return Value
This property determines if the returned value from the JavaScript action should be available in the rest of the microflow or nanoflow. If Use return value is set to Yes, you will need to fill in the name of the variable, object, or list returned by the activity.
Variable Name, Object Name, or List Name
The name of the variable, list, or object returned by the activity. If it is an object or list, the Return type will indicate the entity which is being returned.