Skip to Main Content

IR

LinkDeptnoEmpnoEnameJobMgrHiredateSalComm
Single Row View107782CLARKMANAGER78391981-06-092450-
Single Row View107839KINGPRESIDENT-1981-11-175000-
Single Row View107934MILLERCLERK77821982-01-231300-
Single Row View207369SMITHCLERK79021980-12-17800-
Single Row View207566JONESMANAGER78391981-04-022975-
  • 1 - 5 of 14

Info

You may want to hide certain items in the Actions menu of Interative Reports, like Flashback, Subscription, etc., for certain users.
Only the Download item has this option out-of-the-box, although it is limited to an Authorization Scheme.
So if you want to be more flexible, a solution like this may be the answer.

In this example I have enabled the Flashback item in the IR attributes, but then hidden if for all users except ADMIN. Change that to any logic you like.
I decided to use the icon as the Jquery selector, which is a compromise of course. I didn't want to use the name (since that may get translated) and also not the action_menu_* id present in the html, because that could also change over time. So using the icon seemed like a good idea - feel free to come up with your own Jquery selector.

Notes:
  • Security risk: Javascript can be overruled/changed by the client, so do not use this for anything that is mission-critical.
  • I added the line "$(".icon-irr-flashback").parents("li").prev().hide();" to the DA. This is only needed if you have to hide a separator (which I need here for the Flashback item because it is between 2 seperators, so that looks a bit weird).
  • Setting the Event Scope to Dynamic is essential, otherwise the DA will not trigger.

Code

Page

Identification
Page ID
Name

Region

Identification
Sequence
Title
Type
Source
Source Type
Region Source

Dynamic Action

Identification
Name
Execution Options
Sequence
When
Event
Selection Type
jQuery Selector(s)
Server-Side Condition
Type
Expression 1
Expression 2
Advanced
Event Scope
True Action
Identification
Action
Settings
Code
Execution Options
Sequence
Fire On Initialization