Adding a task parameter in application events for enterprise printing

Before you can use this feature, you must set up the IDM file server and its logical folders, and you must enable IDM Enterprise printing.

See the help topics Setting up a file server with logical folders and Setting up an IDM Enterprise printer.

Note: IDM Enterprise printing is available only in a multi-tenant cloud environment.

In a multi-tenant cloud environment, application developers can use the TaskProfileEnterprisePrinter parameter as a contextual attribute, to specify an IDM Enterprise printer, for task events. You can use this parameter to print form reports using an IDM Enterprise printer. This parameter overwrites the default printer settings of the report. If no IDM Enterprise printer is defined for a report, the report is printed using the default settings.

Note: Alternatively, you can use the EnterprisePrinter profile parameter to specify an IDM Enterprise printer, to print form reports that are submitted as background tasks. You can define this parameter by editing a form report in the Web Designer. See the help topic Adding a task parameter in a component for enterprise printing.
  1. Open the Events form.
  2. In the Event Name field, select TaskOnPerform and then click Filter-In-Place.
    Note: You can create or use custom events, but we recommend that you use the TaskOnPerform event.
  3. Click Event Handlers.
  4. On the Event Handlers form, select a form report object in the Applies to Object field.
    For example, select DatabaseSchemaReport.
  5. Ensure that the Active check box is selected and then click Save.
  6. Click Event Actions.
  7. In the Action Type field on the Event Actions form, select Set Values.
  8. Optionally, in the Action Description field, specify a description for the enterprise printer parameter.
  9. Click Show Details.
  10. On the Parameters tab, specify this syntax: SETPARMVALUES(TaskProfileEnterprisePrinter='PrinterName'), where PrinterName is the name of the IDM printer, as defined on the Printers form.
  11. Optionally, to verify that the specified syntax is correct, click Check Syntax.
  12. Click Save.