Jump to content

Recommended Posts

Posted

Hi folks,

 

i have a dbgrid with a column which the DataField behind holding a integer value. This integer value is a key to another table dataset. I set up a TuniDBLookupCombobox showing a string field in the dropdown and as Keyfield the integer value. Now i configured the column to show the LookupCombobox as the editor.  My problem:

The integer value is shown in de column, not the String field configured in the LookupCombobox.

 

Can anybody help me with this?

  • 4 years later...
Posted

Eu também faço isso, associo uma tunicombobox sem itens, adiciono um botão na caixa de combinação e, em gatilhos de eventos, disparo a consulta genérica para uma forma separada de pesquisa, então terei uma coluna com a código na grade, e outra coluna com a descrição (somente leitura), em resumo eu não uso tunidbloockupcombobox na grade, eu sempre faço uma pesquisa em um formulário separado, espero que o Google tenha lidado com isso corretamente.

 

printA.png

 

 

 

printB.png

 

 

 

 

printC.png

Posted

Eu também faço isso, associo uma tunicombobox sem itens, adiciono um botão na caixa de combinação e, em gatilhos de eventos, disparo a consulta genérica para uma forma separada de pesquisa, então terei uma coluna com a código na grade, e outra coluna com a descrição (somente leitura), em resumo eu não uso tunidbloockupcombobox na grade, eu sempre faço uma pesquisa em um formulário separado, espero que o Google tenha lidado com isso corretamente.

 

printA.png

 

 

 

printB.png

 

 

 

 

printC.png

Hello there Wilton_rad ! (:

 

I'm sorry but I does not speak portugese .. and google trad did not rightly translate that sentence .. could you explain what you did in english please ? :3

Posted

I also use google translator, the maximum I can do and translate for it

 

The images speak for themselves


I also do this, I associate a tunicombobox with no items, I add a button in the combo box and, in event triggers, I fire the generic query for a separate form of search, so I'll have one column with the code in the grid, and another column with the description (read-only), in summary I do not use tunidbloockupcombobox in the grid, I always do a search on a separate form

Posted

Yeah sure the image speak for themselves, but I prefered to be sure as you wrote a few lines I could not understand.

 

Anyhow thanks for sharing you approach but it is not what we are seeking !

We already implemented something like this in our project but in this case we just want to implement a "key value combobox"! (:

 

 

Does anyone have another approach for that matter ? :3

  • 2 weeks later...
Posted

Up ?

 

Is it normal that uniDBLookupCombobox.gridMode does not have the same behavior in a grid and outside a grid ? :/

 

You can find a testCase below that compare behavior of such a component inside and outside a grid; both component are linked to same TField.

 

Indeed, the one outside the grid does show us the listValue (as configured) wherease the one inside the grid show us the KeyValue ..

 

Any idea ??

 

TestDBLookupCombobox.7z

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...