Navigation:  PHP API (Workflow) >

Editing the value of a form value list field

Previous  Top  Next

To edit the value of the form list field, use the setEntityRelationshipValue method passing the parameters: Entity ID # in which the form belongs, relationship ID # with the entities of the list of values and an Array containing the attribute ID# and value. The system uses the value to search for the record code. In this case, if there is a possibility of repeated values, you must pass more than one attribute for a tiebreaker. Example: Select the "Jordan" value in the "user" list of values. If there are two "Jordan" the system will not know which to choose from. In this case, you must pass beyond the name of another value, such as the user´s reg. code #.

 

setEntityRelationshipValue("Entity ID #", "Relationship ID #", "Array with attribute ID # of the list entity and value")

 

Examples:

$workflow_api->setEntityRelationshipValue("ENT01", "RelationshipID", array("nmtext" => "Value 1"));

 

$workflow_api->setEntityRelationshipValue("ENT01", "RelationshipID", array("nmtext"=>"Value 1","nmmat"=>"789"));