I made a customization on Part Transaction History that binds a baq to the part transaction grid (needed to display a field not available in dataset). The customization works great except for the “Open With” function on the grid. Normally, the packslip num would open with Customer Shipment Entry, but with my customization it is trying to open with “Miscellaneous Shipment Entry.” Hmmm. I really want it to open with Customer Shipment Entry, like the base form.
Is there a way to limit the Open With ... items based on record content?
Two examples
If a packer is marked SHIPPED, then only show the Tracker program.
If the packer was created in another site, either:
a. Don’t show any Open With ... entries (because you can’t open it from the current site)
b. Have an Open With .. entry Customer Shipment Entry in <site> and open that form under that site.
@josecgomez - The Customer Shipments and Misc Shipments use two entirely different tables (ShipHead and MscShpHd, respectively).
So the MscShpHd.PackNum field doesn’t really point to a ShipHead.PackNum record.
@Alice_Elizabeth - Are you sure your BAQ is using the right tables? There can be duplicate “packer numbers” within a company.
For example, I just made a new Misc Shipment, and is was assigned PackNum 25601 - the next available PackNum for Misc Shipments. Even though We already have a Customer Shipment with Packnum 25601.
I made my test BAQ with a UNION subquery to join the results from ShipHead and MscShpHd, and even when a record is from the MscShpHd table, the Open With... treats it like it is a ShipHead Record.
I’m guessing this is because the Top query has the ShipHead table, and the UNION Query has the MscShpHd table.
But when I add a calc column of the PackNum (PkNum in my BAQ) to each query, and then set the LIKE property to each calc fields respective table, I get Open With ... Misc Shipment ... for records from either table.