Download MobileApp Designer Guide

Transcript
Satellite Forms Scripting Language Reference
Creating a Satellite Forms script
Understanding events
The following figure illustrates the order in which Satellite Forms events occur for the
general case of a jump from one form (Form1) to another form (Form2).
Figure 11.2
Example of Satellite Forms event flow
OnValidate Event Fires
for Form 1
Data Valid?
No
Fail Validation:
Remain in Form 1
Yes
BeforeClose Event Fires
for Form 1
Form 1 Controls Erased
Form 2 Controls Created
AfterOpen Event Fires
for Form 2
Form 2
Linked to a
Table?
No
Yes
Any Records
Satisfy all
Filters?
No
Yes
Form 2 Loaded with Data
AfterLoad Event Fires
for Form 2
AfterChange Event Fires
for Form 2
Creating a Satellite Forms script
This section provides a brief example of how to use scripting in Satellite Forms. This
section assumes you have a working knowledge of Microsoft Visual Basic®. If you
need additional information on how to program with Visual Basic, any good
bookstore that carries computer books typically has several books on programming
with Microsoft Visual Basic. The Satellite Forms own scripting language is essentially
309