Page 1 of 1

Nested expression

Posted: Wed Sep 23, 2020 6:18 pm
by Agupta
Hi,

I have a rowset called Response.
I am running a for-each loop and the currentItemVariable is "responseRow"
Inside this, I have a for loop whose currentIndexVariable is denoted by "indexVar"
Under the for loop I am trying to execute
${responseRow[${indexVar}]}
but it fails with error [8050 - Set Variable] Invalid expression for attribute 'value' in element 'setVariable'. Unrecognizable character '$' found at position '12'.

If instead, I write ${responseRow[1]}, it works.

So question is, is it possible to have nested expression.

Re: Nested expression

Posted: Fri Sep 25, 2020 1:18 am
by Agupta
I was able to do it.
My expression was wrong
Instead of ${responseRow[${indexVar}]}, I should write ${responseRow[indexVar]}

I am able to now print rows in rowset using for-each outer loop and for loop