Subject | Re: [IBO] Questions about TIB_LookupCombo |
---|---|
Author | Alfred Seetoh |
Post date | 2004-03-08T04:07:32Z |
Thanks so much... will try it out.
--- In IBObjects@yahoogroups.com, Paul Vinkenoog <paul@v...> wrote:
> Hi Alfred,
>
> > I have 2 qn regarding TIB_LookupCombo:
> >
> > 1. The DataSource property specifies the lookup source. So where
do
> > I specify the datasource that the data should be written to?
>
> You don't do that from the TIB_LookupCombo. You set up two datasets
as
> a KeySource-Lookup pair; then you set the DataSource of the Combo to
> the Lookup set, and everything works automagically. If you have the
> Getting Started Guide, there's a detailed description of how to do
> this.
>
> > 2. I would like to type into the lookup combo, and it will locate
> > the record (partialkey) accordingly. What property should I set
> > in order to achieve that?
>
> First make sure there's an explicit OrderingItem in effect for the
> lookup set ("ORDER BY" in the default SQL is not enough -
> OrderingItemNo must not be 0).
>
> Then set the LookupCombo's SearchKeyByKey property to true (and
> optionally SeekNearest too).
>
>
> Greetings,
> Paul Vinkenoog