Home » Developer & Programmer » Forms » window not closed
window not closed [message #606943] Fri, 31 January 2014 00:10 Go to next message
mist598
Messages: 1059
Registered: February 2013
Location: Hyderabad
Senior Member
Hi,

I have 2 canvas & 2 windows(control block ,database block), I add the code for close the navigable canvas in the APP_CUSTOM Package.

if (wnd = 'HOPESALESCONTROL') then
    app_window.close_first_window;
  elsif (wnd = 'HOPESALES') then 
    --defer relations
    --close related windows   
    null;  
  elsif (wnd = '<yet another window>') then 
    --defer relations
    --close related windows   
    null;
  end if;


Why the above not worked for me.

Thank You
Re: window not closed [message #606949 is a reply to message #606943] Fri, 31 January 2014 02:32 Go to previous messageGo to next message
cookiemonster
Messages: 11285
Registered: September 2008
Location: Rainy Manchester
Senior Member
Since we don't know what app_window.close_first_window actually does, no idea.
Re: window not closed [message #606953 is a reply to message #606949] Fri, 31 January 2014 03:00 Go to previous messageGo to next message
mist598
Messages: 1059
Registered: February 2013
Location: Hyderabad
Senior Member
Here HOPESALESCONTROL is the control block window & HOPESALES is the database block window name &
In pre-form(from-level)

app_window.set_window_position('HOPESALES ', 'FIRST_WINDOW');

Please suggest what is the problem.
Re: window not closed [message #606954 is a reply to message #606953] Fri, 31 January 2014 03:11 Go to previous messageGo to next message
cookiemonster
Messages: 11285
Registered: September 2008
Location: Rainy Manchester
Senior Member
How did you read the above post and come to the conclusion that you don't need to tell us what app_window.close_first_window does? It's not a standard forms package, it may be a standard apps package but most of us don't do oracle apps so aren't familiar with it.
Re: window not closed [message #606962 is a reply to message #606954] Fri, 31 January 2014 07:13 Go to previous messageGo to next message
mughals_king
Messages: 390
Registered: January 2012
Location: pakistan
Senior Member
Your question seems related to E-BUSINESS D2k. i can give you some links and example hope this could help you

Create window, canvas and block in the module and assign the subclass information to properties of them.
Change the code in the package of app_custom in the program units.
when_window_closed
       if (wnd = 'window_name') then
          app_window.close_first_window;
        end if;
when_window_opened
       if (wnd = 'window_name') then
           GO_BLOCK('Block_name');

Change the code in the pre_form trigger as bellow

app_window.set_window_position('window_name',NULL,'block_name');



http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T457080.htm

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/

http://freshers-oracleapplications.blogspot.com/2008/06/master-detail-form.html

http://r12knowledge.blogspot.com/2012/08/create-and-register-of-custom-form-in.html

http://oracle-news-lingesan.blogspot.com/2011/02/essential-for-form-customization.html

May be these stuff could help you if not thn sorry Cool
i created example .fmb as well successfully by taking help of above links.

Regard
Mughal

[Updated on: Fri, 31 January 2014 07:29]

Report message to a moderator

Re: window not closed [message #606964 is a reply to message #606962] Fri, 31 January 2014 07:48 Go to previous message
mist598
Messages: 1059
Registered: February 2013
Location: Hyderabad
Senior Member
Thank You mughals_king.. Smile
Previous Topic: How to displayed only login form
Next Topic: Trigger on a Summarized Column
Goto Forum:
  


Current Time: Fri Dec 19 18:38:59 CST 2014

Total time taken to generate the page: 0.13639 seconds