Topic: Tablegrid onchange

Hi

Could someone help me on the way smile

I want a tablegrid automatic filled by selecting a combobox onchange

I have got it working for a textbox wirth the next query

home.edit7.text := sqlexecute('select Opdrachtgever from klant where id =' +home.Klant.sqlvalue);

I tried

home.tablegrid1.cells[1,1] := sqlexecute('select naam Opdrachtgever from klant where id =' +home.Klant.sqlvalue);

but no luck sad

Anyone got a suggestion

thnx

Herman

Re: Tablegrid onchange

Hello.


You can do it without script, just use button with Action = Search and property Increm. Search for ComboBox.
Example:

Post's attachments

Attachment icon Grid Combo.zip 10.51 kb, 474 downloads since 2019-08-05 

Dmitry.

Re: Tablegrid onchange

Yeah

I figured it out

thnx

Re: Tablegrid onchange

can someone provide a script for this trick?

JUST LEARNING, O GOD HELP ME.