divi-2-4_column-options

Change background-color of panel by ActiveLink (workaround)

Hello, I am working as a developer in BMC Remedy environment and would like to share a tips and tricks, this is my first post. My current version is 8.1.02 AIX Sometimes I have a new idea but standard BMC workflow doesn’t support few basic features, also workaround is necessary. BMC provides no option to change bg color of panel by ACL.

nav_changefield.PNG

 I am attaching actions that can be provided by active link. As you can see, there is no action similar to color changing. First option is make a splitter with 2 panels (black/white) inside of splitter and hiding/showing them due the two activelinks with different qualification. But there is easier workaround. Set the “Custom CSS Style” eg. unique identifier of html element of the desired panel to “changePanelBGColor” and execute the following line via “Run Process”, it is very easy to run jQuery action:

javascript:$('.changePanelBGColor > fieldset > div').css({"background-color":"blue"})

Instead of class changePanelBGColor you can use id of field (if you dont want to identify custom css style). Mentioned panel will change bg color to blue. You can use own css identifier or find css id inside of div. There is a example as  active/inactive tabs in

UIM_scrshot

Incident Console: PS: Be carful with midtier upgrade because of new versions can change html structure.

Leave a Reply