Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Inquires the unique instance Id of the EDMuser with the given name.
This function has been replaced by edmiGetUserBN() and has been kept for compatibility reasons only. The two functions are completely equivalent.
Related functions: edmiCreateUser, edmiDeleteUser, edmiDeleteUserBN, edmiGetUserBN
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetUser(SdaiString  userName,
                       SdaiUser    *userId);
Arguments:

userName

Specifies the name of the EDMuser. EDMuser names are case insensitive.

*userId

Address of the variable that will receive the numeric instanceID that uniquely identifies the EDMuser instance in the EDMdatabase

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 userId;
SdaiString userName = "JOHNNY";
. . .
if (rstat = edmiGetUser (userName, &userId)) {
/* Error in operation */ 
printf("\nError: %s in edmiGetUser \n", 
edmiGetErrorText(rstat)); 
goto error; 
}
printf("\nUser with name '%s' has id %lu", userName, userId);

  • No labels