Documentation of what the Parameters of "Set up Auto Print" are

What are each of these parameters in the “Report Parameters” tab of the “Setup Auto Print” dialog of an Auto Print block in a BPM? (the report selected was the PackSlip)

image

PackNum is the only one I changed from the default. It was “The 0 Constant”. Changed it to “The specified expression”, with the expression just returning the BPM variable TestPackNum (which is set in a Exec Cust Code block). I did change SSRSEnableRouting to TRUE, after making the screenshot above.

In particular…

  1. What is the format for PackNumList? Comma, Tilde(~), Tab separated? Spaces between Packnum and separator?
  2. PrintingOptions? Defaults to “The S constant”
  3. StyleNumExt? Is that what determines PDF, Excel, etc…? If so, what are the valid values?

These part of those “secret docs” the developers have access to? :wink:

FWIW - We have the module that enables the Break/Routing of print styles. And the Report and Style selected in the Auto Print block is a pack slip with a break/routing setup.

I’ve been wanting to play with this one too, we use autoprint for EDI but that’s all so far, we’ve talked about auto-print labels for our stock room guys.

For PackNum, we’ve used the “The specified table and field value” option and set it to the ship head packnum field instead of an expression.

The BPM is actually a Data Directive for a UD table.
An Execute Custom Code block builds and send HTML emails based on selecting records from the ShipHead.

So the PackNum is only available in the Exec Cust Code block. I’m trying to use a BPM variable to set the PackNum in the AutoPrint.

1 Like

I’ll answer one of my own questions…

The PackNumList format is a tilde separated string

PackNumList = "12345~12346~12349";

Found this by doing a trace while running the Re-Print Packers report with several Packers selected.

Did you ever figure out how to do this? I’m trying to set the number of copies to print based on a UD field in WorkStation. My first thought was to copy that value to a BPM variable, but AutoPrint apparently cannot use BPM variables. The best solution I’ve found is to use a field of CallContextBPMData.

1 Like

@krum you should be able to use the following:

2018-05-09_1822

The list is populated based on what you have in your Report Data Definition, you would have to go to your RDD and add a few JOINs to get your Workstation.

Also if you look behind the scenes perhaps you can replicate some of Epicor’s Auto-Printing in Custom Code Block.


Or you could always do what @josecgomez would do :stuck_out_tongue:


2018-05-09_1910
2018-05-09_2004

Actually that might yield 987 copies because the second one would be empty… also I think Tuple is readonly like that - But you get the idea. (PS: Don’t do that! But think outside of the box :slight_smile: )