ribbons again (1 Viewer)

ryetee

Registered User.
Local time
Today, 05:53
Joined
Jul 30, 2013
Messages
952
I have a custom ribbon set up in usysribbons.
The ribbon is so the user can navigate around his forms
The ribbon contains some access commands that I've put on whilst I'm developing it

I want to be able to dynamically alter the ribbon depending upon
1. whether or not it's me running it. if it is I want to show the development tools . if it's not I want to hide them
2. similar to above but depending upon user privileges again hide some options

is this possible?

The ribbon iis not form/report specific. It's loaded when program runs.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 22:53
Joined
Oct 29, 2018
Messages
21,358
Hi. Yes, you can dynamically change the ribbon based who is using the database application. Look into the InvalidateControl method.
 

bdra2778

Registered User.
Local time
Yesterday, 22:53
Joined
Feb 14, 2019
Messages
34
Hello theDBguy, check this example, I use getEnabled method to enabled o disabled any option depends if the user is Admin or not.

User:1-Eduardo Mairena - Admin
2-Pedro Mena - not Admin

Note:pay attention in "Configuración" Option (see image01.png)


Pass is 123 for both users.
 

Attachments

  • User Restriction Ribbons.zip
    422 KB · Views: 54
  • image01.png
    image01.png
    2.6 KB · Views: 45
Last edited:

Users who are viewing this thread

Top Bottom