get DisplyValue from Glideaggregate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 06:12 AM
Heho,
is there any chance to get the displayValue from GlideAggregate as I can get if from GlideRecord.
The thing is, that I want this number formatted. So for a German user I need: "2235,2300000"
example code:
var agg = new GlideAggregate('order_price');
agg.addEncodedQuery("some query");
agg.addAggregate('SUM', 'price');
agg.groupBy('price_type');
agg.query();
while (agg.next()) {
var sum = agg.getAggregate('SUM', 'price');
gs.info(JSON.stringify(sum,"",2));
}
Output:
"2235.2300000"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 06:26 AM
I got get what is solution is

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 06:35 AM
Feel free to share what worked for you
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 06:23 AM