KB-32217: Setting up buttons to become available only for certain users.

Question:

How can I set up buttons of a specific screen to be available only for users of a certain group?

Solution:

To do so, you can write a script in the screen’s OnPreShow event, using the Viewer’s IsUserMemberOfGroup event to check if the user belongs to the configured group, in addition to setting the button’s Enabled property to True to enable it. For example:

  If Application.IsUserMemberOfGroup (“Administrator”) Then
    Item(“CommandButton1”).Enabled = True
  End If

Note: to set up the button to start disabled, you must set its Enabled property as False on E3Studio.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *