gs.flushMessages() does not work on Scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2018 04:09 AM
Hi,
I need to avoid multiple messages popping up in the list view when we do a mass update , for this we used Flushmessages() , but it doesnt work on Scoped application. Is there any way we can avoid multiple info messages from the list?
- Labels:
-
Scoped App Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2018 12:25 PM
Hi Sushmutalli,
I guess gs.flushMessages() does not work in Scoped application. As an alternative you can look for g_form.clearMessages()
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 11:43 AM
I have to run it on Server side , Is there any other alternative to clear the previous messages on server side?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 11:58 AM
I get that this is a dated thread but I came across it dealing with this same issue today...so I thought I would throw my "solution" out there. I have a script include with various "utils" function in my scoped app. Per this thread, in this context, gs.flushMessages() does NOT work. So I created a second script in the global scope with a single function to call gs.flushMessages().
I have NO clue why flushMessages is not available in a scoped app; this is a complete head scratcher to me personally. But this "solution" (aka workaround) does do the trick. Hopefully this helps someone else down the road.
Scope app script include:
new global.stsAdminUtils().flushMessages();
Global script include:
var stsAdminUtils = Class.create();
stsAdminUtils.prototype = {
initialize: function() {},
flushMessages: function() {
gs.flushMessages();
},
type: 'stsAdminUtils'
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 06:14 AM
Do you think this would work on portal? Or only on backend? I am having an issue when using a catalog item that adds roles. Whenever we hit the approve request button, the screen goes full on crazy.