TransactionCosmetics
This rule can also be used to:
-
display a value from the transaction's XML, on the Activity screen.
-
alert users for the delete, recycle and reverse buttons actions.
As with the TransactionBusinessRulePacket business rule, this rule should be attached (overridden) to all the transactions.
Element/Tag | Attribute | Definition | Element/Attribute Value and Description |
---|---|---|---|
<TransactionCosmetics> |
|
Required element: The opening and closing tag of the TransactionCosmetics business rule. |
|
<AmountField> | Optional element: Using the <AmountField> tag, an amount from the transaction can be displayed on the Activity screen . |
Element value: Pre-defined ActivityField or MathVariable from the transaction or PostAssignmentValidateExpressions rule attached to the transaction. Example: <AmountField> GrossAmount </AmountField> Note: If the activity is in NUV Pending or Gain/Loss Pending status and math variables from PostAssignmentValidateExpressions are used in this section, these values will be displayed as blank or zero if assignment information is required for those variables to be calculated. |
|
TOOLTIP | Optional attribute: This attribute is used to provide additional information (default or user-defined configurable tool tip message) on the value that is being displayed. Information is displayed when the user moves the mouse over the value. | String; | |
<DetailField> |
Optional element: DetailField is used to provide non-numeric (amount) information in the Amount/Detail column of the Activity grid on the Activity screen. Note: If "AmountField" tab exists along with "DetailField" tag in Transaction Cosmetics, "AmountField" will take precedence over "DetailField." |
Element value: ActivityField or MathVariable from the transaction or PostAssignmentValidateExpressions rule attached to the transaction. Example: <DetailField> PremiumType </DetailField> Note: If the activity is in NUV Pending or Gain/Loss Pending status and math variables from PostAssignmentValidateExpressions are used in this section, these values will be displayed as blank or zero if assignment information is required for those variables to be calculated. |
|
TOOLTIP | Optional attribute: This attribute is used to provide additional information (default or user-defined configurable tool tip message) on the value that is being displayed. Information is displayed when the user moves the mouse over the value. | String; | |
<Tooltip> | Optional element: Opening and closing element for the Tooltip section. | ||
<Fields> | Required if Tooltip element is present: Opening and closing tag of Fields section within the Tooltip section. | ||
<Field> | Required if Fields element is present: Repeatable. <Field> reflects values that come directly from transaction’s fields. | ||
<Name> | Required if Field element is present: The Name element may contain the names of fields configured within the main body of the transaction. | String | |
<Display> | Required if Field element is present: Displays the field label. | String | |
<Warnings> |
Optional element: <Warnings> tag is used to define the warning messages. This is to alert users about inadvertently deleting a pending Activity or reversing/recycling an active Activity. Note:
|
||
<Warning> | |||
<DeleteWarning> | This tag is used to define the Warning messages that are to be displayed, when the User clicks the Delete icon (trash can) of a Pending activity. This is to prevent the user from inadvertently deleting a pending Activity. |
Text; Optional element Value; Element value to control the display of error message by using "Yes" & "No". Yes - If the tag value is set to "Yes", the default/specified warning will be displayed with 'Ok' & 'Cancel' buttons. Upon clicking on the Ok button the activity can be deleted and upon clicking on Cancel button activity can not be deleted and displays the activity on the activity screen as normal. No - If the tag value is set to "No" the warning will not be displayed. |
|
MESSAGE | String; Optional attribute; Can be used to specify the Warning message upon deleting the activity. A specified warning message displays upon clicking on the trashcan icon when MESSAGE attribute is defined. The MESSAGE attribute is not present or is an empty string, the default message is displayed as "Are you sure?" | ||
<ReverseWarning> | This tag is used to define the Warning messages that are to be displayed, when the User clicks the Reverse icon (trash can) of an Active activity. This is to prevent the user from inadvertently deleting a pending Activity. |
Text; Optional element Value; Element value to control the display of error message by using "Yes" & "No". Yes - If the tag value is set to "Yes", the default/specified warning will be displayed with 'Ok' & 'Cancel' buttons. Upon clicking on the Ok button the activity can be reversed and upon clicking on reverse button activity can not be reversed and displays the activity on the activity screen as normal. No - If the tag value is set to "No" the warning will not be displayed. |
|
MESSAGE | String; Optional attribute; Can be used to specify the Warning message upon deleting the activity. A specified warning message displays upon clicking on the trashcan icon when MESSAGE attribute is defined. The MESSAGE attribute is not present or is an empty string, the default message is displayed as "Are you sure?" | ||
<RecycleWarning> | This tag is used to define the Warning messages that are to be displayed, when the User clicks the Recycle icon of an Active activity. This is to prevent the user from inadvertently recycling an active Activity. |
Text; Optional element Value; Element value to control the display of error message by using "Yes" & "No". Yes - If the tag value is set to "Yes", the default/specified warning will be displayed with 'Ok' & 'Cancel' buttons. Upon clicking on the Ok button the activity can be recycled and upon clicking on Cancel button activity can not be recycled and displays the activity on the activity screen as normal. No - If the tag value is set to "No" the warning will not be displayed. |
|
MESSAGE | String; Optional attribute; Can be used to specify the Warning message upon deleting the activity. A specified warning message displays upon clicking on the recycle button when MESSAGE attribute is defined. The MESSAGE attribute is not present or is an empty string, the default message is displayed as "Are you sure?" |
XML Schema
<TransactionCosmetics>
<AmountField TOOLTIP="[String]">[String]</AmountField>
<DetailField TOOLTIP="[String]">[String]</DetailField>
<Tooltip>
<Fields>
<Field>
<Name>[String]</Name>
<Display>[String]</Display>
</Field>
</Fields>
</Tooltip>
</TransactionCosmetics>
XML Example
<TransactionCosmetics>
<AmountField>TotalBaseFace</AmountField>
<Tooltip>
<Fields>
<Field>
<Name>ConfirmationNumber</Name>
<Display>Confirmation Number</Display>
</Field>
</Fields>
</Tooltip>
</TransactionCosmetics>