Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
FUNCTION xpxFindInstancesBN (modelId                : GENERIC;
                             entityName , condition : STRING;
                             firstIndex , maxHits   : INTEGER;                             
                             VAR indexOfLastFound   : INTEGER; 
                             VAR actualHits         : INTEGER; 
                             VAR foundInstances     : AGGREGATE OF GENERIC)
                             status                 : INTEGER;

The xpxFindInstancesBN function searches the specified model modelId for instances of a specified type, and that matches a specified condition. The instance type is specified by the entityName argument. The condition to match is specified in the condition argument. The condition argument can be an empty string meaning that all instances of the actual entity will match the query. The argument firstIndex specifies the index of the first instance in the actual entity extent to test against the condition. The first instance in the entity extent has an index equal to one. The argument maxHits specifies the maximum number of matching instanceIds that should be returned in the foundInstances argument. The argument indexOfLastFound is the index in the entity extent of the last found matching instance and the argument actualHits returns the actual number of returned instanceIds in the foundInstances aggregate.

When the input arguments ((maxHits == 0) && (foundInstances == NULL)) no instanceId or elementNumber will be returned. Only the number of matching instances/elements will be returned.
This function is equivalent to the EDMinterface function edmiFindInstancesBN

Arguments

...

1TypeNameComment
2GENERICmodelIdThe id of the model to be searched
3STRINGentityNameThe instance type to be searched
4STRINGconditionThe condition that must be matched when searching, can be an empty string meaning that all instances of the actual entity will match the query
5INTEGERfirstIndexthe index of the first instance in the actual entity extent to test against the condition
6INTEGERmaxHitshe maximum number of matching instanceIds that should be returned in the foundInstances argument
7INTEGERindexOfLastFoundis the index in the entity extent of the last found matching instance
8INTEGERactualHitsthe actual number of returned instanceIds in the foundInstances aggregate.
9AGGREGATE OF GENERICfoundInstancesThe search results

Return Value

...

Insert excerpt
US:_r_XPX_Return_Value
US:_r_XPX_Return_Value
nopaneltrue

Options

...

 

Example

...

Code Block
languagecpp
<Missing Example>

 

See also

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