Cancel
Showing results for 
Search instead for 
Did you mean: 

plugin.xml visibleWhen hide menu

Legend
Legend

I need to hide menu item with condition if logged user is not DBA user

 

How do that with visibleWhen in plugin.xml?

 

And yes -  I dont want to use command_suppression

2 REPLIES 2

Re: plugin.xml visibleWhen hide menu

Legend
Legend
I've found solution:

<visibleWhen>
<test property="com.teamcenter.rac.kernel.TCComponentUser.role" value="DBA" />
</visibleWhen>

Re: plugin.xml visibleWhen hide menu

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

What about hiding it for a specific group not a role in the TC Organization sort of in plugin.xml:

 

com.teamcenter.rac.kernel.TCComponentUser.group

 

OR

com.teamcenter.rac.kernel.TCComponentGroup.name

 

I did not find yet a solution.

 

Thanks