copyright © 2002 osi software, inc. all rights reserved. ice developer brian bostwick omicron...
TRANSCRIPT
![Page 1: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/1.jpg)
Copyright © 2002 OSI Software, Inc. All rights reserved.
ICE DeveloperBrian Bostwick
Omicron Consulting
![Page 2: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/2.jpg)
Overview
• Simple points of customization• Create a new web part• Introduce the ICE Tookit• Create an advanced web part to handle data• Build a custom business object
![Page 3: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/3.jpg)
Users customize pages for themselves
![Page 4: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/4.jpg)
Colors through cascading style sheets
![Page 5: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/5.jpg)
Create a simple web part
![Page 6: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/6.jpg)
The ICE Toolkit
• A separate setup kit for developers• Developers User Guide and reference• Sample ASP pages for all ICE part types• VB Wizard for ICE business object• Sample code for ICE business object
![Page 7: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/7.jpg)
Developers guide
• Theory of ICE operation• Methods for ICE development• Discussion of the web part templates• Style sheet reference• API reference• Object reference• How to build a business object
![Page 8: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/8.jpg)
Internet Information Server(IIS)
Browser
Architecture
ICE Display
Web Part
Web Part Web Part
Web Part
PI Web Service
Active ServerPage
XML&
HTML
SOAP Messages
BOBO
BO
![Page 9: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/9.jpg)
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 10: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/10.jpg)
What is a method call
Set rntobj = myobj.myfunction ( param1, param1,…)
The object returned
Object called upon
Method invoked
1 to n parameters
![Page 11: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/11.jpg)
Local function call
- Object: BOEvents.cBOEvents Parameter1: localhost Parameter2: SINUSOID Parameter3: *-1m Parameter4: *
![Page 12: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/12.jpg)
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 13: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/13.jpg)
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 14: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/14.jpg)
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 15: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/15.jpg)
Business Objects
Internet Information Server(IIS)
PI Web Service
Query SpecObject
PI Data Object
BOEvents.cBOEvents
![Page 16: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/16.jpg)
Business object design in Visual Basic
Implements IPIWEBBO
Public Function IPIWEBBO_QueryData( _oQS As QuerySpec, _ByVal mode As pbwQueryDataModeEnum)_
As PIDataObject……Dim oPIDO As PIDataObject……Set IPIWEBBO_QueryData = oPIDO
End Funtion
![Page 17: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/17.jpg)
Call my business object in javascript
var strQuery=apWSQ.GetXMLDocument();
var result=apPISOAP.invoke("PIWSQuery2", strQuery);if (result == 0) {
var strData=apPISOAP.getDataDoc("PIWSQuery2");}
apPIDatObj.SetXMLDocument(strData);
// Get Event data using the PI Data Object API.
![Page 18: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/18.jpg)
Demo Custom Data
![Page 19: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/19.jpg)
Client Side Events
Browser
ICE Display
Tag Search
Time Range Snapshot
PI TrendComponentInteractivity
![Page 20: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/20.jpg)
Work with client events in javascript
• Register to receive an event….
DDSC.RegisterForEvent( "onTimeChange", onTime);
or
DDSC.RegisterForEvent( "onNewQuerySpec", onNewQuerySpec);
• Broadcast an event to all parts registered ….
DDSC.RaiseEvent( “onNewQuerySpec”, querySpecs);
or
DDSC.RaiseEvent( “onTimeChange”, strNewTimes);
![Page 21: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/21.jpg)
Data Cofiguration Demo
![Page 22: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/22.jpg)
PB Custom data from .NET
• Exercises the COM Interopt features of .NET– IPIWEBBO– PIQueryObject, PIDataObject– Building a COM server Business Object
• Excellent class integration with XML data• More true object oriented languages,
C# and VB.NET
• Developer productivity can be higher• See .NET Experiences, talk by Chris Manhard
![Page 23: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/23.jpg)
Calling PI Web Services from .NET
• .NET is notably geared for Web Services– XML integration with classes– Web Services Browser / References
• Very simple to call a referenced web service
Quick Demo
![Page 24: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/24.jpg)
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 25: Copyright © 2002 OSI Software, Inc. All rights reserved. ICE Developer Brian Bostwick Omicron Consulting](https://reader033.vdocument.in/reader033/viewer/2022051316/56649f2b5503460f94c4684f/html5/thumbnails/25.jpg)
Call to Action
• Install the ICE Toolkit• Use the Admin and Devo Guides• Brand ICE with your company logo and colors• Build some custom parts• Design ICE Business objects for custom data
integration.