Final - Leverage The Power of Microsoft .NET Technology
Final - Leverage The Power of Microsoft .NET Technology
NET
Technology
Paul Forney - System Architect
Steve Weygandt- ArchestrA Application Consultant
Microsoft .NET scripting
► Maximize connectivity between the
Wonderware System Platform, SQL
databases, Microsoft Office applications
and XML documents.
► Improve communication,
► Set up notification and
► Embed .NET controls.
► Discuss useful scripts and techniques
Agenda
► Using Hashtables
► How to best handle DBReaders through
multiple scans
► Common Issues with AA and .Net Controls
► Show how to use a Data Grid control to
visualize XML
► How to wrap a complex control for use in
AA Graphics
► Use AA Symbols to host InfoPath Forms
► Lot’s of code!!!
The .NET Framework
► The best foundation for building applications on
Windows
► Includes:
▪ The Common Language Runtime (CLR)
▪ The .NET Framework class library, including
• Access to ‘legacy’ COM+ services, e.g., transactions
• ASP.NET
• ADO.NET
• Much more
► Provides strong support for building web services
through SOAP
Illustrating the .NET Framework
SOAP
ASP.NET
IIS
HTTP
Local
User
DBMS
Remote
Calls
.NET Framework Class Library
Common Language Runtime
Windows
Illustrating ADO.NET
► An interface to managed providers
▪ Which can be native or rely on OLE DB
providers
► Key classes in ADO.NET
▪ Connection, Command, DataSet
.NET Framework ADO.NET Managed
Application Provider
t3 = t2.Substract(t1);
Issues .Net Controls in AA Graphics
► Font
▪ Font size of 12pt (Unconditionally forced)
▪ Mediation: Specify an override font size in the
properties of the control.
▪ Example: specify the Font property as Arial,
10pt for the aaHistClientQuery control
► Hierarchy of all properties
▪ Not possible to browse the complete hierarchy
of all properties
▪ Mediation: Wrap the control and expose
required properties to the wrapper
▪ Example: Live Demonstration
Let’s Write Some Code!
► Examples using .Net Controls in AA
Graphics:
▪ Simple Data Grid using an XML Data Source
▪ Grid using SQL DB
▪ Custom Formatting
▪ A DataGridView-based symbol which displays
tabular data from XML input
▪ Implementing a menu system using a .Net
custom control and an ArchestrA symbol
Questions?
Powering intelligent plant
decisions in real time.