Hi! Could you please help me please? I am trying to use 'when button pressed-trigger' to filter the data.
The purpose is :if someone press the button then it will execute only the data that has got the same depot_id and periode.
Is there any mistake on this trigger?

set_block_property('m_form1',default_where,'depot_id ='''||:m_form1.depot_id||' and '||
'periode>='''||:m_form1.f_periode1 ||' and '||
'periode<='''||:m_form1.f_periode2 );
Set_Record_Property(:system.cursor_record, 'm_form1', STATUS, QUERY_STATUS);
execute_query;
set_block_property('m_form1',default_where,'');

Thank's in advance!