280 likes | 385 Views
Extend your Reach. Developing on PI ICE. Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting. Overview. PI ICE Review Architecture and Theory of operation Introduce the ICE Tookit Create a presentation web part Build a custom business object. PI ICE Pages.
E N D
Extend your Reach Developing on PI ICE Jason Banfelder – Kesler Engineering Brian Bostwick - Omicron Consulting 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 Events Browser ICE Display Tag Search PI Trend Component Interactivity DDSC Time Range Snapshot 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”
Browser ICE Display Web Part Web Part Web Part Web Part BO BO BO PI ICE Data Access Internet Information Server(IIS) PI Web Service SOAP HTTP DevNet Unplugged 2002 “Express Your Innovations”
BO BO BO PI WebServices Detail Browser Internet Information Server(IIS) ICE Display Web Part Query Object PI Web Service 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 javascript var 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”
BO BO BO PI WebServices Detail Browser Internet Information Server(IIS) ICE Display Web Part Query Object PI Web Service SOAP Client PI Data Object DevNet Unplugged 2002 “Express Your Innovations”
Business Objects Internet Information Server(IIS) PI Web Service BOEvents.cBOEvents Query Spec Object PI Data Object DevNet Unplugged 2002 “Express Your Innovations”
The VB Business object Implements 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”
BO BO BO PI WebServices Detail Browser Internet Information Server(IIS) ICE Display Web Part Query Object PI Web Service SOAP Client PI Data Object DevNet Unplugged 2002 “Express Your Innovations”
Business Objects Internet Information Server(IIS) PI Web Service BOEvents.cBOEvents Query Spec Object PI Data Object 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 • BetaICE@osisoft.com 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”
Extend your reach! Questions? Thanks! DevNet Unplugged 2002 “Express Your Innovations”