PDF Wizard (List View)
Last updated
Last updated
In order to copy the Generate PDF UI Action to selectively print labels from list view:
Copy the UI Action
Visit Yansa PDF Generator -> Label Templates in the left nav.
Right-click the form header and select Configure -> UI Actions.
Select & open the UI Action titled 'Generate Labels from Selection (Sample).
Update the Name and Table fields to match the table where you wish to place the list choice that will open the wizard. Following the instructions in the Script field, update code values to accommodate your needs (see below for details on available customizations). Insert and Stay to create a new copy of the UI Action.
Visit the standard list view for the specified table. Select some items and click the list item to open the Generate Labels from Selection wizard.
By default, the Generate Labels from Selection UI Action will have a Script similar to below:
To customize the behavior of the wizard, you can set any option below on the modalOptions object.
Customize the Select Template step:
modalOptions.select_step_display: [boolean]: Show/hide the first 'Select template' step. Otherwise, template must be pre-set [default: true]
modalOptions.pdf_template: [sys_id of template]: Preset the selected template
modalOptions.pdf_template_read_only: [boolean]: Display the 'Select template' step, but enable/disable it as read-only [default: false]
modalOptions.pdf_template_display: [boolean]: Display the 'Select template' step, but show/hide the select box [default: true]
Customize the Merge Data step:
modalOptions.merge_step_display: [boolean]: Show/hide the second 'Merge data into PDF' step. Otherwise, data source/record must be pre-set [default: true]
modalOptions.source_table: [tableName]: Set the source table for merge data
modalOptions.source_table_include_extensions: [boolean]: Include extended tables from source table
modalOptions.source_record_table: [tableName]: Set the source table for merge data
modalOptions.source_record_id: [sys_id of record]: Set the source record for merge data
modalOptions.merge_read_only: [boolean]: Enable/disable the 'Merge data into PDF' step as read-only [default: false]
modalOptions.pdf_data_source: [sys_id of data source]: Set data source for merge data. (Note: Only applies to label printing)
Customize the Edit PDF step:
Customize the Save PDF step:
modalOptions.save_step_display: [boolean]: Show/hide the third 'Save PDF' step [default: true]
modalOptions.enable_download: [boolean]: Enable the 'Download' option [default: true]
modalOptions.enable_save_to_current_table: [tableName]: Enable the 'Attach to current' option. [default: false]
modalOptions.enable_save_to_current_id: [sys_id of record]: Enable the 'Attach to current' option. [default: false]