edmiGetScratchEntityExtent

SdaiAggr edmiGetScratchEntityExtent(SdaiEntity entityId);

Returns the instances aggregate of the entity extent instance in the scratch model that contains all scratch instances of the specified <entityId> type. Scratch instances belongs to an EDMserver session, hence scratch instances and scratch entity extents are not persistent in an EDMdatabase.All EDMinterface read access operations that are applicable on SET aggregates are applicable to the returned aggregate.
EXPRESS:
ENTITY entity_extent; 
    definition : entity_definition; 
   instances : SET OF entity_instance;
END_ENTITY;

Arguments


TypeNameComment
SdaiEntity 
entityIdA numeric entityID that uniquely identifies an entity definition in a dictionary model in the EDMdatabase . The entityID is returned by the sdaiGetEntity function.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

 SdaiAggr scratchExtentId;
 SdaiEntity entityId;
 SdaiErrorCode rstat;
 SdaiInstance id;
 SdaiInteger index, members;
 . . .
 scratchExtentId = edmiGetScratchEntityExtent(entityId);
 if (! scratchExtentId) {
 /* Error in operation */ 
 printf("\nError: %s in edmiGetScratchEntityExtent\n", 
 edmiGetErrorText(sdaiErrorQuery())); 
 goto error; 
 }
 members = sdaiGetMemberCounts(scratchExtentId);
 /* Print instanceID of all scratch instances of the specified type */
 for (index = 0; index < members; index++) {
 edmiGetAggrElement(scratchExtentId, index, sdaiINSTANCE, &id); 
 rstat = sdaiErrorQuery(); 
 if (rstat) { 
 /* Error in operation */ 
 printf("\nError: %s in edmiGetAggrElement\n", 
 edmiGetErrorText(sdaiErrorQuery())); 
 goto error; 
 } 
 printf ("\nInstanceID: %lu", id); 
 }
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.

Â