Versions Compared

Key

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

...

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

...

TypeNameComment
SdaiInstance

currInst

A numeric instanceID that uniquely identifies the instance in the EDMdatabase to delete all references to.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

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