Continuum API Guide
Continuum API Guide
GP
Continuum API Guide
Copyright Copyright 2008 Microsoft Corporation. All rights reserved.
Complying with all applicable copyright laws is the responsibility of the user. Without limiting the
rights under copyright, no part of this document may be reproduced, stored in or introduced into
a retrieval system, or transmitted in any form or by any means (electronic, mechanical,
photocopying, recording, or otherwise), or for any purpose, without the express written
permission of Microsoft Corporation. Notwithstanding the foregoing, the licensee of the software
with which this document was provided may make a reasonable number of copies of this
document solely for internal use.
Trademarks Microsoft, Dexterity, Microsoft Dynamics, Visual Basic, Visual Studio, and Windows are either
registered trademarks or trademarks of Microsoft Corporation or its affiliates in the United States
and/or other countries. FairCom and c-tree Plus are trademarks of FairCom Corporation and are
registered in the United States and other countries.
The names of actual companies and products mentioned herein may be trademarks or registered
marks - in the United States and/or other countries - of their respective owners.
Unless otherwise noted, the example companies, organizations, products, domain names, e-mail
addresses, logos, people, places, and events depicted herein are fictitious. No association with
any real company, organization, product, domain name, e-mail address, logo, person, place, or
event is intended or should be inferred.
Intellectual property Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any
written license agreement from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual property.
Warranty disclaimer Microsoft Corporation disclaims any warranty regarding the sample code contained in this
documentation, including the warranties of merchantability and fitness for a particular purpose.
Limitation of liability The content of this document is furnished for informational use only, is subject to change without
notice, and should not be construed as a commitment by Microsoft Corporation. Microsoft
Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear
in this manual. Neither Microsoft Corporation nor anyone else who has been involved in the
creation, production or delivery of this documentation shall be liable for any indirect, incidental,
special, exemplary or consequential damages, including but not limited to any loss of anticipated
profit or benefits, resulting from the use of this documentation or sample code.
License agreement Use of this product is covered by a license agreement provided with the software product. If you
have any questions, please call the Microsoft Dynamics GP Customer Assistance Department at
800-456-0025 (in the U.S. or Canada) or +1-701-281-6500.
Publication date March 2008
C O N T I N U U M A P I G U I D E i
Contents
Introduction................................................................................................................................................. 2
Prerequisites................................................................................................................................................... 2
Whats in this manual................................................................................................................................... 2
Symbols and conventions ............................................................................................................................ 3
Part 1: Getting Started................................................................................................................. 6
Chapter 1: Integration Basics.................................................................................................... 7
COM Automation......................................................................................................................................... 7
The Continuum Integration Library .......................................................................................................... 7
Methods.......................................................................................................................................................... 8
Triggers and callbacks .................................................................................................................................. 8
Types of integrations .................................................................................................................................... 8
Chapter 2: Setting Up a Continuum Project................................................................ 9
Required items .............................................................................................................................................. 9
Visual Basic project ..................................................................................................................................... 10
TemplateMain module ............................................................................................................................... 11
Callback class............................................................................................................................................... 13
Part 2: Developing Integrations ................................................................................... 16
Chapter 3: Pass-through sanScript ................................................................................... 17
Writing and executing scripts ................................................................................................................... 17
Looking up names ...................................................................................................................................... 19
Debugging scripts....................................................................................................................................... 19
Chapter 4: Passing Parameters............................................................................................. 21
Parameter handler ...................................................................................................................................... 21
Setting and getting properties................................................................................................................... 23
Running methods........................................................................................................................................ 25
Chapter 5: Database Integrations...................................................................................... 27
Registering database triggers.................................................................................................................... 27
Database trigger reference......................................................................................................................... 28
Accessing table data ................................................................................................................................... 29
Chapter 6: Programming Techniques.............................................................................. 31
Specifying the current product ................................................................................................................. 31
Starting integrating applications .............................................................................................................. 31
Retrieving data from the Microsoft Dynamics GP application............................................................ 32
Working with scrolling windows ............................................................................................................. 33
Data Entry event ................................................................................................................................. 34
Delete Row event ................................................................................................................................ 34
Got Focus event................................................................................................................................... 34
Insert Row event ................................................................................................................................. 34
Load Row event .................................................................................................................................. 35
Lost Focus event.................................................................................................................................. 35
ii C O N T I N U U M A P I G U I D E
C O N T E N T S
Chapter 7: Packaging..................................................................................................................... 37
Runtime components ................................................................................................................................. 37
Registering Microsoft Dynamics GP as an Automation server ........................................................... 37
Part 3: Integration Examples............................................................................................ 40
Chapter 8: Field Defaulter......................................................................................................... 41
Overview...................................................................................................................................................... 41
Running the sample application............................................................................................................... 41
How the Continuum API was used......................................................................................................... 42
Chapter 9: Additional Information Window.............................................................. 43
Overview...................................................................................................................................................... 43
Running the sample application............................................................................................................... 43
How the Continuum API was used......................................................................................................... 44
Chapter 10: Name Wizard.......................................................................................................... 45
Overview...................................................................................................................................................... 45
Running the sample application............................................................................................................... 45
How the Continuum API was used......................................................................................................... 46
Part 4: The Continuum Integration Library................................................... 48
Chapter 11: Application Object............................................................................................ 49
Activate method.................................................................................................................................. 50
CallVBAMacro method...................................................................................................................... 51
CreateFieldObject method................................................................................................................. 52
CurrentProduct property................................................................................................................... 53
CurrentProductID property .............................................................................................................. 54
ExecuteSanScript method.................................................................................................................. 55
ExternalProductName property ....................................................................................................... 56
GetDataValue method........................................................................................................................ 57
GetDataValueEx method ................................................................................................................... 59
GetVBAGlobals method .................................................................................................................... 60
Hide method........................................................................................................................................ 61
MacroError property .......................................................................................................................... 62
MoveToField method ......................................................................................................................... 63
RegisterDatabaseTrigger method..................................................................................................... 64
RegisterFocusTrigger method........................................................................................................... 66
RegisterFormTrigger method............................................................................................................ 69
RegisterShutdownRoutine method.................................................................................................. 70
RegisterWatchTrigger method .......................................................................................................... 71
SetDataValue method......................................................................................................................... 72
SetDataValueEx method .................................................................................................................... 74
SetParamHandler method................................................................................................................. 75
Show method....................................................................................................................................... 76
StartWizardMode method................................................................................................................. 77
StopProcessing method...................................................................................................................... 78
StopWizardMode method ................................................................................................................. 79
VBE method......................................................................................................................................... 80
Visible property................................................................................................................................... 81
C O N T I N U U M A P I G U I D E iii
C O N T E N T S
Chapter 12: Field Object ............................................................................................................. 83
Height property................................................................................................................................... 84
Left property........................................................................................................................................ 85
MaxLength property .......................................................................................................................... 86
PromptHeight property ..................................................................................................................... 87
PromptLeft property........................................................................................................................... 88
PromptName property....................................................................................................................... 89
PromptStyle property......................................................................................................................... 90
PromptTop property........................................................................................................................... 91
PromptType property......................................................................................................................... 92
PromptWidth property ...................................................................................................................... 93
Style property...................................................................................................................................... 94
SubType property ............................................................................................................................... 96
Top property ........................................................................................................................................ 97
Type property ...................................................................................................................................... 98
Width property.................................................................................................................................... 99
Glossary...................................................................................................................................................... 101
Index............................................................................................................................................................... 103
iv C O N T I N U U M A P I G U I D E
I
N
T
R
O
D
U
C
T
I
O
N
2 C O N T I N U U M A P I G U I D E
Introduction
Continuum is the COM application programming interface (API) that is available
for Microsoft Dynamics