PmUser - Deatiled object description
See: The PmUser
This object is available for example:
During the authentication
process the entered authentication data of the local or network user is compared with the list of defined users (see the "PmaRoot > Users
" page). The first defined user found, whose definition corresponds with the entered authentication data, will be used in the user right evaluation system (see Description of the Permission page
) and the specified data will be used by the PmUser
The private user data:
In events onUserLogonEnd, onUserLogoff and onPageModify or in user methods of the PmaPanel object it is possible to the specific user (PmUser object) assign and read the assistant data named by the methods PmUser.SetPrivateData and PmUser.GetPrivateData. This is particullary useful for network users, enabling to store the different states for each logged user. This is handy especially for network users, because this way it is possible to save different status for each logged user. Then it is, for example, possible in the Web panel to have the "UP - Binding to the logged user property" data binding linked to GetPrivateData in order to display in the Pmg object different values for each user.
Examples of usage the private data:
Setting the private data by the client:
In the onButtonUp
event of the PmgButton
object the "SettingData
" panel designer's method is called with two paramaters.
" method has two parameters sId
. The logged-in user entered the value 7 with identificator "dt0" into his private data.
Reading the private data by the client:
if (pMe.PmPanel.Methods.GettingData("dt0") == 7)
The "GettingData" panel method has the sId parameter and returns the value.