new ServiceCall()
This constructor is never used explicitly.
Extends
Members
Methods
-
execute(input)
-
Executes the attached AJAX service
Name Type Description input
ANY Input data for the AJAX service (type will depend on the binding type of the AJAX service) -
inherited getData(){Object}
-
Retrieve bound data associated this view/control. Only works for views/controls with bound data.
Returns:
Type Description Object Value of bound data. undefined
if the view has no data binding.Example
var dec1 = MyDecimal.getData();
-
getInputData(){ANY}
-
Returns the input for this service
Returns:
Type Description ANY Return type depends on type of attached input -
getLastError(){ServiceError}
-
Get most recent error thrown
Returns:
Type Description ServiceError -
getResult(){ANY}
-
Returns the result from the attached AJAX service
Returns:
Type Description ANY Return type depends on what is returned from the attached AJAX service -
isAutoRun(){boolean}
-
Returns the indicator for Auto Run
Returns:
Type Description boolean Indicates whether the service runs automatically on load and when the input value is updated -
inherited isBound(){boolean}
-
Indicates bound status of control.
Returns:
Type Description boolean True if the control is bound to coach data. -
inherited isLabelVisible(){boolean}
-
Checks if control label is visible
Returns:
Type Description boolean Label visibility status Example
var labelVisible = MyView.isLabelVisible();
-
inherited isValid(){boolean}
-
Returns the valid status as last set by the setValid() method.
Returns:
Type Description boolean Validity status. true
ifsetValid(false, ...)
was never calledExample
var valid = MyView.isValid();
-
inherited propagateUpValueChange(event){boolean}
-
Propagates value change of control up through parent views
Name Type Description event
Event Value change event (usually an onchange event) Returns:
Type Description boolean True if a formula update was triggered on the control's parent, otherwise false Example
MyView.propagateUp(event);
-
setAutoRun(flag)
-
Specifies whether this service runs automatically on load and whenever the input value is updated
Name Type Description flag
boolean Set to true
to enable autorun for the service -
inherited setData(value)
-
Set/update bound data associated this view/control. Only works for views/controls with bound data.
Name Type Description value
Object Value of bound data. The type of this parameter must match the type of the bound data. Example
MyView.setData("TEST"); //Updates bound data to the string 'TEST'
-
setInputData(data)
-
Specifies the default input for this service
Name Type Description data
* the input data -
inherited setLabelVisible(visible)
-
Show/hide the label of this view/control
Name Type Description visible
boolean Label visibility flag ( true
to show view label,false
to hide)Example
MyView.setLabelVisible(false);
-
inherited triggerFormulaUpdates(phase)
-
Broadcasts the expression trigger for the specified view
Name Type Default Description phase
int bpmext.ui.PHASE_NORMAL optional The phase we are currently in Example
MyView.triggerFormulaUpdates();