Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
languagecpp
themeConfluence
FUNCTION xpfGetHashedAttrInstanceBN (modelId            : GENERIC;
                                     entityName         : STRING;
                                     attributeName      : STRING;
                                     attrValue          : GENERIC)
                                     matchingInstanceId : GENERIC;                       
                                

The xpfGetHashedAttrInstanceBN 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 name via the arguments <entityName> and <attributeName>. 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 xpxGetHashedAttrInstancesBN.

...

The matching instance found is returned by the function. If no matching instance is found then the function returns xpxINDETERMINATE.

 

Arguments

...

Insert excerpt
US:_a_modelId
US:_a_modelId
nopaneltrue
 
Insert excerpt
US:_a_entityName
US:_a_entityName
nopaneltrue
Insert excerpt
US:_a_attributeName
US:_a_attributeName
nopaneltrue
Insert excerpt
US:_a_attrValue
US:_a_attrValue
nopaneltrue

Return Value

...

 

Insert excerpt
US:_r_matchingInstanceId
US:_r_matchingInstanceId
nopaneltrue

Options

...

 

 

Example

...

<example missing>

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "hashedattribute" and parent = "5636522"