- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2018 08:49 AM
can you try adding before and after reloadwindow statement and check if its working. if it does, try removing each one and see which works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2018 04:11 AM
Hi Nitesh,
Thanks. I tried adding before and after reloadwindow statement. But nothing works out. Just wondering how to achieve this!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2018 04:53 AM
You can have gs.addInfoMessage(" "); in a script include, and have it work. I think the issue with the script include you included here is the errant } at the end of the code. Your script include should end at the }); so the extra } is likely the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2018 07:29 AM
Hi Ian,
The extra errand is not there in my actual script include. While copying it in my query here some mistake had happened. The message is not getting displayed . I don' t understand where I am going wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2018 08:12 AM
The only time I've seen a gs.addInfoMessage not display from a script include is if the script (or some part of it) failed to run.
So, if the UI Action is correctly calling the script include, which in turn is correctly triggering the event queue, then the message should work.
During my recent work on creating and troubleshooting a script include I made extensive use of gs.addInfoMessage("") and gs.addErrorMessage("") to identify which bits were working.