Recent

Author Topic: sample DBLookUpComboBox and DBComboBox  (Read 15132 times)

mirce.vladimirov

  • Sr. Member
  • ****
  • Posts: 268
sample DBLookUpComboBox and DBComboBox
« on: May 30, 2012, 11:54:45 am »
Please, where could I see documentation on using DBCombobox and DBLookupComboBox ?
I want to know it all, how to fill the item list, what happens when the user select an item does the query.recNo changes automatically, what is List source, what is in Datasource, are these datasources connected to a same query, what does 'key field' means, what is 'list field', what is 'data field' ....
I want to know everything.
Small sample codes would be also helpful.
« Last Edit: May 30, 2012, 11:57:40 am by mirce.vladimirov »

mirce.vladimirov

  • Sr. Member
  • ****
  • Posts: 268
Re: sample DBLookUpComboBox and DBComboBox
« Reply #1 on: May 30, 2012, 12:13:36 pm »
I expected that "DB Aware component" should :

1.automaticaly filled the Item list, exactly like the DBGrid is automaticaly filled from my datasource.
2.automaticaly set the query.recno when user selects a row.

I mean, we talk about "Aware", right ?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: sample DBLookUpComboBox and DBComboBox
« Reply #2 on: May 30, 2012, 12:26:51 pm »
If there's no documentation for a Lazarus component/code in the wiki/LCL documentation (have you looked?), you can try to have a look at the equivalent in Delphi.

See e.g. online Delphi help:
http://docwiki.embarcadero.com/RADStudio/en/Main_Page
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

ludob

  • Hero Member
  • *****
  • Posts: 1173
Re: sample DBLookUpComboBox and DBComboBox
« Reply #3 on: May 30, 2012, 12:30:13 pm »
Quote
Small sample codes would be also helpful.
There is also a sample app in the lazarus examples\database\dblookup directory. Read also the readme.txt in the same dir.

 

TinyPortal © 2005-2018