28
DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing on PI ICE

DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

Embed Size (px)

Citation preview

Page 1: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Extend your Reach

Jason Banfelder – Kesler Engineering

Brian Bostwick - Omicron Consulting

Developing on PI ICE

Page 2: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Overview

• PI ICE Review

• Architecture and Theory of operation

• Introduce the ICE Tookit

• Create a presentation web part

• Build a custom business object

Page 3: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

PI ICE Pages

An assembly of HTML Web

Parts

Page 4: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

What is a part?

• Content for presentation– HTML text or a URL– XML/XSL that produces HTML– Script that creates HTML

• Layout, size, position, minimized, visibility

• Links for help, customization, drill to detail

Page 5: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Part Personalization

• Global Properties; content and help link

• Personalized Properties; size and position

• ‘Part Storage’ for tags and time settings

The Publish function will make all personalization available to others.

Page 6: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Assembling a PI ICE

page

Page 7: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Client Side EventsBrowser

ICE Display

Tag Search

Time Range Snapshot

PI TrendComponentInteractivity

DDSC

Page 8: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Web Part events in javascript

• Register to receive an event….

DDSC.RegisterForEvent( "onTimeChange", onTime);

• Broadcast an event to all parts registered ….

DDSC.RaiseEvent( “onTimeChange”, strNewTimes);

Page 9: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Internet Information Server(IIS)

PI ICE Data Access

PI Web ServiceSOAP

Browser

ICE Display

Web Part

Web Part Web Part

Web Part

BOBO

BOHTTP

Page 10: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

PI WebServices Detail

Internet Information Server(IIS)

PI Web Service

BOBO

BO

Browser

ICE Display

Web Part

Query Object

SOAP Client

PI Data Object

Page 11: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

What is a method call

Set rntData = myobj.myfunction ( param1, param1,…)

The Data returned

Object called upon

Method invoked

1 to n parameters

Page 12: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Local function call

  Object: BOEvents.cBOEvents   Parameter1: localhost   Parameter2: SINUSOID   Parameter3: *-1m   Parameter4: *

Page 13: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

ICE function call in XML

<QuerySpec Name=“GetPITagData">- <Properties>  <Property

Descriptor="30">BOEvents.cBOEvents</Property>   <Property Descriptor="13">localhost</Property>   <Property Descriptor="14">SINUSOID</Property>   <Property Descriptor="1">*-1m</Property>   <Property Descriptor="2">*</Property>   </Properties>  </QuerySpec>

Page 14: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

ICE function call javascript

<APPLET id="apWSQ“ code=“PIWSQuery” . . . ./> apWSQ = AddQS ( “GetPITagData“)

  apWSQ.AddQAProperty (“BOEvents.cBOEvents” )   apWSQ.AddQAProperty ( “localhost ” )   apWSQ.AddQAProperty ( “SINUSOID ” )  apWSQ.AddQAProperty ( “*-1m ” )  apWSQ.AddQAProperty ( “* ” ) 

Page 15: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Call from javascriptvar strQuery=apWSQ.GetXMLDocument();

var result=apPISOAP.invoke("PIWSQuery2", strQuery);

if (result == 0) { var

strData=apPISOAP.getDataDoc("PIWSQuery2");}

apPIDatObj.SetXMLDocument(strData);

Page 16: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

PI WebServices Detail

Internet Information Server(IIS)

PI Web Service

BOBO

BO

Browser

ICE Display

Web Part

Query Object

SOAP Client

PI Data Object

Page 17: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Business Objects

Internet Information Server(IIS)

PI Web Service

Query SpecObject

PI Data Object

BOEvents.cBOEvents

Page 18: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

The VB Business objectImplements IPIWEBBO

Public Function IPIWEBBO_QueryData( _oQS As QuerySpec, …. ) As PIDataObject

……Dim oPIDO As PIDataObject……Set IPIWEBBO_QueryData = oPIDO

End Funtion

Page 19: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

What was that again?

Page 20: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

The ICE Toolkit

• A separate setup kit for developers

• Developers User Guide and reference

• Web Part templates

• VB Wizard for ICE business object

• Sample code for ICE business object

Page 21: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Developers guide

• Theory of ICE operation

• Methods for ICE development

• Discussion of the web part templates

• Style sheet reference

• API and Object reference

• How to build a business object

Page 22: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Create a web part

Page 23: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

PI WebServices Detail

Internet Information Server(IIS)

PI Web Service

BOBO

BO

Browser

ICE Display

Web Part

Query Object

SOAP Client

PI Data Object

Page 24: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Business Objects

Internet Information Server(IIS)

PI Web Service

Query SpecObject

PI Data Object

BOEvents.cBOEvents

Page 25: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Demo Custom Data

Page 26: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Resources

• ICE Toolkit– Developers Guide and Reference– Template ASP web parts– Business object sample– ICE Source (It’s mostly ASP files in text)

• Digital Dashboard Resource Kit

[email protected] mailbox

Page 27: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Call to Action

• Install the ICE Toolkit• Use the Admin and Devo Guides• Design ICE Business objects for custom

data integration.• Build custom parts

Page 28: DevNet Unplugged 2002 “Express Your Innovations” Extend your Reach Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting Developing

DevNet Unplugged 2002 “Express Your Innovations”

Questions?

Thanks!

Extend your reach!