Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
languagecpp
themeConfluence
FUNCTION xpxGetHashedAttrInstances (modelId               : GENERIC;
                                    attrId                : GENERIC;
                                    attrValue             : GENERIC;
                                    index                 : INTEGER;
                                    maxHits               : INTEGER;
                                    VAR indexOfLastFound  : INTEGER;
                                    VAR matchingInstances : SET OF GENERIC)
                                    rstatstatus                 : INTEGER;

FUNCTION xpxGetHashedAttrInstancesBN (modelId               : GENERIC;
                                      entityName            : STRING;
                                      attributeName         : STRING;
                                      attrValue             : GENERIC;
                                      index                 : INTEGER;
                                      maxHits               : INTEGER;
                                      VAR indexOfLastFound  : INTEGER;
                                      VAR matchingInstances : SET OF GENERIC)
                                      rstat                 : INTEGER;
              

The xpfGetHashedAttrInstances function is used to search the specified model for the instances with an attribute value equal to the specified attribute. 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. Additional input parameters are starting index and maximum number of hits. The index of last instance found and the aggregate of matching instances found are returned by the corresponding arguments.

 

If no attribute hash table is defined for the specified attribute, no sequential search is performed and the function returns an error code. See the functions xpxDefinePersistentAttrHashTable and xpxDefinePersistentAttrHashTableBN.

If no matching instances are found then the index of last found argument is zero and the matching instances argument is set to xpxINDETERMINATE.

Related functions: xpxGetHashedAttrInstancesBNxpfGetHashedAttrInstance and xpfGetHashedAttrInstanceBN.

 

This function is equivalent to the EDMinterfaceTM function edmiGetHashedAttrInstances

Arguments

...

Insert excerpt
US:_a_modelId_XPX
US:_a_modelId_XPX
nopaneltrue
Insert excerpt
US:_a_attrId
US:_a_attrId
nopaneltrue
Insert excerpt
US:_a_attrValue
US:_a_attrValue
nopaneltrue
Insert excerpt
US:_a_index_XPX
US:_a_index_XPX
nopaneltrue
  

Return Value

...

Insert excerpt
US:_r_XPX_Return_Value
US:_r_XPX_Return_Value
nopaneltrue

Options

...

<arguments missing>

 

Example

...

<example missing>

 

See also

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