1 (edited by v_pozidis 2015-12-07 03:40:46)

Topic: show result to another form

Hi,
In a table I have the employees and one record shows the type of work.
From a combobox choosing the type of work how can it show us all the records from the choosen type of work in a tablegrid that is in a other form and not in the same?

Re: show result to another form

Hello,


You can using script to set filter for tablegrid, like this

procedure Form1_ComboBox1_OnCloseUp (Sender: string);
begin
    Form2.TableGrid1.dbFilter := 'id_typework' = Form1.ComboBox1.sqlValue;
    Form2.TableGrid1.dbUpdate;
end;
Dmitry.