gs.addErrormessage is popping on form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:35 AM
Hi All,
In the advance script of BR I have added
gs.addErrorMessage('xyz.');
current.setAbortAction(true);
current.state = previous.state;
The above message is just flashing on the form and disappears. I want to make the message to be visible to the user. how can I do?
Thanks,
Sowmya.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:47 AM
Hi Tomasi,
Helsinki release and ui16
Thanks,
Sowmya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:50 AM
Please provide screen shot, how it is showing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 02:26 AM
Hi Tomasi,
Business rule
Condition: when state changes from 1 to 2
Advanced script:
Initially flag is set to true.
Doing glide record.
if(record is found){}
else {flag=false;}
if(!flag) {
current.state = previous.state;
gs.addInfoMessage('xyz.');
current.setAbortAction(true);
}
I have a ui action with few condition and below is the script
current.state = 2;
current.update();
//action.setRedirectURL(current);
May I know where I'm wrong so the info message is flashing away instead of staying on the form.
Thanks,
Sowmya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2016 07:24 AM
The standard behavior for gs.addInfoMessage() and gs.addErrorMessage() is to stay on the screen. I do not know what might be causing it to disappear.
Have you tried an extremely simple case of a before/update business rule with just one line:
gs.addInfoMessage('Record updated').
and see how that behaves? When ever things don't work as expected, start simple and check the differences.