closing a window
771549Nov 16 2010 — edited Nov 16 2010Hello all
I'm Working on form 6i.
I have Create a form with two blocks... a control block(Condition) in separate window and a data block(emp) with separate window.
pressing a button in the emp_block i'm showing control block window...
in that control block i'm giving a searching criteria and executing the query..... i'm getting the records into emp_block.. it is fine....
In when-window-closed trigger i have written this code.....
declare
win_name varchar2(30);
begin
win_name:=get_window_property('emp_window',title);
if win_name='EMP' then
if :system.form_status='CHANGED' then
commit_form;
if :system.form_status<>'QUERY' then
exit_form(no_validate);
end if;
end if;
end if
exit_form(no_commit);
end;
it is working fine with emp block window but when i trying to close control block window it is closing total form....
i need to set the focus to emp_block when control block window is closed....
help me...
thanks