addStdCondition

Retrieves all standard conditions named cDesc whose type is cType and adds them to the record. If a standard condition is associated with an ASI group (condition template), the method adds the condition with the template fields and tables. You can call the method to add duplicate conditions to a record.

Version

2.0

Parameters

Parameter Type Description
cType string Condition type.
cDesc string Condition name.
capID (optional) CapIDModel Record to add condition to.

Notes

The function assigns the following values to the condition:

  • Status = Applied

  • Applied By = current user

  • Action By = current user

  • Apply Date = current date

  • Effective Date = current date

  • Expiration Date = blank

You can only use the function with Civic Platform 6.4 and later.