Recent

Author Topic: Strange error. With TDBLookupComboBox and TDBLookupListBox. In TIBConnect-SQLdb.  (Read 16974 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
@Luiz: thanks for having a look and fixing it.

Thanks for the info on the dataset behaviour.

As I said, I also don't like it, chiefly because it will fail if you are trying to get the user to enter credentials...

Glad that Delphi doesn't have it. Confirmed by quick glance through the XE2 documentation on TDBLookupCombo gives this http://docwiki.embarcadero.com/RADStudio/en/Displaying_and_Editing_Data_in_Lookup_List_and_Combo_Boxes where it is mentioned that activating the table bound to the lookupfield causes processing... and not the other way round as in Lazarus.
This can give us another argument to change this behaviour unfortunately breaking any applications that depended on this behaviour...

Perhaps I will have a look at the actual code :) and supply a proposal/patch if I can.
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

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
The patch is pretty simple: just delete the code that opens the list dataset.

The alternative is adding a property but it will make the code uglier than is now, and it's sufficient clumsy for now

Feel free to add a bugreport

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Thanks Luiz... I'll keep that in mind.

Regards,
BigChimp
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

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Hi, i sent a message to Lazarus mail list proposing not to open the dataset automatically

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Thanks again, Luiz ;)
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

xcod

  • New Member
  • *
  • Posts: 13
Thanks to All. It's fixed. :)

 

TinyPortal © 2005-2018