- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 01:53 AM - edited 08-21-2025 01:56 AM
Hi Team,
I have been asked to write the code align with the Below Image..
I have used glideAggrette.. But state is showing like 2,3 but not showing in display name and this bog space how to give.
My Code :-
var x=new GlideAggregate('incident');
x.addAggregate('COUNT','state');
x.query();
while(x.next()){
gs.print(x.state.+grIncident. getAggregate('COUNT','state'));
}
not getting the below Output
@David my Post is always getting in unapproved phase. Help me
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 09:31 AM
Hi @vidishaagarwal5
You need to change the Code to the below code
gs.print('State\\tIncident Count');
var x=new GlideAggregate('incident');
x.addAggregate('COUNT','state');
x.query();
while(x.next()){
gs.print(x.state. getDisplayValue()+'\t'+x. getAggregate('COUNT','state'));
}
This will Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 10:15 AM
As per community guidelines, you can accept more than one answer as solution. If my response helped you, please mark it as helpful and accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 09:57 AM
@David and @Dan Bruhn can you help her .
Thanks in Advance !!