Upload
moses-lucas
View
214
Download
0
Embed Size (px)
Citation preview
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”
Overview
• PI ICE Review
• Architecture and Theory of operation
• Introduce the ICE Tookit
• Create a presentation web part
• Build a custom business object
DevNet Unplugged 2002 “Express Your Innovations”
PI ICE Pages
An assembly of HTML Web
Parts
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
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.
DevNet Unplugged 2002 “Express Your Innovations”
Assembling a PI ICE
page
DevNet Unplugged 2002 “Express Your Innovations”
Client Side EventsBrowser
ICE Display
Tag Search
Time Range Snapshot
PI TrendComponentInteractivity
DDSC
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);
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
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
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
DevNet Unplugged 2002 “Express Your Innovations”
Local function call
Object: BOEvents.cBOEvents Parameter1: localhost Parameter2: SINUSOID Parameter3: *-1m Parameter4: *
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>
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 ( “* ” )
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);
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
DevNet Unplugged 2002 “Express Your Innovations”
Business Objects
Internet Information Server(IIS)
PI Web Service
Query SpecObject
PI Data Object
BOEvents.cBOEvents
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
DevNet Unplugged 2002 “Express Your Innovations”
What was that again?
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
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
DevNet Unplugged 2002 “Express Your Innovations”
Create a web part
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
DevNet Unplugged 2002 “Express Your Innovations”
Business Objects
Internet Information Server(IIS)
PI Web Service
Query SpecObject
PI Data Object
BOEvents.cBOEvents
DevNet Unplugged 2002 “Express Your Innovations”
Demo Custom Data
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
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
DevNet Unplugged 2002 “Express Your Innovations”
Questions?
Thanks!
Extend your reach!