|
Tip>Designer |
|
|
Accessing GhostFill Answer-set data from external applications |
|
|
Article #: |
0035 |
|
Contributor: |
Daniel Todes |
|
GF version: |
All |
|
Applies to: |
Dialog Answer-sets and external applications |
|
Last updated: |
February 20, 2002 |
Description
Extract the information captured in a Dialog Answer-set for use in an external application or database.
Explanation
You can create an object that links directly to a Dialog Answer-set and extracts the information that has been captured in the fields.
Click here to see how to create an object and link to a Dialog Answer-set.
Create a GhostFill Explorer object and access the Dialogs plug-in:
%[GhostFillExplorer = CreateObject('GFExplorer.Explorer')]
%[DialogsPlugin = GhostFillExplorer.UI.Explorer.ServerList.Dialogs]
Select the Dialog Answer-set you want to use:
%[DialogObject = DialogsPlugin.Select('\GF Law Office Samples\Estates\SimpleWill', 'Demo')]
Iterate through the fields in the Dialog Answer-set and extract the values from each field:
%[Counter = 0]
%[RepeatBlockWhile(Counter < DialogObject.DynamicPropertyCount)]
property index: %[Counter]
property name: %[DialogObject.DynamicPropertyName(Counter)]
property value: %[DialogObject.DynamicPropertyValue(Counter)]%[Counter = Counter + 1]%[EndBlock()]