rduncan10
18th October 2011, 16:57
I have a type 3 display form and I want to add column that will do a column that will do a calculation for each row.
My problem is that with the code below, the value for the calcualted fields is the same for all the occurances of that field on the screen. I will get something like:
Item:ABC123 Stock: 123
Date Trans Expected Inv [Should be]
10-18 5 128 [128]
10-19 6 128 [134]
10-20 7 128 [141]
My code looks something like this (This is Baan IVc4, so no query extensions).
main.table.io:
read:view:
exp.inv = tiitm001.stoc
before.read:
exp.inv = exp.inv + tdinv150.qana
I tried putting the calculation in before.field too, but then the number keeps changing as I scroll through the records.
This is similar to tdinv1550m000, Display Planned Inventory by Item, where the expected inventory is calculated for each line.
Thanks,
Rob
My problem is that with the code below, the value for the calcualted fields is the same for all the occurances of that field on the screen. I will get something like:
Item:ABC123 Stock: 123
Date Trans Expected Inv [Should be]
10-18 5 128 [128]
10-19 6 128 [134]
10-20 7 128 [141]
My code looks something like this (This is Baan IVc4, so no query extensions).
main.table.io:
read:view:
exp.inv = tiitm001.stoc
before.read:
exp.inv = exp.inv + tdinv150.qana
I tried putting the calculation in before.field too, but then the number keeps changing as I scroll through the records.
This is similar to tdinv1550m000, Display Planned Inventory by Item, where the expected inventory is calculated for each line.
Thanks,
Rob