Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Create Override/Alarm Report

We created a Create Override/Alarm Report form tool that allows the user to be able to generate reports regarding alarms and overrides and email them to any user with a valid email.

How to use Create Report

First the finHtmlReporting.pod file needs to be added to "fan" folder located within the "lib" folder of the FIN Stack folder directory. Contact support regarding the finHtmlReporting.pod.

The user must also set up email SMTP settings. As well as enabling the finHtmlReporting and html2pdf extensions.

The user will then go in the Folio app.

Image RemovedPrerequisite: 

  • You'll need the finHtmlReporting pod and have it enabled. Refresh browser after enabling.
  • You'll also need to have the Email SMTP settings configured in the Host > Settings . Then make sure a user has a valid email to receive the reports.
  • You'll also need to enable the html2pdf extension.

How to use Create Override/Alarm Report

The user will go to the FIN Reports app.

Image Added

Then, once inside the app, the user will select Tools in the top menu bar. Inside the drop down menu, there is going to be an option called "Create Report".Image Removed Create Override/Alarm Report.

Image Added

After selecting that, the form pop up will come up.

Image RemovedImage Added

The required fields to fill out will be:

  • Choose your template: You won't need to touch this as it will automatically have the Select site_report.hbs template selected by default as the template. This is the standard template we use for the report.
  • Choose your header image (optional): This will populate the file images you tagged with a 'siteReportHeader'  marker tag (you will have to click on the image to select it).
  • Data used for the report: You won't need to touch this either as this is the function used to gather the data for your report (to see, run 'reportData()' in folio).
  • File (mark to save in folio): Select this box to save the report in folio so that you can download and store it locally on your machine. (You can query for them by running "file and report" in folio)
  • Name of the report: This will be the display name shown on the report in the email and in the folio file if choosen chosen to save it in FIN.
  • Email (Mark to send report via email): Select this box to enable email option to a user.email reports, otherwise just creates a report in the background and doesn't get emailed.
    Note: If unchecked and then decided to use that report, the user would have to find that job in the Jobs app and edit it. They want to change the sixth parameter of the func to true. That way when the job runs it will send out the email. Else, delete this job and recreate the report.
  • To email addresses: add Add email addresses separated by comma.
  • Email Subject: The This will be the subject of the email.
  • Format: HTML or PDF.
  • Create job: none, daily, weekly, monthly. If you choose none, the email will send immediately. If a job is chosen, the email won't be sent until midnight unless reconfigured in the job applicationapp to run at a different frequency.

After you apply those changes, it will send the email based on what was selected.

...

titleHeader Image

Upload your logo image into Folio->Files and add a 'siteReportHeader' marker tag on the image you uploaded.

...

.

Report Logo Setup

To upload an image to use for the report, the user will follow the below steps.

The user will first go to Folio > Menu.

Image Added Image Added

Then select Files in the Folio menu.

Image Added

The user will then be able to find the "Upload File" option there to select.

Image Added

They will then select on "Choose File" to find their image to upload.

Image Added

Once an image(s) has been uploaded, the user will select "Images" in the Folio menu to find their image and tag it.

Image Added

Once found, the user will select it to open the slider menu and select "View Edit".

Image Added Image Added

In the Edit view, the user will select "Options" to open the slider menu and select "Tags".

Image Added Image Added

In the Tags pop up, the user wants to type in "siteReportHeader" in the Name of tag field. Then select Marker as the type of tag. Then apply that tag to the image. This can be done for multiple images.

Image Added

Once that is done, in the Create Override/Alarm Report tool, the user will see that image as an option to select for the report.

Image Added

Example Report

Note

You can query all of your reports by typing in 'file and report' in folio.