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.
Nested expression
Post any question you may have in regards to GoAnywhere MFT and let our talented support staff and other users assist you.
If you need a quicker response, please create a support ticket via the customer portal my.goanywhere.com or contact our support team by email at [email protected].
If you need a quicker response, please create a support ticket via the customer portal my.goanywhere.com or contact our support team by email at [email protected].
Re: Nested expression
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
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