Types of printing configuration

To add print capabilities to a PCF page you must decide which type of printing you require. You can configure the following types of printing behaviors in PolicyCenter:

  • List view printing that prints a list in PDF or CSV format

List view printing

List view printing supports choosing the output format delivered by the Print button. If you choose to print a list in comma-separated values (CSV) format, you can also choose which columns to print. For example, on the Desktop Activities page, the Print/Export button uses list view printing to provide three print options.

The action attribute of the ToolbarButton element supports list view printing. Set the value of the action attribute to a Gosu expression that calls the printListViewWithOptions method. The following example code implements a list view printing button:

<ToolbarButton
  action=gw.api.print.ListViewPrintOptionPopupAction.printListViewWithOptions(&quot;MyListView&quot;)"
  id="PrintButton"
  label="DisplayKey.get(&quot;Java.ListView.Print&quot;)"/>