edmiDeleteAggr
EdmiError edmiDeleteAggr(SdaiAggr aggregate);
Deletes the specified aggregate instance from the EDMdatabase. Only independent scratch aggregates, subtype aggregates and union aggregates can be deleted by this operation. If the aggregate to delete is a nested scratch aggregate, then all belonging scratch child aggregates will be deleted as well.
Aggregates owned by application instances can be deleted by sdaiUnsetAttr and sdaiUnsetAttrBN operations. Such aggregates will implicitly be deleted when the owning application instance is deleted.
Arguments
Type | Name | Comment |
SdaiAggr | aggregate | A numeric aggregateID that uniquely identifies the aggregate instance to delete from the EDMdatabase. |
Return Value
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.
Â
Options
 Â
Â
Example
Â
SdaiAggr unionAggr; SdaiModel modelId; SdaiEntity entities[MAX_ENTITIES]; int eIndex; ... eIndex = 0; entities[eIndex++] = sdaiGetEntity(modelId, "HumanBeing"); entities[eIndex++] = sdaiGetEntity(modelId, "Animal"); unionAggr = edmiCreateUnionAggr (modelId, eIndex, entities); if (! unionAggr) { /* Error in operation */ printf("\nError in edmiCreateUnionAggr: %s\n", edmiGetErrorText(sdaiErrorQuery())); goto error; } . . . if (rstat = edmiDeleteAggr(unionAggr)) { /* Error in operation */ printf("\nError in edmiDeleteAggr: %s\n", edmiGetErrorText(rstat)); goto error; } . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â