Wonderware Factorysuite Intrack
Total Page:16
File Type:pdf, Size:1020Kb
Wonderware FactorySuite InTrack OLE Reference May, 2001 Wonderware Corporation All rights reserved. No part of this documentation shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the Wonderware Corporation. No copyright or patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this documentation, the publisher and author assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. The information in this documentation is subject to change without notice and does not represent a commitment on the part of Wonderware Corporation. The software described in this documentation is furnished under a license or nondisclosure agreement. This software may be used or copied only in accordance with the terms of these agreements. 2001 Wonderware Corporation. All Rights Reserved. 100 Technology Drive Irvine, CA 92618 U.S.A. (949) 727-3200 http://www.wonderware.com Trademarks All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Wonderware Corporation cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. Wonderware is a registered trademark of Wonderware Corporation. Wonderware FactorySuite, InTouch, WindowMaker, WindowViewer, SQL Access Manager, Recipe Manager, SPC Pro, DBDump, DBLoad, HDMerge, HistData, Wonderware Logger, InControl, InTrack, InBatch, IndustrialSQL, FactoryOffice, Scout, SuiteLink and NetDDE are trademarks of Wonderware Corporation. i Contents Chapter 1 OLE Automation and InTouch Elements of OLE Automation................................................................................................................................. 1-2 InTouch OLE Automation Client Extensions........................................................................................................ 1-3 InTouch Automation Expressions....................................................................................................................... 1-3 Creating an Object .............................................................................................................................................. 1-6 Managing an Object............................................................................................................................................ 1-7 Testing for a Valid Object .................................................................................................................................. 1-7 Getting a Property Value .................................................................................................................................... 1-8 Setting a Property ............................................................................................................................................. 1-10 Calling a Method .............................................................................................................................................. 1-11 InTouch Error Handling.................................................................................................................................... 1-14 Frequent Automation Object Errors.................................................................................................................. 1-17 ii Table of Contents Chapter 2 InTrack OLE Automation Automation Server InTrack Concepts..................................................................................................................................................... 2-2 Structural Information......................................................................................................................................... 2-2 Activity Information............................................................................................................................................ 2-3 Using Keys.......................................................................................................................................................... 2-6 Type Library ............................................................................................................................................................ 2-7 Overview of InTrack OLE Automation Classes.................................................................................................... 2-8 Application.......................................................................................................................................................... 2-8 General................................................................................................................................................................ 2-9 Structural........................................................................................................................................................... 2-10 Activity.................................................................................................................................................................... 2-10 Dialog ...................................................................................................................................................................... 2-10 Query....................................................................................................................................................................... 2-11 MES Application Development Notes .................................................................................................................. 2-12 Database Transactions ...................................................................................................................................... 2-12 Handling InTrack Errors................................................................................................................................... 2-14 Working with Collection Objects...................................................................................................................... 2-15 Object Creation................................................................................................................................................. 2-15 Working with InTouch Selectors ...................................................................................................................... 2-16 Working with InTouch Dialogs......................................................................................................................... 2-16 Chapter 3 Application Objects Database Object Class ............................................................................................................................................. 3-2 Identification....................................................................................................................................................... 3-3 Properties............................................................................................................................................................ 3-4 Methods .............................................................................................................................................................. 3-5 Table Of Contents iii Chapter 4 General Objects...........................................................................................................................4-1 Amount Object Class............................................................................................................................................... 4-3 Identification....................................................................................................................................................... 4-3 Using Amount Objects........................................................................................................................................ 4-3 Examples 4-3 Serialization 4-4 Properties............................................................................................................................................................ 4-5 Methods .............................................................................................................................................................. 4-5 ArchiveItem Object Class ....................................................................................................................................... 4-8 Identification....................................................................................................................................................... 4-8 Using ArchiveItem.............................................................................................................................................. 4-8 Properties.......................................................................................................................................................... 4-10 Classes Included in an ArchiveItem Object ...................................................................................................... 4-11 ArchiveItems Object Class...................................................................................................................................