Hello,
I am trying to update the ttquoteqty UD fields from calculated fields on a ttquotehed update, however whenever the method runs, the ttquoteqty table is not available anywhere during the process. I determine this by triggering messages in the server logs showing the available data rows. it seems to make no difference if I’m using a pre or post process directive. Oddly, in the trace logs, ttquoteqty is available with data (however the rowmod is blank).
my code is below, and run as a pre-processing directive:
message initial bpm.
for each ttquoteqty no-lock.
message ttquoteqty.qtynum.
if available ttquoteqty then do:
ttquoteqty.Number01 = ttquoteqty.TotalBurCost.
ttquoteqty.Number02 = ttquoteqty.TotalLbrCost.
ttquoteqty.Number03 = ttquoteqty.TotalMtlCost.
ttquoteqty.Number04 = ttquoteqty.TotalSubCost.
ttquoteqty.Number05 = ttquoteqty.TotalMtlBurCost.
ttquoteqty.Number07 = ttquoteqty.TotalMtlCost.
end.
end.
Any hints on why it’s not there? If I actually make an update to the ttquoteqty table, the data is in the update frame but I’ll be making the real update on the ttquotehed field instead (this is supposed to trigger on when the TTquotehed.quoted field changes from false to true, but I’ve disabled that condition to test the update process by itself.)
Thanks