Project example – Lenze VisiWinNet VisiWinNET Smart Benutzerhandbuch

Seite 192

Advertising
background image

Project example

User administration
Using dialogues for user administration

4

l

192

SHP−VWNS DE/EN 6.1

Properties for control elements

No. Control element

type/Property

Value

Comments

1

CommandButton

Display/Text

LogOn

VisiWinNET/Authorisation

Empty = accessible for all users

VisiWinNET/Events

Logically links click event with
calling of the ShowLogOnDialog
function of the
UserManagementDialogs1
component.

If the [...] command button is
clicked, a dialog opens. Here, the
click event must be selected and the
Select command button must be
clicked.

2

CommandButton

Display/Text

Grp1

VisiWinNET/Authorisation Right1

Only accessible for users of the user
group with Right 1 (=Grp1)

3

CommandButton

Display/Text

Grp2

VisiWinNET/Authorisation Right2

4

CommandButton

Display/Text

Admin

VisiWinNET/Authorisation Administration

4

VisiWinNET/Events

Logically links click event with
calling of the ShowUsersDialog
function of the
UserManagementDialogs1
component.

The purpose of the text property here is to show the CommandButton function. The
"Authorisation" property specifies when the command button is to be activated. If a
user has logged on and if his user group is logically linked to the right indicated here,
the command button is activated.
The purpose of the "Events" property setting is to call the "Log−on user" and
"Administration" dialogues.

3. Start the project with [F5].

The "LogOn" command button has been activated. No setting has been entered in the
"Authorisation" property.

4. Click the LogOn command button.

The dialog for user log−on is opened. The three command buttons "Grp1", "Grp2" and
"Administration" are activated by log−on of the corresponding user.

Advertising