...
Code Block | ||||
---|---|---|---|---|
| ||||
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
...
Type | Name | Comment |
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 | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
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) | ||||||
---|---|---|---|---|---|---|
|