...
1. Data Object Class
The entity's DO class must implement ICRMDOWorkflowRuleEntity interface and its 28 methods:
...
Ui expand |
---|
title | Condition and Action Fields |
---|
|
Code Block |
---|
language | xml |
---|
title | entitiesrentals.xml |
---|
collapse | true |
---|
| <entityfieldconfig>
<mainfield>
<id>custom_number</id>
<name>key_number</name>
<xpath>number</xpath>
<qlfieldname>rental.number</qlfieldname>
<segmentpreviewname>ENTITYNUMBER</segmentpreviewname>
</mainfield>
<fields>
<field>
<id>custom_type</id>
<name>key_type</name>
<relatedentityxpath>type</relatedentityxpath>
<xpath>name</xpath>
</field>
<field>
<id>custom_type_alt_code</id>
<name>key_type_alt_code</name>
<relatedentityxpath>type</relatedentityxpath>
<xpath>altCode</xpath>
</field>
<field>
<id>custom_account</id>
<name>key_account</name>
<relatedentityxpath>accountReceivable</relatedentityxpath>
<workflowruleconditionincluded>FIELD_CHANGE</workflowruleconditionincluded>
<xpath>name</xpath>
</field>
<field>
<id>custom_state</id>
<name>key_state</name>
<xpath>state</xpath>
<workflowruleconditionincluded>FIELD_CHANGE,FIELD_CONTAINS_VALUE,FIELD_FROM_TO_VALUE_CHANGE</workflowruleconditionincluded>
<workflowruleactionincluded>true</workflowruleactionincluded>
</field>
<field>
<id>custom_effective_date</id>
<name>key_effective_date</name>
<xpath>effectiveDate</xpath>
<workflowruleconditionincluded>FIELD_FROM_TO_VALUE_CHANGE</workflowruleconditionincluded>
</field>
<field>
<id>custom_expiration_date</id>
<name>key_expiration_date</name>
<xpath>expirationDate</xpath>
<workflowruleactionincluded>true</workflowruleactionincluded>
</field>
...
</entityfieldconfig> |
Image 1
Image 2
Image 3
Image 4
|
...
For more information on customising data entry pages go to Customise Customize Data Entry Pages.