info message in different table

Ragav5
Kilo Expert

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

3 REPLIES 3

Justin Abbott
Giga Guru

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.


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


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.