Try OpenEdge Now
skip to main content
Programming Interfaces
Audit Policy Maintenance APIs : Additional audit policy procedures : _update-policies.p
 

_update-policies.p

Saves the tracked changes to policies stored in a specified source ProDataSet into a specified target database. If an error occurs for any record update, the procedure sets the ERROR attribute on both the ProDataSet and buffer, as well as the buffer ERROR-STRING attribute. The caller should check for errors.
Parameters:
INPUT pcDbName AS CHARACTER
Logical name of the target database.
INPUT-OUTPUT DATASET-HANDLE phDataset
ProDataSet object containing the tracked changes to save.
OUTPUT erroMsg AS CHARACTER
Error messages.
Note: This procedure automatically refreshes the database cache by calling the AUDIT-POLICY:REFRESH-AUDIT-POLICY() method.