Versions Compared

Key

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

...

Code Block
languagecpp
themeConfluence
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

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"