- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mohamed_Adel
Explorer
12-03-2020
01:50 AM
Hello,
I have configured MIDC(Method Invocation Data Collectors) on an application, to collect the status of orders, but the value is in numbers, how can I map numbers to string to create a meaningful dashboard.
for example:
1 ==> "Pending"
2==> "Approved"
3==> "Rejected"
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Morelz
Builder
12-03-2020
02:20 AM
Hi Mohamed
you can use the replaceAll Function
.toString().replaceAll(1,Pending).replaceAll(2,Approved).replaceAll(3,Rejected)
Ciao
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Morelz
Builder
12-03-2020
02:20 AM
Hi Mohamed
you can use the replaceAll Function
.toString().replaceAll(1,Pending).replaceAll(2,Approved).replaceAll(3,Rejected)
Ciao
