Navigation:  PHP API (Workflow) >

Searching for the value of a form field

Previous  Top  Next

To search for the value of the form field, use the getEntityAttributeValue method passing the parameters: Entity ID # in which the form belongs and the entity attribute ID #.

 

getEntityAttributeValue("Entity ID #", "Entity attribute ID #")

 

Example for attribute of the Boolean type:

$value = $workflow_api->getEntityAttributeValue("ENT01","fgboolean");

Return example: 1

1 – Checked, 0 - Unchecked

 

Example for attribute of the Time type:

$value = $workflow_api->getEntityAttributeValue("ENT01","hrtime");

Return example: 08:00

 

Example for attribute of the Whole number type:

$value = $workflow_api->getEntityAttributeValue("ENT01","vlinteger");

Return example: 123456

 

Example for attribute of the Text type:

$value = $workflow_api->getEntityAttributeValue("ENT01","nmtext");

Return example: ABC

 

Example for attribute of the Date type:

$value = $workflow_api->getEntityAttributeValue("ENT01","dtdate");

Return example: 2017-12-31

 

Example for attribute of the Decimal type:

$value = $workflow_api->getEntityAttributeValue("ENT01","vlnumber");

Return example: 1234.56000000