Versions Compared

Key

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


...

Code Block
languagecpp
themeConfluence
FUNCTION xpxGetEntityExtent (modelId , entityId , VAR extentId : SET OF GENERIC)  
                             status                            : INTEGER;

The xpxGetEntityExtent function returns the aggregateId of the specified entity_extent aggregate. The actual instance type is defined by the modelId and entityId arguments. The aggregateId of the actual entity_extent is returned in the extentId argument.
An entity_extent aggregate is a SET that contains all instances of the same type in a model. The number of entity_extents in a model is equal to the number of possible instance types in the model.
This function is equivalent to the EDMinterface function sdaiGetEntityExtent

Arguments

...

TypeNameComment
 SET OF GENERICmodelIdId of the model
 SET OF GENERICentityIdId of the entoty
 SET OF GENERICextentId 

Return Value

...

Insert excerpt
US:_r_XPX_Return_Value
US:_r_XPX_Return_Value
nopaneltrue

Options

...

 

Example

...

Code Block
languagecpp
  FUNCTION getEntityExtent(modelId,entityId : GENERIC) : GENERIC;
    LOCAL
      extentId : GENERIC;
      members  : INTEGER;
    END_LOCAL;
      ON_ERROR_DO;
      xpxPrintf('\nError.');
      xpxThrow;
    END_ON_ERROR_DO;
    
    xpxGetEntityExtent(modelId,entityId,extentId); 
    members := xpfGetMemberCount(extentId);
    xpxPrintf('\n%d Members of type %s in model.',members,entityId.name);
    
    RETURN(extentId);
  END_FUNCTION;

 

See also

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