Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 1st, 2012, 09:51 AM
zdenekkrejci zdenekkrejci is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 3 zdenekkrejci User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 37 sec
Reputation Power: 0
TcxDBLookupComboBox how to use it?

Hi guys I started Delphi not long time ago. Could you please help me with how to use TcxDBLookupComboBox?

I kind of don't understand if it is for two different datasources or just one?

My idea is
Code:
//To show customers name
lookupcombo.databinding.datafield:= 'customer_name';
lookupcombo.databinding.datasource := customersSrc;

and connect different source to join records on a ID field in customersSrc?

lookupcombo.properties.ListColumns... add some columns
lookupcombo.properties.listsource := customersOrdersSrc;
//Lock the customer_id in customerSrc on customer_id in CusomersOrdersSrc
lookupcombo.properties.listFieldIndex:= 'customer_id';


is this the way is suppose to work??

Thank you in advance

Reply With Quote
  #2  
Old August 1st, 2012, 12:25 PM
clivew clivew is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 2,045 clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 37 m
Reputation Power: 382
Yes. Two datasources.
One for the table you are editing and one (listsource) for the table (view, query) that
will populate the drop down list.

Reply With Quote
  #3  
Old August 1st, 2012, 12:58 PM
zdenekkrejci zdenekkrejci is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 3 zdenekkrejci User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 37 sec
Reputation Power: 0
Quote:
Originally Posted by clivew
Yes. Two datasources.
One for the table you are editing and one (listsource) for the table (view, query) that
will populate the drop down list.


Thank you very much, and the above is actually not working for me could you give me a hint?
Also just to make sure so the
Code:
lookupcombo.properties.listFieldIndex:= 'customer_id';

is to lock index of the two tables is it?

Reply With Quote
  #4  
Old August 1st, 2012, 03:28 PM
clivew clivew is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 2,045 clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 37 m
Reputation Power: 382
I don't use the DevExpress component myself.
I was just able to answer the first question from generic knowledge of how
DBLookupCombos work.

I do not want to mislead you about specifics.
I would think DevExpress has a forum somewhere where you should get a more authoritative answer.

Reply With Quote
  #5  
Old August 1st, 2012, 03:33 PM
zdenekkrejci zdenekkrejci is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 3 zdenekkrejci User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 37 sec
Reputation Power: 0
Quote:
Originally Posted by clivew
I don't use the DevExpress component myself.
I was just able to answer the first question from generic knowledge of how
DBLookupCombos work.

I do not want to mislead you about specifics.
I would think DevExpress has a forum somewhere where you should get a more authoritative answer.


OK no prob. thank you anyway...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > TcxDBLookupComboBox how to use it?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap