Skip to main content

Controls function

setValue#

The id function takes the resourceId,fieldId,value to be inserted as input and inserts the value into the respective fieldId.

Syntax:

new NameSpace("control").setValue(Number resourceId,Number fieldId,String value);

Returns: Void

Example:

response = new NameSpace("control").setValue(3, 567, "test");

setValues#

The id function takes the List of Map as input and inserts the value into the respective fieldId.

Syntax:

new NameSpace("control").setValue(list setValue);

Returns: Void

Example:

response = new NameSpace("control").setValues(setValue);

auto#

The auto function takes the resourceId and fieldId as input and works on the function.

Syntax:

new NameSpace("control").auto(Number resourceId,Number fieldID);;

Returns: Void

Example:

resourceId = "<some resource Id>";fieldId = "<some field Id>";new NameSpace("control").auto(resourceId, fieldId);

emergencyauto#

The emergencyauto function takes the resourceId and fieldId as input and works on the function.

Syntax:

new NameSpace("control").emergencyauto(Number resourceId,Number fieldId);

Returns: Void

Example:

resourceId = "<some resource Id>";fieldId = "<some field Id>";new NameSpace("control").emergencyauto(resourceId, fieldId);

override#

The override function takes the resourceId,fieldId,action to be overrided as input and executes the action into the respective fieldId.

Syntax:

new NameSpace("control").override(Number resourceId,Number fieldId,String value);

Returns: Void

Example:

resourceId = "<some resource Id>";fieldId = "<some field Id>";value = "<some value>";new NameSpace("control").override(resourceId, fieldId, value);

emergencyoverride#

The emergencyoverride function takes the resourceId,fieldId,action to be overrided as input and executes the action into the respective fieldId.

Syntax:

new NameSpace("control").emergencyoverride(Number resourceId,Number fieldId,String value);

Returns: Void

Example:

resourceId = "<some resource Id>";fieldId = "<some field Id>";value = "<some value>";new NameSpace("control").override(resourceId, fieldId, value);