hi,
I want to hide the context-menu (right-click options) based on user roles in webtop.
Please guide me how to solve this.
Thanks,
Srini
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
If you are doing this for Webtop, you can also configure preset to filter actions by role.
In the action definition, set showwhiledisabled = F.
hi johnny,
Thanks for your valuable response. But it disables the context menu for all the roles. I need to hide only for specific role.
You create a role and add users to that role and mention that role in the scope of menu confiuration xml file, set visible attribute to true and it will be visible only to the users who belong to that particular role.
Kiran
Another thing you can give a try : To hide the context menu for a user/group/role and for a particular object type, you can try adding them to the Scope (under setup tab) of the preset. In the Rule part, you can exclude copy/move/link from Actions (under rule tab). But I think this would also hide options from 'Edit' in the menubar, not sure if that suits your requirement or not.
hi Johnny,
yes you are right I solved by using preset. Then i tried to achive the same requirement as follows,
i modified the dm_sysobject_action.xml file, by extending dm_sysobject_action.xml file in webcomponent
<menuconfig modifies="context-menu:webcomponent/config/actions/dm_sysobject_actions.xml">
<remove path="actionmenuitem[action=exportrowstocsv]"/>
<remove path="actionmenuitem[action=exporttocsv]"/>
</menuconfig>
So Simply i removed the actions based on role scope.
And I thank to Thota,NidhiJayas and Special thanks to Johnny.