How to suppress InfoMessages

th00011
Kilo Contributor

Hi,

We are using textsearches on our knowledge base (using GlideRecord with gr.addQuery('123TEXTQUERY321', search);

This however produces InfoMessages like "Your text query contained only common words or ambiguous wildcards, please refine your search and try again" (propably put there by gs.addInforMessage()

I would like to suppress those messages. gs.getInfoMessages() does only give you the information stored in the session, but I would like to erase them afterwards so they are not displayed to the user.

Any ideas?

6 REPLIES 6

Slava Savitsky
Giga Sage

Thanks for the tip, Mark! This is exactly what I have been looking for for quite a while! It is a pity they do not have this documented on the Wiki...


End user does not want to see this info message, how can i proceed this