- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2016 05:03 PM
I have a glideAjax on UI action (List Choice). Lets say, addInfoMessage is added from the server-side, its gone when I referesh the list, irrespective of before or after the ajax call. If I return the message to ajax call, g_list doesnt have addInfoMessage, how could I display it. Any help is much appreciated. Below is my code snippet.
function onClickFunctionName() {
var selSysIds = g_list.getChecked();
g_list.setFilterAndRefresh("");
var ga = new GlideAjax('scriptName');
ga.addParam('sysparm_name', 'funName');
ga.addParam('sysparm_sys_id', selSysIds);
ga.addParam('sysparm_show_msg', false);
ga.getXMLAnswer(function(response){
//GlideList2.get("tableName").setFilterAndRefresh("");
});
}
Thanks,
Medha
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2016 11:48 AM
Hi Medha,
Try using the below function. It should work.
The first parameter is the message.
addFormMessage("Testing", "info", 0) // for info
addFormMessage("Testing", "error", 0) // for error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 08:29 AM
same issue Uncaught ReferenceError: addInfoMessage is not defined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 09:05 AM
Hi Alexander,
Is this on a form? Sorry if that is the case. please prefix g_form before addinfomessage. g_form.addInfoMessage(response, 0);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 09:07 AM
Oh no , sorry on a list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 09:50 AM
Hi Alexander,
That function is no more available on the GlideList. So I believe the good alternative would be to use a glide dialog window to show the response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 09:52 AM
Ah i understand , might you have an example of this ?