Contents
Strategic Partner Links
Sepasoft - MES Modules
Cirrus Link - MQTT Modules
Resources
Knowledge Base Articles
Inductive University
Forum
IA Support
SDK Documentation
SDK Examples
The Print Action is used to send a report to a printer that is accessible from a computer Ignition is installed on. Here are a list of property descriptions for the Print Action.
Property Name | Description |
---|---|
Primary Printer | The primary method of printing the report. |
Backup Printer | A backup method of printing the report. Will print using this option if the Primary Printer fails. [Optional] |
Print Mode | The mode to print the report in. Can be either Vector or Raster. |
Copies | The number of copies of the report that will print. |
Print on both sides | Will attempt to print on both sides of a sheet of paper, if supported by the printer. |
Collate | Orders the pages so that a complete report prints before the next copy prints, if applicable. |
Use AutoLandscape Mode | Evaluates the page dimensions and determines portrait or landscape orientation. |
Page Orientation | The orientation of the page. Can either be Portrait or Landscape. |
The FTP Action can be used to automatically upload your reports to a file server for backups or storage. Here are a list of property descriptions for the FTP Action.
Property Name | Description |
---|---|
Server Address | The server address where the report file will be transferred. |
Port | The port of the file transfer. |
Folder Path | The folder path that the report file will be transferred to. |
Format | The file format of the report. |
Username | The username that will be used to access the FTP server. |
Password | The password that will be used to access the FTP server. |
SSL | Will use SSL encryption if True. |
Filename | The name of the report file. The Filename property is constructed using the expression language. |
Creating an email server
Before you setup any reports to be emailed, an email server must be configured. To create an email server if one doesn't exist, use the 'Create new server' link. This link will take you to Configure > Email Settings on the Gateway webpage. There, you will be able to create an SMTP server. For more information, refer to Gateway Settings.
Here are a list of property descriptions for the Email Action.
Property Name | Description |
---|---|
From Address | The Email address from which the report is sent from. |
Mail Server | The mail server to use to email the report. If one doesn't exist, click on the Create new server link. Refer to Email Settings for more information on that page. |
Format | The file format of the report. |
Retries | The number of retry attempts if the email that was sent failed to be delivered the first time. |
Address Source | Will decide how email addresses are collected. Can be either Email Addresses or User Roles.
This feature is new in Ignition version 7.9.8
Click here to check out the other new features
There is a new 'ReplyTo' Email function that allows you to reply to email actions using the Email Address and User Roles. This simply adds those emails to the "ReplyTo" header of the email sent to the recipient list, so that if recipients choose to reply to that email, their reply is sent to those email addresses as well. |
Subject | The subject of the Email. The Subject property is constructed using the expression language. |
Attachment Filename | The name of the attached report. The Attachment Filename property is constructed using the expression language. |
Body | The body of the email. The Body property is constructed using the expression language. |
Recipients and ReplyTo Emails
Recipients Source - User Roles
The handleFinishedReport function has the following arguments:
There is a special argument in the RunScript Action called dataMap that may be used to review the raw data that was used to generate the report. Below is a demonstration of using dataMap.
# The dataMap argument is simply a Python Dictionary with the name of each Parameter and Data Source acting as a key. # Assuming a Report Parameter named 'shift', the value of 'shift' may be accessed with the following dataMap['shift'] # Similar syntax may be used to extract the value from a Data Source. data = dataMap['myDataSource'] # Rows objects, while similar in nature to a dictionary, are different objects. # Individual rows in the Data Source may be accessed by index. firstRow = data[0] # getKeys() may be called on a row to list all of the column headers in the row. firstHeader = firstRow.getKeys()[0] # getKeyValue() may be used to access the value of a column in the row. firstColumnInRow = firstRow.getKeyValue(firstHeader)