Description: Finds a record in the named object whose supplied entry/value pairs match.
Calling convention: CIP_GetDataIDByEntryValues("SourceObjectName": String, "EntryName1": String, EntryValue1: Variant, ["EntryName2": String, EntryValue2: Variant, ...]): Integer
Parameters:
SourceObjectName: non-NULL source object name.
EntryName1, EntryName2, ...: one or more non-NULL entry names.
EntryValue1, EntryValue2, ...: Variant values paired with the preceding entry names; a NULL value is accepted but normally produces no match with the equality query.
Returns: Matching DATA_ID, or NULL when no match is found. Too few arguments, an incomplete pair, a NULL name, an unknown object or an unknown entry raises an exception.
Availability: Default.
Example:
DataID := CIP_GetDataIDByEntryValues("Orders", "OrderNumber", "A-120", "Plant", 4);