Skip to Content

Convert.Substring not working

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-

DS_1.getFilterExt("0COSTCENTER")

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

Costcenter=DS_1.getFilterExt("0COSTCENTER")

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.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers