Different ViewReference according to user group
I would like to make a difference between two user group in a graphic display.
Indeed, an aspect view wrapper is inserted in a graphic display but the viewreference must be different. I looked for many processed data (verbs, views, properties...) but I did not find...
Thank you in advance
probably your solution is to create several Aspect View Wrappers on each other and set the visible property when a specific User group is active.
To know which user group you can create own properties and create Security Definition aspect to set it writable for a specific group.
Then Visible = 'myproperty'#IsWritable.
If possible, avoid wrappers as they add a lot of overhead which in turn reduces workplace performance.
Another approach that might work could be to create separate displays (without wrappers) and let the navigation in to them become conditional.
This code will alternate between two view references depending on the active user and can be put in an Aspect View Button (used to navigate to the two different graphics):
if UpperCase(UserAccountName()) = "800XAADMIN" then
$'Web System Workplace:System Event List:Main View'
$'Web System Workplace:System Alarm List:Main View'
Apart from the UserAccountName() function you can also use UserFullName() and UserRoles() to tell who is the active user.
Always very fast answer :) Thank you very much but I had a problem with your solutions in graphic builder : [No function by the name of "UserAccountName"..].
I also wanted to show a diffent alarm list (depending of the user) in a generic workplace. That is the reason I would like to use an aspect view wrapper.
Any idea or precision to use these functions?