Hi Ernie! With version 17 having very custom menus is a bit or work, but it works fast and slick. If I understand what you are asking… the following works well.
We build all our menus via code. You need to also build a bit of security (you can use the 4D Groups if you want) to know who gets what menu. In the code to build your menus (with each time someone logs in) you build the menus. In the method used to build the menus, for each menu and menu item (or group of items) you test if the user is in a specific 4D Group. If not do not add the menu or menu item. This way you can make the system look very simple (and secure) by not showing them menus the user should not have access to. This of course means each user must sign into the system when they go to use it. With security requirements, this is not unusual. I think this is a more elegant solution than displaying menus and menu items that a user does not have access to. Jody Bevan Argus Productions Inc > On Apr 25, 2019, at 11:08 AM, ernie hilgers via 4D_Tech > <[email protected]> wrote: > > Hi All, > > I have a 4D structure that caters to 3 level of users. > (users/supervisors/managers) > > Situation: > there are features like "customer lookup" with it's output form where a > menubar is assigned and active during the design of the layout. > there are more of the same situations but I'll stick to this "customer > lookup". > > Menus: > user: > has a menu where they are able to look at customer-data and many other menu > items, typically for a User/salesperson. > > supervisor: > level will switch to another menubar with other functionalities AND also have > access to the customer-lookup. > but when the supervisor initiates the method that displays the output form, > the form ALSO adds/displays the standard User menu bar AFTER the menu bar of > the supervisor. > > basically displaying 2 menubars on a row at the same time. > > manager: > same phenomena as with the supervisor. > Manager has more items pertaining to the manager level AND some of the other > menu-items from both Users and Supervisors level. > Again adding the particular menubar to the current one. > > this I want to prevent. where can I find tech-notes on this very un-elegant > result ? > > > Pointers are very welcome. (mac / pc 4D v17 os X10.13/14; W7/10) > > Greetings > > ernie hilgers (aruba) > ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

