You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing training@inductiveautomation.com.
Version:
LESSON LIST
-
3:18Scripting Functions
-
2:09Scheduling Actions - Save
-
3:15Scheduling Actions - Email
Take Topic Challenge
Supplemental Videos
LESSON
Scheduling Actions - Save
Description
Learn how to create actions that save and print a report on at a scheduled date, or immediately run the action.
Video recorded using: Ignition 7.9
Transcript
(open in window)[00:00] Let's take a look at some of the actions your schedule reports can take. We'll start in the preview panel. I have this report all set up. We'll head over to schedule, and you can see, I have a schedule all set up. The schedule's going to print this report at midnight. We can see some of the configuration options on this action. We head down below, we see that we can specify a primary and a backup printer, which print mode, copies, the how, if you want to print on both sides or not. If we scroll down, you can set the page orientation for the report. Now let's go ahead and add another schedule over here. Click on the plus icon next to the listed schedules. You can see there's a blank one created. I will head down to action tab, and click on this plus icon here. Let's select a new save file action. The save file action will save a copy of the report locally. All you need to do is specify a folder path, which I'll just put my desktop right here, and you give it a format, so instead of a .pdf, we'll do a .png, and then you need to give it a file name. Now, this expression's already built by default for the file name, but you can alter it as you like, and you can use any of your parameters or tags, and there's even some built in parameters you can use here, such as report name, which is what it's already using up here. Now you can have multiple actions on the same schedule. So in addition to save file, we'll come up to this plus icon again and select a new FTP action. With the FTP action, we can specify your server address, what port to use, and user credentials ignition should be using, and then you can select if you need to use SSL or not. Next thing you can specify a folder path, a file name, and what format you want to save the report in, and this is very similar to the save file action. Now the last thing I wanted to mention is that you can have a report run immediately if you'd like. We'll head over to the actions already created on this schedule. We'll click on save file, and this little arrow icon, this will run the selective action immediately. So let's save the file right now. We'll click this. We'll minimize the designer, and there's my report.