QPR Knowledge Base 2017.1

GetClassRights

GetClassRights

Previous topic Next topic No directory for this topic  

GetClassRights

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

Revision history:

Introduced in QPR 7.2.1

Last changed in QPR 7.4.1

 

Returns a variant array of rights set for an element type.

 

Synopsis:

 

SCModel.GetClassRights(TypeID, out Rights)

 

Parameters:

 

TypeID: Integer

Rights: Pointer to a variant array. The array contains one row per user who has rights set for the element type. Every row contains the following columns:

User/group ID: Integer

User/group Name: String

AccessLevel: Integer; none (0), view (1), update (2), full (3), admin (4)

 

Required Rights:

 

Administrator or Model Administrator rights to the SCModel.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_SUCCESS

RV_MODEL_NOT_OPEN

RV_NO_RIGHTS

RV_NO_RIGHTS_FOUND

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iRet = SCModel.GetClassRights(-8, Rights)