Nested expression

If you have a new question you’d like our support staff to post a response to, please visit our customer community, GoAnywhere Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at https://insiders.goanywhere.com.

If you need an immediate response, please create a support ticket 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