Calling convention: CIP_OPEX_CreateStandardStatistic4Object(MasterObject: Integer, CandidateObject4Stat: Integer): Boolean
Description: Creates a virtual DATA_DowntimeListen_* statistics object below the selected master object, assigns the Downtime* entries, creates its data and reason tables, and stores its virtual key-field setting.
Parameters:
MasterObject = Integer object ID of the parent statistics object.
CandidateObject4Stat = Integer object ID of the source object whose data and reason tables are used by the generated SQL statement.
Returns: TRUE only after the statistics object, its entry assignments, data tables and virtual-key setting are created. Returns FALSE when an argument is NULL or either referenced object is not found. Database failures raise an exception.
Availability: OPEX administration only. Requires the master entries to exist and write/DDL permission on the configuration database.
Example:
Created := CIP_OPEX_CreateStandardStatistic4Object(MasterObjectID, SourceObjectID);