Report Generator in ix Developer 2.0 KI00319A 2015-01

Similar documents
Remote Access (FTP and VNC) in ix Developer 2.0 KI

TOSIBOX connection to PLC and Operator panel KI

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

Tips and Tricks SAGE ACCPAC INTELLIGENCE

Chapter 16. Using Dynamic Data Exchange (DDE)

Viewing and Troubleshooting Perfmon Logs

Excel 2013 What s New. Introduction. Modified Backstage View. Viewing the Backstage. Process Summary Introduction. Modified Backstage View

Word 2010: Mail Merge to with Attachments

Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

WEBFOCUS QUICK DATA FOR EXCEL

Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access

Merging Labels, Letters, and Envelopes Word 2013

ReportBy Notification Examples

Mail Merge Creating Mailing Labels 3/23/2011

Working with SQL Server Integration Services

SLIDE SHOW 18: Report Management System RMS IGSS. Interactive Graphical SCADA System. Slide Show 2: Report Management System RMS 1

Financial Reporting Using Microsoft Excel. Presented By: Jim Lee

ODBC Reference Guide

Call Centre Helper - Forecasting Excel Template

How to use MS Excel to regenerate a report from the Report Editor

Advanced Presentation Features and Animation

Microsoft Excel 2013: Using a Data Entry Form

ACCESS Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818)

Create!form Folder Monitor. Technical Note April 1, 2008

Reporting and Analysis Using Vivid Reports Flex

Alarm Display. Tips & Tricks DIANA SMIT. Tel: 0861-WONDER Fax: (011)

Create Mailing Labels from an Electronic File

SAP BUSINESS OBJECT ANALYSIS FOR EXCEL DEVELOPER GUIDE

What is a Mail Merge?

Word Processing Features. Creating Tables. Steps to Create a Table. Word Processing Features PowerPoint Handout 3.A.1

DiskPulse DISK CHANGE MONITOR

To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data:

By: Peter K. Mulwa MSc (UoN), PGDE (KU), BSc (KU)

Richmond SupportDesk Web Reports Module For Richmond SupportDesk v6.72. User Guide

Team Foundation Server 2012 Installation Guide

SA-9600 Surface Area Software Manual

Information Server Documentation SIMATIC. Information Server V8.0 Update 1 Information Server Documentation. Introduction 1. Web application basics 2

Nintex Workflow 2010 Help Last updated: Friday, 26 November 2010

Shimadzu UV-1700 UV/Vis Spectrometer Updated July 13, 2010

28 What s New in IGSS V9. Speaker Notes INSIGHT AND OVERVIEW

Importing TSM Data into Microsoft Excel using Microsoft Query

SyncThru Database Migration

Using SQL Reporting Services with Amicus

PanelView Plus. Technology in the Spotlight

WHAT S NEW IN MS EXCEL 2013

Microsoft Access 2010 Overview of Basics

Search help. More on Office.com: images templates. Here are some basic tasks that you can do in Microsoft Excel 2010.

Specific Information for installation and use of the database Report Tool used with FTSW100 software.

Instructions for Creating an Outlook Distribution List from an Excel File

Results CRM 2012 User Manual

TheFinancialEdge. Reports Guide for General Ledger

Installing OneStop Reporting Products

EXCEL Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development

Excel Reports User Guide

MS SQL Express installation and usage with PHMI projects

TSM Studio Server User Guide

How to Copy A SQL Database SQL Server Express (Making a History Company)

The first thing to do is choose if you are creating a mail merge for printing or an merge for distribution over .

SMS Database System Quick Start. [Version 1.0.3]

Word 2007: Mail Merge Learning Guide

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

MICROSOFT ACCESS 2003 TUTORIAL

ifix Alarm History Viewer Version 1.0

MODULE 2: SMARTLIST, REPORTS AND INQUIRIES

Introduction to Microsoft Access 2003

To reuse a template that you ve recently used, click Recent Templates, click the template that you want, and then click Create.

Creating tables in Microsoft Access 2007

IXP120 Alarm Monitor Utility

Job Scheduler User Guide IGSS Version 11.0

BSDI Advanced Fitness & Wellness Software

Use the Microsoft Office Word Add-In to Create a Source Document Template for Microsoft Dynamics AX 2012 WHITEPAPER

Microsoft Visual Studio 2010 Instructions For C Programs

Database Forms and Reports Tutorial

To export data formatted for Avery labels -

Check out our website!

How To Create A Report In Excel

SENDING S WITH MAIL MERGE

How To Create A Powerpoint Intelligence Report In A Pivot Table In A Powerpoints.Com

SAP BusinessObjects Financial Consolidation Web User Guide

One of the fundamental kinds of Web sites that SharePoint 2010 allows

Appendix A How to create a data-sharing lab

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

Using Delphi Data with Excel and Access

GUARD1 PLUS SE Administrator's Manual

Tommy B. Harrington 104 Azalea Drive Greenville, NC

Decision Support AITS University Administration. Web Intelligence Rich Client 4.1 User Guide

User Guide. Version 3.2. Copyright Snow Software AB. All rights reserved.

SAP BusinessObjects Business Intelligence (BI) platform Document Version: 4.1, Support Package Report Conversion Tool Guide

Excel Reports and Macros

Microsoft. Outlook ADVANCED FEATURES AND FUNCTIONS

Mastering Mail Merge. 2 Parts to a Mail Merge. Mail Merge Mailings Ribbon. Mailings Create Envelopes or Labels

Vector HelpDesk - Administrator s Guide

Resources You can find more resources for Sync & Save at our support site:

Ocean Data Systems Ltd. The Art of Industrial Intelligence. Dream Report GETTING STARTED. User- Friendly Programming-Free Reporting for Automation

Mail Merge Microsoft Word and Excel Queries Scott Kern Senior Consultant

Quick Start Guide. Highly customizable automated trading Automate your trades according to rules and models you create.

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

Automation License Manager

Transcription:

1 Function and area of use The report generator allows generating Excel reports based on an Microsoft Excel made report template. The generated report can be output to a printer or saved as an Excel file. This document can be seen as a compliment to ix Help documentation. Software requirements: - ix Developer 2.0 - Microsoft Excel or substitute 2 About this Start-Up document This Start Up document should not be considered as a complete manual. It is an aid to be able to start up a normal application quickly and easily. For further information we refer to the manual for ix Developer 2.0. This document and other Start Up documents can be obtained from your closest distributor of operator terminals. Please use the address manual@ beijer.se for feedback on our Start Up documents. Beijer Electronics Automation AB a company in the Beijer Electronics Group Page 1 (16) Parent Company (Reg. office) Subsidiaries Beijer Electronics Automation AB Norway, Drammen: Beijer Electronics AS, +47 32 24 30 00 P.O. Box 426 Finland, Helsinki: Beijer Electronics Oy, +358 207 46 35 40 SE-201 24 MALMÖ, SWEDEN Denmark, Copenhagen: Beijer Electronics A/S, +45 70 26 46 46 Telephone +46 40 35 86 00 Estonia, Tallin: Beijer Electronics Eesti Oü, +372 6 518140 Fax +46 40 93 23 01 Latvia, Riga: Beijer Electronics SIA, +371 7 842280 Visitor s address Stora Varvsgatan 13a, Malmö Lithuania, Vilnius: Beijer Electronics UAB, +370 5 2323101 Reg no. 556701-3965 VAT no SE556701-3965-01, Internet www.beijer.se, e-mail info@beijer.se

3 Setting up report generator in ix This Start-Up is based on a PC-project. While Panel-projects differs from PC-projects, the same method is used. We will create a report that will include 3 values. Start ix Developer and open Tags. Create 3 tags that we will have in the report. www.beijer.se 2 (16)

3.1 Excel template Create a new Excel xls-file which will be the template for ix. The tag data to be displayed in the report file are set up in the template file using placeholders. The placeholders acts as substitute for the actual tag data that is to be inserted when the report is generated in ix Runtime. To add a placeholder, enter the following text inside a cell in the Excel report template: <#Tag(TagName)> Replace TagName with the actual name of the tag to be displayed. When the template file is complete it needs to be added to the ix Developer project. Note! The tag placeholders can only be used in the cells of the Excel template file, they can not be used in, for example, Microsoft Excel WordArt texts. Insert the tags (Value1,2,3) into the xml-file using the text above. Save and close. www.beijer.se 3 (16)

3.2 Import template in ix Go back to ix Developer. Insert Reports found in the Insert ribbon. Open Reports. Add report by clicking on Add and browse for the template xml-file we created. www.beijer.se 4 (16)

Enter a name for the report. Save your project. Saving the project will create a new folder structure in the project files and a copy of the template we imported. www.beijer.se 5 (16)

3.3 Screen layout and connections Create a screen layout containing of 3 analogue numerics and 1 button. Connect the 3 tags to the analogue numerics. Select the button and set action for Click to Generate report found under Reporting. www.beijer.se 6 (16)

We can choose between sending the report to a printer or saving it to disk. Note: Printer setup is found under System Settings in the ribbon menu. In this case select File. Having File selected, click on to set the destination of the file. PC-project: Name Project Files Folder Browse Path Function The file will be saved in a folder named Project Files in the projects execution path. A save dialog will be show in runtime. The user will be able to select path and filename. The file will be save to a specific path. www.beijer.se 7 (16)

Panel-project: Name Project Files Folder USB Memory Card Function The file will be saved in a folder named Project Files in the projects execution path. The file will be saved to a connected USB memory. The file will be save to a external memory card. In this document the file is saved to My Documents, on the PC drive, by selecting Path. Select the report you want to use. In this case only one is available. www.beijer.se 8 (16)

3.4 Generate report Run the project and enter values. Click on Generate Report. The report file has now been created in the folder selected earlier. A new file will be created every time the generate button is clicked. The filename includes date and time. Open the file. The values entered earlier will now be shown in the file. www.beijer.se 9 (16)

4 SQL Add Data Logger and open it. Add 3 log items and connect them to the tags. Open Settings and select Log with interval of and enter the log interval e.g. 5sec. Click OK. Open up the xml-template. www.beijer.se 10 (16)

4.1 Configuration Sheet The configuration sheet is a repository where configurations on the Microsoft Excel report template can be made. This sheet will not be visible in the generated report. 1. Create a new worksheet in the report template. Name the sheet <#Config>. 2. Row 10, and all rows below, in column A and B can be used to configure the SQL queries. Enter the SQL query in column B. Use the corresponding cell in column A to enter a name for the query. The name will be used to refer to the query in the report template. Enter the SQL queries in the following format: SQL(DatabaseName; SQL query) In this case: SQL(General; SELECT * FROM DataLogger1) There are two available databases: General and AuditTrail. www.beijer.se 11 (16)

4.2 Present the Database Data in the Report To present the data in the report, enter the following syntax into the cells included in the named range: <#QueryName.DatabaseColumnName> Replace the DatabaseColumnName entry with the actual name of the table in the SQL database that you wish to present in the report. The data retrieved from the SQL database, using the queries in the configuration sheet, can be presented in the report using named ranges in Microsoft Excel. A named range is created in Microsoft Excel by following these steps: 1. Select the cells to be included in a named range. 2. Click the Define name command from the Insert menu. (In Excel 2007, go to the Formulas tab and choose Name Manager). 3. Enter a name for the range. The name must be entered in the following format: QueryName. Replace QueryName with the name that you have chosen for your SQL query. Note! It is possible to use the named range cells in Microsoft Excel charts and functions. To be able to use the named range in functions, an empty row must be inserted under the named range cells. This empty row must also be included in the function. www.beijer.se 12 (16)

Re-open the template to re-initialize the changes. Run the project. Enter random values to be logged by the Data Logger. Generate a report and open the report file. You should now see the values that have been logged. www.beijer.se 13 (16)

5 Limitations Microsoft Excel xlsx format is not supported by the Report Generator. Reports containing charts and pictures can not be printed from a panel target. Reports containing macros will not be run, before being printed. The report generation is not an instant process. It may elapse a shorter period of time between the first sampled tag and the last sampled tag, depending on the number of tags to process. www.beijer.se 14 (16)

Appendix A Using the Database Viewer to test SQL statements When you install ix Developer, you ll get a small helper program, the Database Viewer, installed along with ix Developer. This small application is mainly used to extract selected database-tables from a Database.sdf database backup file. But you can use this small tool to examine and debug SQL statements. In the SQL-statement textbox, at the bottom of the window, you can enter a SQL statement and click on [Run Query] to run the statement and display the result in the table area. www.beijer.se 15 (16)

Appendix B Useful SQL statements In the main example in this document, we extract data from a datalogger, but you can use report generator to extract any data that is available in the database. If you, fo example would like to list everything in the alarmserver, you could use a SQL statement like this: SELECT * FROM AlarmServer The SQL statement above will give you everything that is available in the alarmserver, unsorted. If you would like the result to be sorted by time and date, you could use a SQL statement like this: SELECT * FROM AlarmServer ORDER BY ActiveTime ASC The SQL statement above will give everything that is available in the alarmserver, sorted ascending by the time and date. You can even make pattern matching in you statement, in the statement below only active alarms are listed: SELECT TOP(20) * FROM AlarmServer WHERE State = 'Active' Finally, all the statements can be concatenated together to create really advanced search and sorting functions. If you, for example, would like the latest 20 Inactive alarms in the alarmserver sorted in a list with the oldest alarm first, you could do something like this: SELECT TOP(20) * FROM AlarmServer WHERE State = 'Inactive' ORDER BY ActiveTime ASC Note that really complex SQL statements can consume a lot of CPU power when executed. These complex statements may cause a slow panel to pause for a couple of seconds. www.beijer.se 16 (16)