Try OpenEdge Now
skip to main content
Programming Interfaces
Audit Policy Maintenance APIs : Importing policies from XML : import-xml-fill-dset procedure
 

import-xml-fill-dset procedure

Imports an XML file containing audit polices into a specified ProDataSet. If the XML file contains policies that already exist in the ProDataSet and the ploverride parameter is set to NO, this procedure does not fill the ProDataSet and returns a comma-separated list of existing policies. The caller can then ask for confirmation and call copy-changes-to-dsetprocedure. If ploverride is set to YES, this procedure automatically overrides all existing policies and does not return any duplicates in the pcDupList parameter. Any errors set the perrorMsg parameter. It is the caller's responsibility to reject any changes if errors occur.
Parameters:
INPUT pcxmlFileName AS CHARACTER
Filename of the XML file to import.
INPUT ploverride AS LOGICAL
YES specifies to override existing policies.
INPUT-OUTPUT DATASET FOR dsAudPolicy
Target ProDataSet to import the policies.
OUTPUT pcDupList AS CHARACTER
Comma-separated list of policies that already exist in the specified database and also exist in the XML file.
OUTPUT perrorMsg AS CHARACTER
Error messages.