Hello!
Does exist While...Do loop exist in Appian 16.1? If no, is something that replace that?
I am trying to do multiple save on a CDT but applyComponents seems not very practical.
Any idea how can I improve the applyComponents function or any other idea how to save different value on the same time?
// local!newarray is an array of intinger.
a!save( ri!info[1], rule!SIL_testExpression(1) ), a!save( ri!info[2], rule!SIL_testExpression(2) ), a!save( ri!info[3], rule!SIL_testExpression(3) ) /*a!applyComponents( a!save( ri!info[_], rule!SIL_testExpression(_) ), local!newarray ) */
Discussion posts and replies are publicly visible
You really would be better off using the new a!forEach():
https://docs.appian.com/suite/help/20.1/fnc_looping_a_foreach.html
I know but doesn't exist on old version of Appian. In 16.1
a!forEach() is much better and was introduced (iirc) in 17.2 -- if at all possible you should upgrade. I would consider being stuck with 16.1 as essentially torture for a dev at this point; is there a particular reason you still have to use 16.1?