Skip to content

Commit 5c39968

Browse files
Create count problem.js
1 parent 6717575 commit 5c39968

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var probCount = new GlideAggregate('problem');
2+
probCount.addActiveQuery(); //active record
3+
probCount.groupBy('assignment_group'); //Per Assignment Group wise
4+
probCount.addAggregate('COUNT');
5+
probCount.query();
6+
while(probCount.next())
7+
{
8+
gs.print("Count of Problem records :" +probCount.getAggregate('COUNT') + " " + "Per Assignment Groupwise :" + probCount.getDisplayValue('assignment_group')); //Display Problem record per assignment group
9+
}

0 commit comments

Comments
 (0)