Business iQ (Analytics)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to map values from number to string in data collectors

SOLVED
Creator

How to map values from number to string in data collectors

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"

Tags (1)
How to map values from number to string in data collectors
1 REPLY 1
Architect

Re: How to map values from number to string in data collectors

Hi Mohamed

 

you can use the replaceAll Function

 

.toString().replaceAll(1,Pending).replaceAll(2,Approved).replaceAll(3,Rejected)

 

Ciao



Learn more about me in the Community Member Spotlight Q & A