QPR Installation Instructions

GetUserId

GetUserId

Previous topic Next topic  

GetUserId

Previous topic Next topic JavaScript is required for the print function  

Revision history:

Introduced in QPR 7.3.1

 

Returns the user ID of the user defined in the function call.

 

Synopsis:

 

SCApplication.GetUserId(vsLoginName, out UserId)

 

Parameters:

 

vsLoginName: Login name of the user whose ID is sought for. String.

UserId: Contains the returned user ID. Integer.

 

Required Rights:

 

None.

 

Return Values:

 

RV_APPLICATION_QUIT_CALLED

RV_NOT_CONNECTED_TO_SERVER

RV_NOT_AUTHENTICATED

RV_SUCCESS

RV_USER_NOT_FOUND

 

Example Procedure:

 

iRet = SCApplication.GetUserId("John Smith", UserId)