Posted: 23 Jan 2017 7:46 EST Last activity: 25 Jan 2017 1:52 EST
Compare 2 Page List With Data Transform
i have problem for check property in 2 page list using data transform,
for example, i'm using for each page in for Page List A and then i'm using the second for each page in Page List B inside for each page in for Page List A.
but when i'm compare 3 list property PL A & 1 list Propery PL B which using <CURRENT> in PL B (example : .IDCode !=Primary.ABCList(<CURRENT>).sm_BarCode ), its some gets error ( problem with indexin).
CURRENT always refers to the current loop. You are trying to access the outer loop's current which is the root cause and will cause index related issues.
One way of maintaining the index in case of multiple nested loops is to keep a parameter to track index for different loops. This is stored in pyForEachCount parameter. Before entering the LoopB you can do a property set (param.LoopBIndex == param.pyForEachCount) and then use this index instead of Current.