Home » Developer & Programmer » Forms » window not closing
window not closing [message #199927] Fri, 27 October 2006 00:27 Go to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

Hi all,

I call window using this code

    show_window('place_win');
    go_block('place_blk');
    enter_query;
    go_item('place_blk.city');


Then on cancel button of that window I write this:
 
BEGIN
  hide_window('place_win');
  go_item('invstgtn_dtls.invstgtn_no');
END; 


The problem is the window does not respond remain on top.
What's wrong with this code? I want to close the window.
Re: window not closing [message #199929 is a reply to message #199927] Fri, 27 October 2006 00:33 Go to previous messageGo to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

Sorry for that, it's now running fine.
I don't know what happened on my unit a while ago. Razz
Re: window not closing [message #200485 is a reply to message #199929] Tue, 31 October 2006 01:47 Go to previous messageGo to next message
shahidmughal
Messages: 91
Registered: January 2006
Location: Faisalabad Pakistan
Member

hi
i also suffer this problem sometimes
it is a bug or some failure of any service
i also don't know

regards

Muhammad Shahid Mughal
Re: window not closing [message #200662 is a reply to message #200485] Tue, 31 October 2006 16:16 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Do the 'go_item' BEFORE you close the window. See if that fixes your problem.

David
Re: window not closing [message #200931 is a reply to message #199927] Wed, 01 November 2006 23:45 Go to previous messageGo to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

I have to be in query mode new mode to execute codes on cancel. There will bw no problem if the user use query. The problem is when the user want to cancel immediately. If I press ctrl+Q then the block status is new and there will be no problem. Now what code shall I use to quit enter_query command just like what ctrl+Q do? Abort_query can't do.
Re: window not closing [message #200946 is a reply to message #200931] Thu, 02 November 2006 00:58 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
This is a new question isn't it?

I think you need to do an 'exit_form' - search this forum for 'cancel_query' or 'exit_form' and you should find a thread where an 'if' test is used to determine the current status and either the trigger does an 'exit-form' or a 'cancel_query' and then an 'exit_form'.

David
Previous Topic: Form 4.5 FRM 40654 Trigger post-change problem
Next Topic: tool_env.getvar and default.env
Goto Forum:
  


Current Time: Tue Dec 06 08:19:25 CST 2016

Total time taken to generate the page: 0.18315 seconds