Главная страница | назад





Article #15438: Providing lookup capability

 Question and Answer Database

FAQ438D.txt   Providing lookup capability
Category   :DCOM/MultiTier/ActiveForm
Platform    :All
Product    :Delphi 3.x  

Question:
How do I provide lookup capability using ClientDataSets?

Answer:
Add an automation method to the server which can perform
the lookup for you and return the result.  You could do
this in the OnGetText method of a TField object.  Then you
would just use a regular TDBEdit instead of a data aware
component like the TDBLookupComboBox.  Some master tables
that change infrequently you may want to store locally.
With the data stored locally you could use an automation
method to check for changes and refresh the client if
necessary.

7/16/98 4:31:28 PM
 

Last Modified: 01-SEP-99