Versions Compared

Key

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

...

 

Code Block
languagecpp
themeConfluence
EdmiError edmiRemoteDeleteModelContents(SdaiServerContext serverContextId, 
                                          SdaiModel         model, 
                                          SdaiInvocationId  *edmiInvocationId); 

Deletes the population within a model in a remote EDMdatabase

...

. The model will be completely reset to its initial state. An equivalent way to do this would be to delete the model and recreate it with edmiRemoteCreateModel. However, the models create options that define the model features would be lost and would have to be redefined in the create operation.

...

This function is only applicable to data models.

...

Arguments

...

TypeNameComment
SdaiServerContext  

serverContextId

Context identification, from edmiDefineServerContext

 SdaiModel

model

The numeric modelID that uniquely identifies the data model for which to delete its population in the remote _EDMdatabase_ .remote  EDMdatabase

 SdaiInvocationId

edmiInvocationId

Currently not used.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 SdaiServerContext myContext;
 SdaiModel modId;
  
 /* Create Server Context */
 rstat = edmiDefineServerContext("MyContext",

...


 "Johnny", "Supervisor", "cf37ftr",

...

 
 "TCP", "9090", "MyServerHost",

...

 
 NULL, NULL, NULL, NULL, NULL, &myContext);

...

 
  
 /* Get the modelId of MyModel */

...


 rstat = edmiRemoteGetModelBN(myContext, "DataRepository",

...


 "MyModel", &modId, NULL);

...

 
  
 /* Delete the MyModel contents */

...


 rstat = edmiRemoteDeleteModelContents(myContext, modId, NULL);

...


 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"