Hi guys, I have the following statement in AX:
conCount = 1; while select forupdate table1 where table1.AccountNum == conPeek(accountNumContainer, conCount) { table1.Status = "Completed"; table1.update(); if(conCount <= conLen(accountNumContainer) conCount++; }
The problem that I'm having with this is that the while loop iterates through the first element in the container (which has 4 elements in this case), updates the first record but then continues the execution out of the while select statement... Am I missing something obvious? Why is it not iterating through the whole container? Does AX support this functionality?
Any help on this issue will be greatly appreciated.
Thanks!
*This post is locked for comments