I want to make the delete button in a view visible to some user roles and invisible to others. To do that I am trying to write a script for relevance of the delete button in the view, using application designer. The problem is the script is giving an error for CurrentUser says it is not in the context.
Any idea how can I see the current users' role?
Thanks in advance.
You need to use CurrentUser.DefMastProfile.Description to refer the current user's role.
The thing as i said I cannot use CurrentUser, it gives
Variable not defined: 'CurrentUser'. ('Line 1 of script ''Relevance' of table 'Portfolio items (amPortfolio)''')
HPE Software Support
If this post has helped you resolve the issue, please flag it as solved.
To enhance Jason's thread...it is my experience the web client does not like buttons that use IF-THEN-ELSE in the relevance attribute. Standard "RetVal = ..." works just fine.
Neither. It is considered a virtual link and is defined in the advanced use pdf guide (or see help).