Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

indexOf() String function

$
0
0
Hi All,

I'm new to kettle. I have a doubt in string function.

Step 1:
I have a string called curr_code which passing it into next step.

Step 2:
Using java script, declared array variable. String value getting from prev step, logic would be finding in given array list using indexOf().

Result should be "1", but it returns "-1".

Pls find the transformation & help me out of this.

Thanks,
Magesh
Attached Files

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>