Mapping User Fields for Custom Print Templates
You must map each User Field field of the WMS Auto Printing Rule Evaluation Data record or another standard source record used in your custom print file. You can set up mappings on the Print button used to print the template in which you set up your print file. When you tap the button, the app obtains the data required to print the template for the label or document. You can obtain data from the mobile state, which temporarily stores data captured and used within a mobile process. For more information about custom print files and templates, see Creating Custom Print Templates and Files.
Before you set up User Field mappings, make sure that you have completed the template setup on print reports. For more information, see Setting Up Printing Settings on Print Reports.
If you use the User Field fields in your print report rules, be sure to also map them accordingly. To set up rules, see Configuring Rules for Printers, Templates, or Number of Copies.
The procedure in this topic describes the steps for setting up mappings on existing print button actions. If you want to perform other print button customizations, you can include User Field mapping when you set up the print actions. For instructions, see Setting Up Print Button Actions.
To map User Fields for custom print templates:
-
Access the Before Print Action of the Print button associated with the print template and report by doing the following:
-
Go to Setup > Custom > Mobile Applications.
-
From the Mobile -Applications List, click View next to the mobile app.
-
From the Mobile -Process List, click View next to the custom mobile process.
-
On the Mobile -Process page, on the Pages subtab, click the name of the mobile page that contains the print button.
-
On the Mobile – Page page, on the Page Elements subtab, click the name of the print button.
-
On the Mobile – Page Element page, in the On Click Action field, click the action link.
-
On the Mobile – Action page, in the Before Print Action field, click the action link.
-
-
On the Mobile – Action page for the Before Print Action, on the Input Parameters subtab, click New Mobile – Input Parameter.
Note:The Mobile – Action page also displays the Print Reports subtab. This subtab contains the list of reports associated with templates that you print through the button. You can review the list to make sure that you are setting up mappings for the correct print button and report.
-
On the Mobile – Input Parameter page, do the following:
-
In the Name field, enter a unique name for the input parameter of the User Field field.
-
In the Key field, enter the internal ID of the User Field field
Example: custrecord_wms_user_field_1 – internal ID of User Field 1 of the WMS Auto Printing Rule Evaluation Data record
-
In the Value field, enter the data you want to pass to the User Field field. To set a dynamic value, you can enter the state path to the data.
Example: state:dataRecord:auxParams:customVendorName – state path to the vendor associated with a purchase order
To obtain data from the mobile state, see Accessing Data Stored in the State.
For more information about input parameters, see Input Parameters for Data Validation, Storage, or Submission.
-
-
Click Save.
-
After you complete all your customizations, apply them to the app. For instructions, see Compiling Mobile Customizations.