I’m very new to creating BAQs and have created one for updating jobs and marking them as “purchase direct”, however even though everything else is working, it will not update the checkbox on the jobs and no errors are given. I found the below on another thread but it is a few years old and likely not relevant to our version and I cannot make sense of it. I found the calculated field editor but no real idea what I am doing. Does someone have a more up to date guide?
Resolution
- Add a bit calculated field to the Updatable BAQ named dspBuyIt and in the expression set it equal to JobMtl.BuyIt
- Move to Update > General Properties
- For field Calculated_dspBuyIt check Updatable.
- Move to Update > Update Processing tab.
- In the Query To Object Column Mapping click Expression Editor.
File > New
Table = JobMtl
Field = dspBuyit
Expression = ttResult.Calculated_dspBuyIt - File > Save
- File > Exit out of Expression Editor
- Move to Object to Query Column Mapping tab and click Expression Editor.
File > New
Table = ttResult
Field = Calculated_dspBuyIt
Expression = JobMtl.dspBuyIt - File > Save
- File > Exit out of Expression Editor
- Move to Analyze tab.
- Click Get List button.
- Double click on a row to update and check dspBuyIt.
- Click Update button
- Click Clear Grid
- Click Get List to confirm that the record was updated.