info message in different table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 04:00 AM
Hi All,
Is there any possibility to show info message in different table?
For eg: i have written a business rule in table A. In that BR am querying data from table B. If my query condition gets satisfied, i need to show an info message in table B. (User will be working in table B)
Regards,
Ragavendran R
- Labels:
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 05:46 AM
Traditional info messages, gs.addInfoMessage(), are session based, so it will show up wherever the user session ends up after it has been called.
You could try doing an onLoad Client Script and g_form.addInfoMessage(), based on some sort of logic on the form, if your requirement would have such a condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 06:49 AM
But if write onLoad client script, am getting the info message everytime when page loads. I need this message on particular action.
Regards,
Ragavendran R

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 07:10 AM
Check out the putClientData, getClientData, and clearClientData methods of the GlideSession API. http://wiki.servicenow.com/index.php?title=GlideSession#gsc.tab=0
I'm wondering if you could use a combination of those methods to explicitly define your action.
Something like...
1) Scripts on Table A put a trigger on the session.
2) Scripts on Table B check for the trigger and then clears the session data when finished.