Jump to content

Recommended Posts

Posted

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.

  • Administrators
Posted

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?

Posted

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?

  • Administrators
Posted

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

Posted

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

  • Administrators
Posted

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;

Posted

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.

Posted

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?

Posted

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

  • Administrators
Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...