Loop Through Parameters With Arrays and Strings
Posted: May 31st, 2022, 11:09 am
I was working on the SaveMethod for a WebPage.
One of the parameters passed into the save method is an array(UOMTable). The other two parameters are just typical strings (RequestId and Status) being passed in like normal.
We were trying to loop through UOMTable for the array values and then pass the other parameters like normal. If we unselect the loop node it reads the xml just fine but of course the array isn't accessed like we want it to be.
I talked with Joe and he suggested to recreate it to confirm if it was a bug or not so I did. It looks like it breaks before it runs though since in the Controller Submethod the Status parameter is already being read as a string.
One of the parameters passed into the save method is an array(UOMTable). The other two parameters are just typical strings (RequestId and Status) being passed in like normal.
We were trying to loop through UOMTable for the array values and then pass the other parameters like normal. If we unselect the loop node it reads the xml just fine but of course the array isn't accessed like we want it to be.
I talked with Joe and he suggested to recreate it to confirm if it was a bug or not so I did. It looks like it breaks before it runs though since in the Controller Submethod the Status parameter is already being read as a string.