Would like to know how I can let the system conditionally pick the report style based on the parameter user provides on the BAQReport screen.
We would like the user to provide a PartNum on the BAQReport and based on the PartNum the system should automatically pick the report style associated to the Part.
I have the following setup -
BAQ
Report Data Definition
Report Style
BAQ Report Designer
BAQReport screen via menu maintenance
Thanks in advance for any suggestions on how this could be achieved.
I would add a custom field in the Part table like ‘report style’. Then, a customization on the print form which will get that custom field and then set the report style in the form for you. Maybe use the Form_Load event for that.
If you have Print Routing licensed, Epicor has an action available to change the report style automatically based on the criteria. It’s pretty easy to get setup.
It’s slick when you mass print documents like AR invoices from a group and need a different report style. Had to solve for printing the form in different langues based a customer attribute.
ping me back if you need help, I remember it being easy as long as the criteria field is in the RDD.
Yes, screen customization using the script editor. I don’t think there is an event you can use for the method directives. I would also look at the auto-print suggested here, if you can make that work the way you want it will be way easier and quicker to do.
Sorry, I should have mentioned that we are using bartender to create these labels.
Looks like the auto print cannot be used if the report type is Bartender.
Hi Vinay,
This was actually the first scenario we checked.
Create one report style in Epicor and use multiple templates in Bartender off 1 file.
But unfortunately, our labels are print in different sizes and I don’t think we can have different template sizes in one bartender file.