Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
12-03-2020 01:50 AM - edited 12-03-2020 01:59 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"
Solved! Go to Solution.
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
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form