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].
2 posts Page 1 of 1

Agupta

Posts: 2
Joined: Tue Sep 08, 2020 5:26 am

Post by Agupta » Wed Sep 23, 2020 6:18 pm
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.

Agupta

Posts: 2
Joined: Tue Sep 08, 2020 5:26 am

Post by Agupta » Fri Sep 25, 2020 1:18 am
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
2 posts Page 1 of 1