CopyToProgramFields
The CopyToProgramFields business rule is used to update program fields. The update capability of the rule is restricted so that fixed program fields and program status may not be updated. The rule may be attached only to a program transaction. Updates are limited to dynamic disabled program fields.
In addition to field values, CopyToProgramFields will automatically update the OptionText of combo box and radio button fields.
As a best practice, the ProgramGUID should be referenced in the configuration so that the GUID can be used as an identifier.
Element/Tag | Attribute | Definition | Element/Attribute Value and Description |
---|---|---|---|
<CopyToProgramFields> |
|
The opening and closing tags of this rule. |
|
<Tests> |
Optional element Allows for further definition of the activities that may be updated. |
||
<Test> |
Required if <Tests> is present. A conditional statement that tests a MathVariable or Field against another MathVariable, Field, or literal value. |
String: | |
<Fields> |
Required element Common field definition. See Fields Element. |
||
<Field> |
Repeatable element; The opening and closing tag that encompasses <From> and <To> |
||
<From> |
Required element value Name of the Program source field data is being copied from. |
Program: field name is available. |
|
<To> |
Required element value Name of Program field data is being copied to. |
XML Example
<CopyToProgramFields>
<Tests>
<Test>IsProgram = 'true'</Test>
</Tests>
<Fields>
<Field>
<From>NextBusinessDay</From>
<To>NextScheduledDate</To>
</Field>
</Fields>
</CopyToProgramFields>
XML Schema
<CopyToProgramFields>
<Tests>
<Test> conditional statement </Test>
</Tests>
<Fields>
<Field>
<From></From>
<To></To>
</Field>
</Fields>
</CopyToProgramFields>