Lena Posted May 14, 2015 Posted May 14, 2015 Hi. If I add this code in Form event OnBeforeShow I see drop dawn list with db data in UniDBLookupComboBox. All good: //OnBeforeShow FDQuery1 SELEST SQL UniMainModule()->FDQuery1->Active = false; UniMainModule()->ClientDataSet1->Active = false; UniMainModule()->FDQuery1->ParamByName(L"IDORG")->AsInteger = 14; UniMainModule()->FDQuery1->Active = true; UniMainModule()->ClientDataSet1->Active = true; If I delete this code from OnBeforeShow and copy in Button event OnClick then make Click my UniDBLookupComboBox is empty. Why? Quote
tappatappa Posted May 18, 2015 Posted May 18, 2015 Have you tried to move all those objects in the form? Quote
Lena Posted May 18, 2015 Author Posted May 18, 2015 Have you tried to move all those objects in the form? Sorry, I did not understand. What do you mean? Button and UniDBLookupComboBox located on form. Quote
Skepsis IT Posted May 19, 2015 Posted May 19, 2015 Hi, if you make a second click, then your data show up? Quote
Lena Posted May 19, 2015 Author Posted May 19, 2015 No, And drop dawn arrow in UniDBLookupComboBox is missing. Quote
wilton_educasoft Posted May 19, 2015 Posted May 19, 2015 I'm having this same problem using TUniDBLookupComboBox the button to open the list, and not displayed after opening the query is inactive without the button. only works if you put the code in the open show of form. it worked in previous versions. I use the profisisonal version 0.99.10.1172 Quote
Skepsis IT Posted May 20, 2015 Posted May 20, 2015 Did you use OnSelect event of UniDBLookupComboBox? Quote
Lena Posted May 20, 2015 Author Posted May 20, 2015 Did you use OnSelect event of UniDBLookupComboBox? No. I use OnCloseUp. Quote
tappatappa Posted May 20, 2015 Posted May 20, 2015 Sorry, I did not understand. What do you mean? Button and UniDBLookupComboBox located on form. Try to move Query and Session in the form, and see what happens Quote
Lena Posted May 28, 2015 Author Posted May 28, 2015 I want use Query in MainModul and I need OnCloseUp. Please fix it for OnCloseUp in next build. Thanks. Quote
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.