cant hide window
866473Aug 31 2011 — edited Sep 6 2011Helo.
I have a problem with my aplication. My form contains 2 window. First window contains data and buttons connected with them, when I click on my button i have call 2nd window. In this 2nd winow I have a button, which inserts some data. Now my question: What PL/SQL code behind "when-button-pressed" should look like if I want to hide this window after insert??
This is my code:
insert into ORDERS(orders_orderbooksid, orders_name, orders_lastname, orders_address, orders_email, orders_phone)
values (:BOOKS.BOOK_ID, :ORDERS.ORDERS_NAME,:ORDERS.ORDERS_LASTNAME, :ORDERS.ORDERS_ADDRESS, :ORDERS.ORDERS_EMAIL, :ORDERS.ORDERS_PHONE);
commit;
:ORDERS.ORDERS_NAME:='';
:ORDERS.ORDERS_LASTNAME:='';
:ORDERS.ORDERS_ADDRESS:='';
:ORDERS.ORDERS_EMAIL:='';
:ORDERS.ORDERS_PHONE:='';
hide_window('ORDERS');
Please help.