Difference between revisions of "FileMan Delphi Components/FMDC Quick Start Guide"
DavidWhitten (talk | contribs) (→6. Select and retrieve a record:) |
DavidWhitten (talk | contribs) (→6. Select and retrieve a record:) |
||
Line 59: | Line 59: | ||
== 6. Select and retrieve a record: == | == 6. Select and retrieve a record: == | ||
− | a. To select a record, follow the procedure in | + | a. To select a record, follow the procedure in the topic "[[FileMan_Delphi_Components/TFMLookUp_Select_a_record_custom_dialog|Select a record with the TFMLookUp custom dialog]]". You'll add a [[FileMan_Delphi_Components/TFMLookUp|TFMLookUp]] and [[FileMan_Delphi_Components/TFMLister|TFMLister]] [[Delphi_component|component]] to your [[Delphi_Form|form]], and add a button that calls the [[FileMan_Delphi_Components/TFMLookUp|TFMLookUp]]'s [[FileMan_Delphi_Components/TFMLookUp_Execute|Execute]] method to perform the lookup. |
b. [[FileMan_Delphi_Components/TFMLookUp|TFMLookUp]].[[FileMan_Delphi_Components/TFMLookUp_Execute|Execute]] returns a record number. With this record number, you can retrieve the record and populate your data controls with the record's [[VA_FileMan_field|field]] values. To retrieve the record, follow the procedure in the "[[FileMan_Delphi_Components/Retrieve_a_Record|How to Retrieve a Record]]" topic. You'll call the [[FileMan_Delphi_Components/TFMGets|TFMGets]] [[FileMan_Delphi_Components/TFMGets_GetAndFill|GetAndFill]] method to retrieve the record and populate data controls. | b. [[FileMan_Delphi_Components/TFMLookUp|TFMLookUp]].[[FileMan_Delphi_Components/TFMLookUp_Execute|Execute]] returns a record number. With this record number, you can retrieve the record and populate your data controls with the record's [[VA_FileMan_field|field]] values. To retrieve the record, follow the procedure in the "[[FileMan_Delphi_Components/Retrieve_a_Record|How to Retrieve a Record]]" topic. You'll call the [[FileMan_Delphi_Components/TFMGets|TFMGets]] [[FileMan_Delphi_Components/TFMGets_GetAndFill|GetAndFill]] method to retrieve the record and populate data controls. | ||
Revision as of 23:58, 7 February 2011
Contents
- 1 Introduction
- 2 Quick Start Steps
- 2.1 1. Establish an RPC Broker connection:
- 2.2 2. Add a TFMGets component to retrieve data:
- 2.3 3. Add a TFMFiler component to file changes:
- 2.4 4. Add a TFMValidator component to provide validation services:
- 2.5 5. Add VA FileMan data controls for each field:
- 2.6 6. Select and retrieve a record:
- 2.7 7. Set up Automated OnExit Processing:
- 2.8 8. Provide an event to save changes:
- 2.9 9. (Optional) Provide context-sensitive field help:
- 2.10 10. Register your application:
Introduction
This quick start guide goes immediately to the heart of the matter, showing you how to edit records in a particular file using the VA FileMan Delphi Components (FMDC).
Quick Start Steps
To edit records in a given VA FileMan file with the VA FileMan Delphi Components:
1. Establish an RPC Broker connection:
a. Add a TRPCBroker component to your form.
b. Set its properties and invoke its methods as necessary to connect to a server system.
2. Add a TFMGets component to retrieve data:
a. Add a TFMGets component to your form. b. Set its RPCBroker property to point to your form's TRPCBroker component.
c. Set its FileNumber property to the VA FileMan File containing records to retrieve.
3. Add a TFMFiler component to file changes:
a. Add a TFMFiler component to your form.
b. Set its RPCBroker property to point to your form's TRPCBroker component.
4. Add a TFMValidator component to provide validation services:
a. Add a TFMValidator component to your form.
b. Set its RPCBroker property to point to your form's TRPCBroker component.
5. Add VA FileMan data controls for each field:
a. For each field to edit, add data control(s) and supporting data access components to your form as follows:
For this Field Type | Add to Your Form | ||
---|---|---|---|
Free text, Numeric, Date | 1 TFMEdit | ||
"Boolean" Set of Codes | 1 TFMCheckBox | ||
Set of Codes |
| ||
Word Processing | 1 TFMMemo | ||
Pointer |