Hello,
I have a requirement to display the total quantity sum of selected rows on my custom form. I used MultiSelectionHelper and it works for me, but not quite as required. It only works if I select the rows with using the SHIFT button.... If I select individual rows by selecting the blue checkmark (blue circle), the values do not sum up....
public void markChanged()
{
MultiSelectionHelper helper = MultiSelectionHelper::construct();
helper.parmDatasource(InventTrans_ds);
InventTrans InventTransTmp;
Qty qtySum;
super();
InventTransTmp = helper.getFirst();
if (InventTransTmp.RecId)
{
while (InventTransTmp.RecId)
{
qtySum -= InventTransTmp.Qty;
InventTransTmp = helper.getNext();
}
}
plannedqty.realValue(qtySum);
}

Can anyone suggest something?
Thanks.