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.
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.
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.
Address Source - There are two types of Recipients Source: Email Addresses and User Roles, each having a different interface.
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.
ReplyTo Roles - enter the user roles you want to have in the 'ReplyTo' header of the email.
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 # getKeys() may be called on a row to list all of the column headers in the row. firstHeader = firstRow.getKeys() # getKeyValue() may be used to access the value of a column in the row. firstColumnInRow = firstRow.getKeyValue(firstHeader)