Invoke javascript function.
Categories > Logic > rex_jsshellIntroductionLinksDependenceUsageInvoke function by actionsInvoke function by expressionCreate instanceMore examples
None
Load javascript
Action:Load API
(Sample capx)Action: Request project file
Action:Execute Javascript
(Sample capx)Action:Set function name
Add parameters
Action:Add value
Action:Add boolean
Action:Add null
Action:Add JSON
Action:Add callback
Action:Add C2 function callback
Action:Add object
Action:Invoke
Return value
Expression:ReturnValue
Expression:ReturnValue(key)
, to get property of return valueExpression:ReturnValue(key, defaultValue)
Expression:Prop(key)
Store return object to variable (Sample capx)
Expression:Prop(key)
Expression:Prop(key, defaultValue)
Callback
Condition:Callback
, from callback parameter (Action:Add callback
)
Expression:Param(n)
, to get nth parameter of callbackExpression:Param(n, key)
, to get property of nth parameter of callbackExpression:Param(n, key, defaultValue)
Condition:On function
of official function object, from C2 function callback (Action:Add C2 function callback
) (Sample capx)
Expression:Param(n)
, to get nth parameter of callbackExpression:Call(functionName, parameter0, parameter1, ...)
Parameter
Expression:ValueParam
Expression:BooleanParam
Expression:NullParam
Expression:JSONParam
Expression:CallbackParam
Expression:C2FnParam
Expression:ObjectParam
Action:Set object type
Add parameters
Action:Add value
Action:Add boolean
Action:Add null
Action:Add JSON
Action:Add callback
Action:Add C2 function callback
Action:Add object
Action:New instance
Expression:Prop(key)
Expression:Prop(key, defaultValue)