...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiDeleteInstanceReferences(SdaiInstance currInst);
|
Deletes all references, i.e., all relations to the specified instance.
This function is only applicable to 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. Related functions: sdaiDeleteInstance , edmiGetInstanceReferences , edmiDeleteInstanceAndReferences
Header:
#include "sdai.h"
Prototype:
EdmiError edmiDeleteInstanceReferences(SdaiInstance currInst);
Arguments:
Arguments
...
Type | Name | Comment |
SdaiInstance | currInst | A numeric instanceID that uniquely identifies the instance in the EDMdatabase to delete all references to. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat;
SdaiInstance currInst;
...
if (rstat = edmiDeleteInstanceReferences (currInst)) {
/* Error in operation */
printf("\nError in edmiDeleteInstanceReferences: %s\n",
edmiGetErrorText(rstat));
goto error;
}
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|