Versions Compared

Key

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

...

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


Renames a data model within a remote EDMdatabase

...

. This function is only applicable for data models. Only the owner of a model may rename it.

...

Arguments

...

TypeNameComment
SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

SdaiModel

model

The numeric modelId that uniquely identifies the model to rename in the remote _EDMdatabase{_}.remote  EDMdatabase

SdaiString

newModelName

The new name to assign to the model. Model names must be unique within the scope of a repository and must start with a letter followed by any combination of alphanumeric characters and underscore. Model names are case sensitive.

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);

...

 
  
 /* Rename MyModel to OurModel */

...


 rstat = edmiRemoteRenameModel(myContext, modId, "OurModel", NULL);

...


 . . .

 

See also

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