Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
FUNCTION xpfGetHashedAttrInstance (modelId            : GENERIC;
                                   attrId             : GENERIC;
                                   attrValue          : GENERIC)
                                   matchingInstanceId : GENERIC;                                                  FUNCTION xpfGetHashedAttrInstanceEx (modelId            : GENERIC;
                                     entityId           : GENERIC;
                                     attrId             : GENERIC;
                                     attrValue          : GENERIC)
                                     matchingInstanceId : GENERIC;   
                                                     

FUNCTION xpfGetHashedAttrInstanceBN (modelId            : GENERIC;
                                     entityName         : STRING;
                                     attributeName      : STRING;
                                     attrValue          : GENERIC)
                                     matchingInstanceId : GENERIC;                                                        

The xpfGetHashedAttrInstance function is used to search the specified model for the instance id of the instance where the specified attribute has exactly the specified value. The attribute is specified by the attribute id. The argument <attrValue> is used to specify the attribute value, this value can be a string or integer. This function returns only one instance id, which implies that you only should use this function if the attribute value is defined to be unique. If the attribute value may occur in more than one instance, use xpxGetHashedAttrInstances.

...