* * *

Author Topic: How add a custom item for null values in DBLookupComboBox  (Read 756 times)

juco

  • New member
  • *
  • Posts: 8
How add a custom item for null values in DBLookupComboBox
« on: May 07, 2018, 03:33:57 pm »
I have a DBLookupComboBox linked to two Data Sources, one for the work query and another for the list, I need to add an additional element in the list (that does not exist in the query) that indicates when the KeyValue is null

Any ideas please?

juco

  • New member
  • *
  • Posts: 8
Re: How add a custom item for null values in DBLookupComboBox
« Reply #1 on: May 07, 2018, 07:09:40 pm »
I do not know if the answer is the most appropriate, but in this way I got what I wanted

In the query for the list I added:

SELECT null As id, '(Empty)' AS description
UNION
SELECT id, description FROM rc_categories


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus