mhmda Posted November 26, 2017 Share Posted November 26, 2017 Hi, it is very important that ComboBox and ListBox support 'value' so that we could get the 'text' and 'value' of the 'itemindex' we don't want to create a custom component we would like to see it internally in unigui. Farshad?? 2 6 Quote Link to comment Share on other sites More sharing options...
mhmda Posted November 30, 2017 Author Share Posted November 30, 2017 Up Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted November 30, 2017 Share Posted November 30, 2017 +1 ... very usefull if i can store the" database record ID" to a textvalue in ComboBox and ListBox ... 1 Quote Link to comment Share on other sites More sharing options...
mhmda Posted November 30, 2017 Author Share Posted November 30, 2017 +1 Quote Link to comment Share on other sites More sharing options...
xinnia Posted December 9, 2017 Share Posted December 9, 2017 +1 Quote Link to comment Share on other sites More sharing options...
shawdown Posted December 12, 2017 Share Posted December 12, 2017 +1 Quote Link to comment Share on other sites More sharing options...
allenchow Posted December 12, 2017 Share Posted December 12, 2017 +1 Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted December 12, 2017 Share Posted December 12, 2017 +1 Quote Link to comment Share on other sites More sharing options...
joriolm Posted December 27, 2017 Share Posted December 27, 2017 +1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted December 27, 2017 Share Posted December 27, 2017 +1 I use for that a trick : Fill two unicomboBox, with the same order one for the text, UnicomboBox1 other for the ID (no visible) UniComboBox2 As the itemIndex for the two uniComboBoxs is the same, you can get the value from UniComBobox1.OnCloseUp : Begin Value = UniComboBox2.items[ UniComboBox1.itemindex]; end; 1 2 Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted November 19, 2019 Share Posted November 19, 2019 +1 Quote Link to comment Share on other sites More sharing options...
d.bernaert Posted November 19, 2019 Share Posted November 19, 2019 Very frustrating. I have to hack stuff to get unidbcombobox working properly. If I have 2 records with a different id and the same description, things go wrong. Dominique Quote Link to comment Share on other sites More sharing options...
jrp Posted August 27, 2021 Share Posted August 27, 2021 Hello, I need this feature too. This would simplify things greatly. Many people would benefit from this feature. We need a property, say, UniComboBox1.ShowNamesOnly to make the combobox display only the name part of the name=value pairs in its Items property. Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted August 27, 2021 Share Posted August 27, 2021 for this scenario I use a dblockupcombobox linked to a query that simulates the combo items I create a query with the content select 1 id, 'item 1' description union select 2 id, 'item 2'description union select 3 id,'item 3'description it's not the most elegant but it works, and I don't need to create a physical table for this data. 1 Quote Link to comment Share on other sites More sharing options...
jrp Posted August 28, 2021 Share Posted August 28, 2021 10 hours ago, wilton_rad said: for this scenario I use a dblockupcombobox linked to a query that simulates the combo items I create a query with the content select 1 id, 'item 1' description union select 2 id, 'item 2'description union select 3 id,'item 3'description it's not the most elegant but it works, and I don't need to create a physical table for this data. Thank you for the workaround. You have a clever idea, by using a query component without the need to create physical table. For UniComboBox, my workaround is "traditional". I use UniComboBox.Items to store the name part, and use separate StringList to store the value part. Nevertheless, we need the combobox & listbox to support this feature, so we can use it naturally without workarounds. 1 Quote Link to comment Share on other sites More sharing options...
jrp Posted February 22 Share Posted February 22 Hello, Any news about this? Maybe put this feature in the roadmap? 1 Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted February 22 Share Posted February 22 Why make our lives easy? This should be the basic component (DB and otherwise) used by everyone. And instead it is ignored, making our lives very difficult for simple cases... 🙂 ++++++++++++1 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.