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.
Related functions: edmiCreateUser, edmiDeleteUser, edmiDeleteUserBN, edmiGetUser
 
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetUserBN(SdaiString   userName,
                         SdaiInstance *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 = edmiGetUserBN(userName, &userId)) {
/* Error in operation */ 
printf("\nError: %s in edmiGetUserBN \n",
edmiGetErrorText(rstat)); 
goto error; 
}
printf("\nUser with name '%s' has id %lu", userName, userId);

  • No labels