Versions Compared

Key

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

...

Code Block
languagecpp
themeConfluence
 

<Description>

Arguments

...

<argument>

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

OptionComment
optionnamecomment

 

Example

...

 

Code Block
languagecpp
 <example>

 

See also

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

 


Connecting a new EDMuser/EDMgroup without disconnecting the existing connection. >
Provided the new connected EDMuser/EDMgroup has sufficient access rights, all repositories and models will remain in the same open mode. Otherwise, access modes will be reduced to the highest access available.
 
Related functions: edmiChangeMyUserBN
Header:
#include "sdai.h"
Prototype:
EdmiError edmiChangeMyUser(SdaiUnsignedInt sessionUserKey);
Arguments:

TypeNameComment
SdaiUnsignedInt

SessionUserKey

The session key returned from edmiChangeMyUserBN.

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0: Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE  
EdmiError rstat;
SdaiUser myUserId;
SdaiUnsignedInt myKey, superKey;
edmiChangeMyUserBN("superuser", NULL, "LotR1953", &msg, &superKey);
edmiChangeMyUserBN("Gabriel", "Genesis", "abacab", &msg, &myKey);
. . .
if (modId = edmiGetModelBN("myRepository", "myModel")) {
edmiGetMyUserId(&myUserId); 
edmiChangeMyUser(superKey); 
edmiChangeInstanceOwner(modId, myUserId, SET_OWNER | REPLACE_CURRENT); 
edmiChangeMyUser(myKey); 
}
. . .