Tracking changes to a Page List property
Pega Platform auditing can be extended to other properties such as a Page List property.
- Open the rule form that contains the field you want to include in the history
memo.You can quickly determine the property and type underlying the Portal Layout field by clicking the Rule Data button on the toolbar to open the form’s XML.
- Override the pyTrackSecurityChanges model for
Data-Admin-Operator-AccessGroup
and add a new row. - In the Property field, enter .pyUserPortals(1).pyPortalLayout. Leave the Value field blank as the field value from the property list will be displayed in the memo.
- Save the Model form.
- Because aggregate properties record
Add
andRemove
actions, you must create two field value rules to associate the type of update with the field (which is noted in the memo):TrackSecurityChange_Add
andTrackSecurityChange_Remove
.- In the Developer portal, click the New
rule icon to create a new Field
Value rule and enter the following values:
- The class Embed-PortalLayout in the Applies To field
- pyPortalLayout in the Field Name field
- TrackSecurityChange_Add in the Field Value field (do not modify this value)
- Any meaningful Short Description
- The RuleSet for your application
- Click Create.
- In the Localized Label field, enter the text you want to see in the history memo followed by the property name in brackets ({}).
- Save the rule.
- Copy the rule (Save As) and use a Field Value of TrackSecurityChange_Remove.
- Modify the Short Description appropriately.
- In the Localized Label field, change Added to Removed.
- Click Save.
- In the Developer portal, click the New
rule icon to create a new Field
Value rule and enter the following values:
Previous topic Extending the security auditing feature to record changes to additional properties Next topic Tracking changes to a Single Value property