Display InfoMessage permanently on list header

eswarijk
Tera Contributor

I need to display Info Message permanently on the top portion of list view.

Whenever I access the List from the Application menu, the Info Message will be visible in the list header

Hereby attached an image for further reference...

Screenshot (206).png

How to implement this ?

10 REPLIES 10

The SN Nerd
Giga Sage
Giga Sage

This is not achievable without heavy customization.



Perhaps consider an alternative, like a GlideDialogWindow that returns when the background process is complete.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Brian Dailey1
Kilo Sage

Hi Eswari,



You can create a business rule on the table, set it to run either Before/Display on Query in the 'When to run' tab, and under the 'Actions' tab have it display your message (or you can check the Advanced checkbox and add a script that displays the message using gs.addInfoMessage(...)).



This will display your message every time the list gets loaded by clicking your module.   If the user closes the message, it will NOT be displayed again until reloading the list either by clicking the module or navigating the URL again.   Refreshing the list via right-click context menu does not re-display the message, but I'm not clear if that is also part of your requirement.




Thanks,


-Brian


I already tried this with the help of Business rule.But when I edit the cells in the list, the message displayed again


Hi Eswari,



In that case, try using the Advanced option with script:



  gs.flushMessages();


  gs.addInfoMessage('your message here');




The first line will clear any existing message every time it runs before displaying the message again.




Thanks,


-Brian