I am working on a customization in the customer shipments form and adding a grid to the line details page. The grid I am adding is based off of a BAQ of the JobOper table and I have my BAQ options where list linking the job number from JobOper equal to the job number from ShipDtl. This works when there is only one line, but not when there are multiple lines and then you get the navigation at the top to be able to switch between lines. How do I get this to work when there are multiple lines similar to the way all the text boxes on the form change to reflect the PackLine I am looking at?
I think you need a second event to run your first event every time there is a row change in ShipDtl dataview.
So, set up a new event… named whatever you want.
Trigger:
Type: DataView
Hook: Row Changed
Target: ShipDtl
Add an event-next to call your first event. This way, every time you change rows in ShipDtl, it will rerun your BAQ and should update the results.
You may or may not also need a grid-refresh widget added to the above event.
I’ve done this with textboxes before, but not with grids. So, not sure if it will repopulate automatically or if you need to force it to refresh the grid.
Thank you, I ended up my get event that executes the baq on a new event with triggers and hooks you suggested above, and it seems to work.
Nice! Did you need the grid-refresh? Just curious.
No