erguti63 Posted January 24, 2012 Posted January 24, 2012 in unidblookupcombobox to deploy show only one record, any suggestions? Thanks Quote
Administrators Farshad Mohajeri Posted January 24, 2012 Administrators Posted January 24, 2012 in unidblookupcombobox to deploy show only one record, any suggestions? Thanks My suggestion is to describe your problem in complete detail. Quote
erguti63 Posted January 30, 2012 Author Posted January 30, 2012 My suggestion is to describe your problem in complete detail. ok, I'll try to describe the problem. I have a form with a Tibquery called "qrycolor" with "select _key, color by color order from Color," with an associated TDatasource called "dscolor" a Tunidblookupcombobox called "combocolor" and properties Listsource = Dscolor,Listfield = Color and KeyField = _Key. In the event of the form Uniformcreate run qrycolor.open , when clicked on Unidblookupcombobox, displays, but only displays one record. I apologize for my bad English, I hope I have understood and can help me Thanks in advance. Quote
Administrators Farshad Mohajeri Posted January 30, 2012 Administrators Posted January 30, 2012 ok, I'll try to describe the problem. I have a form with a Tibquery called "qrycolor" with "select _key, color by color order from Color," with an associated TDatasource called "dscolor" a Tunidblookupcombobox called "combocolor" and properties Listsource = Dscolor,Listfield = Color and KeyField = _Key. In the event of the form Uniformcreate run qrycolor.open , when clicked on Unidblookupcombobox, displays, but only displays one record. Thanks for info. Can you specify your uniGUI version? Quote
erguti63 Posted January 30, 2012 Author Posted January 30, 2012 Thanks for info. Can you specify your uniGUI version? Of Course, The uniGUI release is uniGUI Beta v0.88.0.935 .. Thanks Any question. Can I send you a little project with an example with the problem? Quote
Administrators Farshad Mohajeri Posted January 30, 2012 Administrators Posted January 30, 2012 Any question. Can I send you a little project with an example with the problem? Yes, a test case will be helpful. Quote
erguti63 Posted January 30, 2012 Author Posted January 30, 2012 Ok, I hope to be help Sorry, I send you BD.. vehiculos.rar Quote
Administrators Farshad Mohajeri Posted January 30, 2012 Administrators Posted January 30, 2012 Hi Please only send source file and required extra files if there are any. There is no need to send extjs files. The first attachment didn't contain complete project. Please re-send source files only. Thanks Quote
erguti63 Posted January 30, 2012 Author Posted January 30, 2012 Hi Please only send source file and required extra files if there are any. There is no need to send extjs files. The first attachment didn't contain complete project. Please re-send source files only. Thanks I resend again...thanks vehi_pruebas.rar Quote
Administrators Farshad Mohajeri Posted January 30, 2012 Administrators Posted January 30, 2012 DPR and some of the PAS files are missing. Quote
Administrators Farshad Mohajeri Posted January 30, 2012 Administrators Posted January 30, 2012 I resend again...thanks Project file and MainModule are missing. Quote
erguti63 Posted January 31, 2012 Author Posted January 31, 2012 Project file and MainModule are missing. Greetings, I'm late, I've been busy, I forwarded the entire project will hopefully now complete. thanks. vehi_pruebas.rar Quote
Administrators Farshad Mohajeri Posted January 31, 2012 Administrators Posted January 31, 2012 Problem is related to IBQuery which doesn't fully fetch all records. uniGUI needs to know number of records in advance. (RecordCount) Workaround: procedure TMainForm.UniFormCreate(Sender: TObject); begin bdprincipal.Open; ibvehiculos.Open; qrycolor.Open; qrycolor.Last; //<-------- added qrymarcas.Open; end; Quote
erguti63 Posted January 31, 2012 Author Posted January 31, 2012 Problem is related to IBQuery which doesn't fully fetch all records. uniGUI needs to know number of records in advance. (RecordCount) Workaround: procedure TMainForm.UniFormCreate(Sender: TObject); begin bdprincipal.Open; ibvehiculos.Open; qrycolor.Open; qrycolor.Last; //<-------- added qrymarcas.Open; end; Thanks, I'll try. Quote
erguti63 Posted January 31, 2012 Author Posted January 31, 2012 Thanks, I'll try. Thanks, it works perfectly ... now I get another problem, when I select a record brings me back to the code assigned to the target field is not valid .. any suggestions? Quote
erguti63 Posted January 31, 2012 Author Posted January 31, 2012 Thanks, it works perfectly ... now I get another problem, when I select a record brings me back to the code assigned to the target field is not valid .. any suggestions? I have found that the value stored in DataField is not KEYFIELD property, it saves Listfield property. The dblookupcombobox is integrated in the property editor of the dbgrid. Thanks in advance Quote
Administrators Farshad Mohajeri Posted January 31, 2012 Administrators Posted January 31, 2012 When used as an Editor, a DBLookup control should only have ListSource and ListField properties. DataSource and DataField should not be used. In this mode DBLookup simply works as a simple list to select values for respected field. Quote
erguti63 Posted January 31, 2012 Author Posted January 31, 2012 When used as an Editor, a DBLookup control should only have ListSource and ListField properties. DataSource and DataField should not be used. In this mode DBLookup simply works as a simple list to select values for respected field. Ok Thanks, I just checked. 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.