- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-16-2024 04:22 AM
i want to display like this in an infomessage box. when i am opening an existing incident form.how to do this.help me
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-16-2024 04:36 AM
HI @HarithaP
try the below code.
var gr = new GlideAggregate('incident');
gr.addAggregate('COUNT','state');
gr.query();
while(gr.next()){
gs.print("state:"+gr.state.getDisplayValue()+''+'('+gr.getAggregate('COUNT','state')+')');
}
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-16-2024 04:36 AM
HI @HarithaP
try the below code.
var gr = new GlideAggregate('incident');
gr.addAggregate('COUNT','state');
gr.query();
while(gr.next()){
gs.print("state:"+gr.state.getDisplayValue()+''+'('+gr.getAggregate('COUNT','state')+')');
}
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-16-2024 04:39 AM - edited ā05-16-2024 05:03 AM
Hi @HarithaP ,
Could you please let me know every time when you open any incident form you want see all the incident state count as an info message is it ?
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang