1998 PI System Users’ Conference PI on the Web: A Primer for PI Users Omicron Consulting 1998 PI System Users’ Conference.

Slides:



Advertisements
Similar presentations
WEB AND WIRELESS AUTOMATION connecting people and processes InduSoft Web Solution Welcome.
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Languages for Dynamic Web Documents
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Server-Side vs. Client-Side Scripting Languages
1 Chapter 12 Working With Access 2000 on the Internet.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Using Visual Basic 6.0 to Create Web-Based Database Applications
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
4/8/99 C. Edward Chow Page 1 Active Server Page It is a server-side scripting environment for creating dynamic content. ASP are files with.asp extension,
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
4/8/99 C. Edward Chow Page 1 Internet Services Manager Click Start | Programs | Administrative Tools | Internet Services Manager.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Server-side Scripting Powering the webs favourite services.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Data-Enabled Web Sites: Classibooks.com & Internet Database Technologies Colin Fukai April 4, 2000 Gonzaga University.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
The PI-ProcessBook Family Customizable views of your data - Anywhere you want them.
JavaScript, Fourth Edition
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
PI-ProcessBook Developer
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Chapter 8 Cookies And Security JavaScript, Third Edition.
2-1 WEB DATABSE INTERFACING Colorado Technical University IT420.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
1998 PI System Users’ Conference PI-ProcessBook Brian Bostwick Omicron Consulting Mark Hughes OSI Software, Inc.
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
WEB SERVER SOFTWARE FEATURE SETS
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
Generating XML Data from a Database Eugenia Fernandez IUPUI.
ASP.NET Programming with C# and SQL Server First Edition
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
Configuring Internet-related services
Presentation transcript:

1998 PI System Users’ Conference PI on the Web: A Primer for PI Users Omicron Consulting 1998 PI System Users’ Conference

Why Put PI Data on Web Pages? Cheap seats for occasional users Quick access net-wide Get closer to your customers

1998 PI System Users’ Conference Plain Vanilla vs. Rich Presentation Plain Vanilla  Any browser, any platform  No special configuration at the client  Ad hoc static slice of data Rich Presentation  Rich features of PI & COM  More muscle on the client  Configuration and licensing

1998 PI System Users’ Conference Plain Vanilla HTML

1998 PI System Users’ Conference How Does the User Get There?

1998 PI System Users’ Conference Tools Microsoft FrontPage for the gateway page  WYSIWYG editing of the table, form controls Visual InterDev for the server  Tools for managing data sources  Code editor features for scripts

1998 PI System Users’ Conference Forms 101 Start a form: specify an action The values of the form fields are passed to the ASP page as pairs

1998 PI System Users’ Conference Forms 101 (cont’d) Use an HTML table to align input fields User ID: Password: Specify Tag: Other options: pick source names for different servers, views

1998 PI System Users’ Conference Forms 101 (cont’d) End the table, add a button to submit the form <input type="submit" name="B1" value="Retrieve Avgs">

1998 PI System Users’ Conference Browser Return HTML Request HTML HTML and ADO HTTP PI WWW Server IIS Files *.ASP ADO PI-ODBC OLEDB

1998 PI System Users’ Conference ASP: COM meets PI-ODBC Use Active Data Objects (ADO) to manipulate ODBC on the server Include SQL utilities Make a connection to an ODBC DSN ConnectionString = "dsn=PISource;UID=" & Request("UID") & ";pwd=" & Request("pwd") Set Connection = Server.CreateObject("ADODB.Connection") Connection.Open ConnectionString

1998 PI System Users’ Conference ASP - ADO (cont’d) Format and execute a query tag = SQLEncode(Request("tag")) start_time = SQLEncode(Request("start")) end_time = SQLEncode(Request("end")) SQLStmt = "SELECT value, pctgood " SQLStmt = SQLStmt & "FROM piavg " SQLStmt = SQLStmt & "WHERE tag = '" & tag & "' AND time >= DATE('" & start_time & "') " SQLStmt = SQLStmt & "AND time <= DATE('" & end_time & "') AND timestep =RELDATE(""1h"") " Set RS = Connection.Execute(SQLStmt)

1998 PI System Users’ Conference ASP - ADO (cont’d) Create table cells as you step through the data Hourly Averages <% CurrentRecord = 0 Do While CheckRS(RS) If CurrentRecord = 0 Then %> Value Percent Good <% RS.MoveNext CurrentRecord = CurrentRecord + 1 Loop %>

1998 PI System Users’ Conference Plain Vanilla Part II: Displays PI-ProcessBook 2.0 adds VBA scripting and the ability to save displays to Web related formats Server-side app periodically saves a live display to a static-format file ASP page generates a page with a link to the requested image

1998 PI System Users’ Conference Tools FrontPage to layout the gateway page Visual InterDev  No visual component to the ASP, just scripts PI-ProcessBook to configure display files, run the script

1998 PI System Users’ Conference Plain Vanilla Displays: The Code <% Rem Derive the proper PNG filename imgname = "../pbimgs/" + Request("Display") + ".png" Rem Save the filename for use outside this script scope Session("PNGname") = imgname %> ">

1998 PI System Users’ Conference Rich Presentation

1998 PI System Users’ Conference You Are There! Self-contained  Starting parameters are defined in the page  Displays are linked into the page Interactive  Scripts may allow users to modify page parameters  Displays may update within the page

1998 PI System Users’ Conference Requirements Windows Internet Explorer PI-ProcessBook

1998 PI System Users’ Conference Getting ProcessBook Install from a self-extracting executable  Large file  Licensing issues Add a link Install PI-ProcessBook 2.0 Make sure the.exe is not in a directory with execute permissions

1998 PI System Users’ Conference Tools Microsoft FrontPage  WYSIWYG layout of the page  Syntax for embedded objects handled for you PI-ProcessBook to configure display files

1998 PI System Users’ Conference Embedding Displays in HTML First embed an instance of the “PI Display Document”

1998 PI System Users’ Conference Get the Component Allow for component download <object id="Display" name="Display" classid="clsid:4F26B D A0C931BFC8" codebase="pbdctrl.ocx" border="0" width="590" height="273">

1998 PI System Users’ Conference Specify a Display Provide the URL of a PI-ProcessBook display file <object id="Display" name="Display" classid="clsid:4F26B D A0C931BFC8" codebase="pbdctrl.ocx" border="0" width="590" height="273"><param name="DisplayURL" valuetype="ref" value="demo.pdi">

1998 PI System Users’ Conference Automate the Display Two Properties  DisplayURL to change display files  Display to access the display object model, e.g., MyDisplay.Display.SetTimeRange “*-4h”, “*-1h”

1998 PI System Users’ Conference Security Issues Plain vanilla  Security is controlled on the server  ASPs must have script or execute permission  ISAPI DLLs must have execute permission  No special requirements for the client Rich Presentation  Open the PI port number in the firewall to update a display outside the firewall

1998 PI System Users’ Conference Summary Pick a Suitable Model Create ASPs or HTML Support configuration  PI-ProcessBook network installation  Display component download  Security Issues Create display files if needed