edmiDeleteInstanceAndReferences
EdmiError edmiDeleteInstanceAndReferences(SdaiInstance currInst);
Deletes the specified instance and all relations to the specified instance. Hence this operation is a combination of edmiDeleteInstanceReferences and sdaiDeleteInstance. This function is only applicable for application instances. The data model that holds the specified instance must be open for write access to enable a successful execution of this function. Normally an instance cannot be deleted as long as any other instances have relations to the instance to delete, i.e., all references to the instance must be deleted before the instance can be deleted. This default behavior can be overruled by system configuration settings.
Arguments
Type | Name | Comment |
SdaiInstance | currInst | A numeric instanceID that uniquely identifies the instance to be deleted. |
Return Value
Options
Example
EdmiError rstat; SdaiInstance currInst; ... if (rstat = edmiDeleteInstanceAndReferences (currInst)) { /* Error in operation */ printf("\nError in edmiDeleteInstanceAndReferences: %s\n", edmiGetErrorText(rstat)); goto error; } . . .
See also
Filter by label
There are no items with the selected labels at this time.