Icon

3. Automate PDF report creation with a loop

Annotations and comments
  • Step 1. Create the report template Add a Report Template Creator node. Keep the default settings. Add a Group Loop Start node and connect it to the Data Source output. Configure it to group on Supplier name.
  • Step 2. Enable reporting Connect the Group Loop Start output to the Supplier Allocation by Department component. Go inside the Supplier Allocation by Department component and click Open layout editor. Tick the Enable reporting checkbox in the bottom left corner to enable reporting. Repeat the previous two steps for the Header component. Connect the output port of the Report Template Creator node to the input ports of both components.
  • Step 3. Report for each supplier Insert a Report Loop End node and connect the Supplier Allocation by Department component output to its input port. Open the configuration and check the Insert page break between reports option, to that plots of each supplier is on a separate page.
  • Step 4. Add a header to the report Use a Report Concatenate node to add a header to the report. Connect the output of the Header component to the top port, the output of the Report Loop End to the bottom port. Leave the Insert page break between reports option in the configuration unchecked.
  • Step 5. Write the PDF report Add a Report PDF Writer node. Configure the path where the PDF file should be written to as URL: knime://knime.workflow/../report.pdf
  • Step 6. Upload and schedule Upload the workflow to one of your KNIME Hub spaces. Create a version of the workflow. Create a schedule deployment of the workflow.
  • Current Time
  • Transactions in the last hour
  • Round to seconds
  • Minus 1h

Nodes

Extensions

Links