Versions Compared

Key

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


...

Code Block
languagecpp
themeConfluence
FUNCTION xpxGetMemberCount(aggregateId        : GENERIC;
                           VAR elementsInAggr : INTEGER)
                           status             : INTEGER;

The xpxGetMemberCount function returns the number of elements in the specified persistent aggregate aggregateId in the argument elementsInAggr.

Arguments

...

TypeNameComment
GENERICaggregateIdcomment
INTEGERelementsInAggr 

Return Value

...

Insert excerpt
US:_r_XPX_Return_Value
US:_r_XPX_Return_Value
nopaneltrue

Options

...

 

Example

...

Code Block
languagecpp
  FUNCTION getMemberCount(modelId : GENERIC; entityName : STRING) : INTEGER;
    LOCAL
      extentId : GENERIC;
      members  : INTEGER;
    END_LOCAL;
      ON_ERROR_DO;
      xpxPrintf('\nError.

...

');
      xpxThrow;
    END_ON_ERROR_DO;
      
    xpxGetEntityExtentBN(modelId,entityName,extentId); 
    members := xpfGetMemberCount(extentId);
    xpxPrintf('\n%d Members in model.',members);
      
    RETURN(members);
  END_FUNCTION;

 

See also

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