Give "usergroup" access to built-in commandbarbutton
Former Member
I've been struggling with a case where I need to giva a special grou of user access to a commandmenubarbutton.
I've a context menu options such as: Tools->Admin->DoSomething
I've been searching the Aras webclient for a solution with no success.
Is there any JavaScript method that enables this contextbar when login success depending on what kind of user
that logs in?
Or is there any other way to give these users correct permission?
Hello,
This is possible using the CUI tools available in 11.0 SP9.
Please follow the steps below for an example of how to add a custom button to the Admin menu.
Login as admin
Navigate to Administration->Configuration->Client Presentation
Click the hyperlink labeled "Global" in the Presentation [...] column
In the Command Bar Section relationship tab, search for 'com.aras.innovator.cui_default.main_window_main_menu' in the name column
Open this item
In the Command Bar Item relationship tab, select 'Create Related' and add a new item with the following information
Name: MWMM Custom Button
Action: Add
For Identity [...]: Administrators
In this column, choose the Identity with the group of users you want to be able to access this button
Right-click on this new item and select 'View "Command Bar Item"'
Fill in the following information
Label: MWMM Button Label
Parent Menu:
com.aras.innovator.cui_default.mwmm_admin_menu
Click Method: My Javascript Method
Set this to the javascript method that contains the code you want to run when a user clicks this button
Save this button
Save the Command Bar Section
Log out
Log back in as a member of the Identity you set in Step 6
Confirm that you can see the new button
Log out
Log back in as a user who is not a member of the Identity you set in Step 6
Confirm that you cannot see the new button
You can also create your own sub-menus like the Admin menu by following similar steps.
Chris
______________________
Christopher Gillis
Aras Labs Software Engineer
Hello,
This is possible using the CUI tools available in 11.0 SP9.
Please follow the steps below for an example of how to add a custom button to the Admin menu.
Login as admin
Navigate to Administration->Configuration->Client Presentation
Click the hyperlink labeled "Global" in the Presentation [...] column
In the Command Bar Section relationship tab, search for 'com.aras.innovator.cui_default.main_window_main_menu' in the name column
Open this item
In the Command Bar Item relationship tab, select 'Create Related' and add a new item with the following information
Name: MWMM Custom Button
Action: Add
For Identity [...]: Administrators
In this column, choose the Identity with the group of users you want to be able to access this button
Right-click on this new item and select 'View "Command Bar Item"'
Fill in the following information
Label: MWMM Button Label
Parent Menu:
com.aras.innovator.cui_default.mwmm_admin_menu
Click Method: My Javascript Method
Set this to the javascript method that contains the code you want to run when a user clicks this button
Save this button
Save the Command Bar Section
Log out
Log back in as a member of the Identity you set in Step 6
Confirm that you can see the new button
Log out
Log back in as a user who is not a member of the Identity you set in Step 6
Confirm that you cannot see the new button
You can also create your own sub-menus like the Admin menu by following similar steps.
Chris
______________________
Christopher Gillis
Aras Labs Software Engineer