Skip to Content

Convert.Substring not working

Jul 25, 2017 at 12:25 PM


avatar image

HI All,

In my Design studio Dashboard, i must capture the selected values from a dimension filter, extract a substring from the selected values and pass it to webi report.

I got the selected values from below code-


the values look something like this- 123/3458 , 2345,876 ..... so on

i have to captue the value after the slash(/) and pass it to webi.

i am using below code to get the substring


len= Costcenter.indexOf("/");
APPLICATION.alert(Convert.subString(Costcenter, len+1,-1));

But the above code is not getting applied to all the values in the list. rather its returning only the substring of first value in the list.

Whats wrong in this code.


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers