cancel
Showing results for 
Search instead for 
Did you mean: 

Versioning enable/disable - UICommand

Former Member
0 Kudos

Hi,

i would like to use the document versioning in the km, but only the admins are supposed to do enable/disable the versioning. i can show the versioning button only in the admin explorer, but everyuser can enable/disable the versioning with the uicommands. can i control the permission of using the uicommand, about roles, etc.

we use ep6.0 sp2!

thx

christian

Message was edited by: Christian Brands

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christian,

yes, you can control the visibility of UI commands for only specific roles by entering the role pcd-id in the command parameter "Roles with Visibility" as specified <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9d/233f989a5ba64fa44ed6e0823286ee/content.htm">here</a>.

Hope it helps,

Robert

Former Member
0 Kudos

hi robert,

thx for your answer, but i forgot to tell you that we use ep6.0 sp2 and no netweaver portal. in our portal we don't have "Roles with Visibility" in the uicommands. do you have an other idea?

thx

christian

Former Member
0 Kudos

Hi Christian,

I guess that's an important information then

Before this parameter was introduced, there was no other solution than creating two different Layout Sets (one with the permission relevant commands, the other without them) and assigning them to different navigation iViews, one of them used in the "administrative" role, the other in the "end-user" role. So you needed actually two different roles with the same content (navigation iViews) but different Layout Sets.

Hope this helps,

Robert

Former Member
0 Kudos

hi robert,

thx for your reply, but with two roles and different layout sets, i can only control the visibility of the button "versioning" in the layout set, but not the uicommand self. users which don't see the button "versioning", can although use the uicommand (?command=versioning). is that right?

thx

christian

Former Member
0 Kudos

Hi Christian,

no, it's not that easy as you mentioned to access the uicommand. (?command=versioning) will not work. You would need to implement something for starting a UICommand on the IResource (a interaction on the Layout Controller level would be possible for example.)

So without some special implementation the users will not be able to access the UICommand if they can't open the folder with a LayoutSet the shows the command.

Hope this helps,

Robert

Answers (0)