Jump to content

Initialization UniDBLookupComboBox


Lena

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...