edmiRemoteCopyModelBN

EdmiError edmiRemoteCopyModelBN(SdaiServerContext serverContextId,
                                  SdaiServerContext remoteSourceRepositoryName, 
                                  SdaiString        remoteSourceModelName, 
                                  SdaiString        remoteTargetRepositoryName, 
                                  SdaiString        remoteTargetModelName, 
                                  SdaiModel         *newModelId, 
                                  SdaiInvocationId  *edmiInvocationId); 


Creates a copy of a model with all its contents within a remote EDMdatabase. The source and target models are uniquely identified in the remote EDMdatabase by their names and the names of the repositories in which they are contained. This function is only applicable to data models. The executing EDMuser must have read access to the source model. The source model will not be affected by this operation and may be open or closed. The source and target models will be two independent populations of the same underlying Express Schema.

Arguments


TypeNameComment
SdaiServerContext 

serverContextId

Context identification, from edmiDefineServerContext

SdaiString 

remoteSourceRepositoryName

The name of the repository that contains the source model. Repository names are case sensitive.

SdaiString 

remoteSourceModelName

The name of the source model. Model names are case sensitive.

SdaiString 

remoteTargetRepositoryName

The name of the repository in which to create the new copy of the model. Repository names are case sensitive.

SdaiString 

remoteTargetModelName

The name to assign to the new copy of the model.

SdaiModel         

newModelId

A variable that will receive the modelId that uniquely identifies the new copy of the model in the EDMdatabase

SdaiInvocationId  

edmiInvocationId

Currently not used.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

 

Example


 

 EdmiError rstat;
 SdaiServerContext myContext;
 SdaiModel modId;
  
 /* Create Server Context */
 rstat = edmiDefineServerContext("MyContext",
 "Johnny", "Supervisor", "cf37ftr", 
 "TCP", "9090", "MyServerHost", 
 NULL, NULL, NULL, NULL, NULL, &myContext); 
  
 /* Create a repository for
 containing my copy of MyModel */  
 rstat = edmiRemoteCreateRepository(myContext,
 "MyCopyRepository", NULL); 
  
 /* Copy MyModel to MyCopy in MyCopyRepository */
 rstat = edmiRemoteCopyModelBN(myContext, "DataRepository",
 "MyModel", "MyCopyRepository",  
 "MyCopy", &modId, NULL); 
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.

 

Â