|
Tip>Designer |
|
|
Populating a Dialog with details from Outlook |
|
|
Article #: |
0027 |
|
Contributor: |
Daniel Todes |
|
GF version: |
All |
|
Applies to: |
Dialogs and the GhostFill Outlook Server |
|
Last updated: |
December 20, 2001 |
Description
When you click a button on a Dialog Answer-set, the Microsoft Outlook Contacts folder opens. When you select a contact, the relevant information is inserted into the fields in your Dialog Answer-set.
Explanation
You can create a button field in a Dialog and add script to the field. The script links the Dialog fields to the values in the Outlook contact's fields. When you click the button on a Dialog Answer-set, the Outlook Contacts folder opens. Select a contact and the script populates the fields in the Dialog Answer-set with the details you have chosen.
A step-by-step example:
In the GhostFill Dialog Editor, click the Add field button on the toolbar.
The GhostFill Dialogs - Field Property Editor opens. Select Button from the Data type list.
Type a label for the button in the Prompt box, e.g. Get Outlook Contact. Tab to the Field Name box. By default, the field name is the same as the prompt.
Click OK.
View the Dialog with the button field.
Add script to the button field.
In the GhostFill Dialog Editor, click the button field and then click the Edit events button on the toolbar. The GhostFill Dialog Script Editor opens.
Click OnChange in the left pane. To add the script, click in the right pane.
You can use the FillPoint Editor to create the FillPoints. Click the FillPoint Editor button on the toolbar. Construct the FillPoints in the FillPoint Editor using the Outlook tasks in the Tasks tab and the Dialog fields in the Data tab. Send the FillPoints to the Dialog Script Editor. The script will, for example, be similar to the following:
%[Contacts = Outlook.SelectFolder('', 0)]
%[ThisDialog.Name = Contacts[1].FullName]
%[ThisDialog.Address = Contacts[1].BusinessAddress]
%[ThisDialog.Email = Contacts[1].Email1Address]
View the script in the GhostFill Dialog Script Editor.

When you create or edit a Dialog Answer-set that is based on this Dialog, click the Get Outlook Contact button. The Contacts - Microsoft Outlook window opens.
View the Contacts folder in Outlook.
Choose a contact from the list. On the GhostFill Outlook Server, click OK.
View the GhostFill Outlook Server.
The details are then filled in to the Dialog Answer-set.
View a Dialog Answer-set populated with information from your Outlook contacts folder.