- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2018 12:28 AM
Hi all,
I want to get Total no of active incidents count should be displayed after submission of an incident record as a message.How can I get the same.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2018 03:25 AM
Hi,
Use below code in After BR on incident table,
var inc = new GlideRecord('incident');
inc.addActiveQuery();
inc.query();
gs.addInfoMessage("Records in incident table: " + inc.getRowCount());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2018 12:30 AM
Use this script and show it through a popup message:
var gr = new GlideRecord('incident')
gr.query(active,"false");
gs.info("Records in incident table: " + gr.getRowCount());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2018 02:56 AM
Hi,
I want the message needs to display each time after I submit the record.
thanks in advance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2018 03:21 AM
You can add this code and use a Client Script:
var message = 'My text';
spUtil.addTrivialMessage(message);
Give a try!
Please, remember to mark Correct or Helpful if you find my response useful.
Cheers
Alberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2018 03:25 AM
Hi,
Use below code in After BR on incident table,
var inc = new GlideRecord('incident');
inc.addActiveQuery();
inc.query();
gs.addInfoMessage("Records in incident table: " + inc.getRowCount());