Lena Posted May 14, 2015 Share 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? Link to comment Share on other sites More sharing options...
tappatappa Posted May 18, 2015 Share Posted May 18, 2015 Have you tried to move all those objects in the form? Link to comment Share on other sites More sharing options...
Lena Posted May 18, 2015 Author Share 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. Link to comment Share on other sites More sharing options...
Skepsis IT Posted May 19, 2015 Share Posted May 19, 2015 Hi, if you make a second click, then your data show up? Link to comment Share on other sites More sharing options...
Lena Posted May 19, 2015 Author Share Posted May 19, 2015 No, And drop dawn arrow in UniDBLookupComboBox is missing. Link to comment Share on other sites More sharing options...
wilton_educasoft Posted May 19, 2015 Share 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 Link to comment Share on other sites More sharing options...
Skepsis IT Posted May 20, 2015 Share Posted May 20, 2015 Did you use OnSelect event of UniDBLookupComboBox? Link to comment Share on other sites More sharing options...
Lena Posted May 20, 2015 Author Share Posted May 20, 2015 Did you use OnSelect event of UniDBLookupComboBox? No. I use OnCloseUp. Link to comment Share on other sites More sharing options...
tappatappa Posted May 20, 2015 Share 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 Link to comment Share on other sites More sharing options...
Skepsis IT Posted May 20, 2015 Share Posted May 20, 2015 Try also OnSelect works for me Link to comment Share on other sites More sharing options...
Lena Posted May 28, 2015 Author Share Posted May 28, 2015 I want use Query in MainModul and I need OnCloseUp. Please fix it for OnCloseUp in next build. Thanks. Link to comment Share on other sites More sharing options...
Lena Posted June 4, 2015 Author Share Posted June 4, 2015 In the new project the exact same problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now