Enter_Query is procedure and form go to enter-query mode.
If you want set a query you must set block property
DEFAULT_WHERE
DECLARE
sWhere VARCHAR2(1000);
sOrder VARCHAR2(1000);
BEGIN
sWhere := 'ID_TAB = 1234';
sOrder := 'ID_TAB';
set_block_property(id_block,DEFAULT_WHERE,sWhere);
set_block_property(id_block,ORDER_BY,sOrder);
Execute_Query;
END;
If you want only to add others conditions to existing set
condition use get_block_property(id_block,DEFAULT_WHERE).