Whenever I try to update the purchase direct field on a job material in an updatable query it will switch back to it’s original state. I have another field on the same query that updates fine so I don’t think the update settings are wrong.
You basically need to set the field dspBuyIt in the updatable BAQ but there is not an easy way to do this. You can do this by directly changing the BPM code and setting dspBuyIt = to the same as BuyIt
– or –
The below assumes you already have an updatable BAQ setup and working with JobMtl
Add a calculated field to your BAQ named dspBuyIt (Calculated_dspBuyIt) and in the expression set it equal to JobMtl.BuyIt
Next, in the General Properties of the Update add the field Calculated_dspBuyit and flag it updatable
In the Update Processing tab Query to Object Column Mapping ADD the following
MapTableName = JobMtl
MapFieldName = dspBuyit
Expression = ttResult.Calculated_dspBuyit
the other fields will default Object to Query Column Mapping ADD the following
MapTableName = ttResult
MapFieldName = Calculated_dspBuyIt
Expression = JobMtl.dspBuyIt
the other fields will default