I am trying to use collection(list) in b2x virtual method
B2X Method - arguments -
add(Double d,List l)
l.add(d);
But when I write rules it does not allow List object. What is wrong here?
I am trying to use collection(list) in b2x virtual method
B2X Method - arguments -
add(Double d,List l)
l.add(d);
But when I write rules it does not allow List object. What is wrong here?
Try converting the list to an array. You can then iterate over the array with a for loop:
Object[] things = paymentsRepo.payments.toArray();
for(int n=0; n <things.length; n++)
{
... etc