xpxGetEntityExtentBN
FUNCTION xpxGetEntityExtentBN (modelId : GENERIC; entityName : STRING; VAR extentId : SET OF GENERIC) status : INTEGER;
The xpxGetEntityExtentBN function returns the aggregateId of the specified entity_extent aggregate. The actual instance type is defined by the modelId and entityName 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.
Arguments
Type | Name | Comment |
GENERIC | modelId | Â |
STRING | entityName | comment |
SET OF GENERIC | extentId | Â |
Return Value
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.
Options
Â
Example
FUNCTION getEntityExtent(modelId : GENERIC ; entityName : STRING) : GENERIC; 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 of type %s in model.',members,entityName); RETURN(extentId); END_FUNCTION;
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â