How to automatically Open, print preview a BAQ Report in Application Studio

I have added a layer and a button to the Customer Shipment Entry which brings up a Packing Slip Print slide out panel and if you click Print Preview, it brings up the report in a PDF.

I also want to automatically bring up 3 BAQ reports in PDF form without displaying the BAQ Report forms.

I thought of 2 possible solutions.

  1. Do a application studio layer customization on the BAQ Report print form to automatically click the print preview button after the form loads. Could not figure that out.
  2. Add events to automatically print preview the 3 other reports without bringing up the baq report form but printing the report directly to a PDF. Could not figure that out.

Below is the button click event that I have to launch the Epicor Packing Slip which works great!

I just need to add the auto print preview to PDF events without bringing up the BAQ report form for the other 3 BAQ reports.

Please help!!!

Thank you,
Richard
Screenshot 2025-03-05 101911

1 Like

I’ve not tried to do this in App Studio yet. When I did it in Classic, I would simulate the UI that the form would normally use when printing. I don’t know how you would do that in App Studio. I think I would try to write a function that calls the BO and methods required to generate the report. Not sure if that would work. If not, you might be able to use the Rest-Erp widget to call the proper service/methods required to generate and display the report as if it were the native UI doing it.

As soon as I sent the previous message, I also thought about the Auto Print widget in a Standard Data Directive. Use a standard data directive that fires on the Pack Slip print. You’ll need to distinguish this print from any other print… perhaps use the User Description field. I’ve done this in Kinetic to auto print a Job Pick List when printing a Job Traveler. It works.

Three addition reports to preview? Following on @dr_dan you could addin multiple auto print widgets for the other reports on the back of the pack slip print. You can use the autoprint flag to trigger it, using the auto preview option
image

Other option is just a button that calls a function and you setup all submit to agent reporting there using the preview option there…

It is possible to call the report from a butt directly on the form see Printing from Kinetic Web UI Customizations - #3 by dcamlin

But I think you got that already

1 Like