delphi - LookupSource must be connected to TTable component -
i'm attempting use tdblookupcombo, getting error "einvalidoperation message 'lookupsource must connected ttable component'.
i have tdblookupcombo.lookupsource connected tdatasource. tdatasource.dataset pointing tclientdataset contains records lookup table (fields id , description).
lookupdisplay := 'description'; lookupfield := 'id'; lookupsource := dslookup; is not possible since tcilentdataset isn't descendant of ttable? if best alternative without using 3rd party components.
tdblookupcombo 1 of old bde-based data controls, why it's dependent on connecting ttable.
it seems should using tdblookupcombobox instead, works fine connected tdatasource attached bi-directional tdataset descendant (which includes tclientdataset).
Comments
Post a Comment