Home » Developer & Programmer » Forms » New window opened as deactivated (Forms 10g)
New window opened as deactivated [message #489397] Sat, 15 January 2011 11:38 Go to next message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
Hi
Everyone,

i want to open a new window from my form. everything going well but when a new window opened. the control remains on previous form. and the new window is also inactive. i tried go_item with the item belongs to the new canvas but in vain.

anybody any clue.
please share.

Regards
Athar
Re: New window opened as deactivated [message #489404 is a reply to message #489397] Sat, 15 January 2011 11:52 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
It seems that something's wrong on your side; you keep opening new topics every minute or so. In order to stop it, I banned you for an hour. Hopefully, you'll see this message and realize that there's no need to repost the question again.

Please, next time verify whether your message got posted or not by refreshing the page.
Re: New window opened as deactivated [message #489478 is a reply to message #489404] Sun, 16 January 2011 23:43 Go to previous messageGo to next message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
I am really sorry for that,

what i did was not intentional,


Please reconsider my message.

Regards

Athar.
Re: New window opened as deactivated [message #489494 is a reply to message #489478] Mon, 17 January 2011 01:51 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Is this new window in the current form or a new one?
What exact code did you use to open it?
Re: New window opened as deactivated [message #489497 is a reply to message #489494] Mon, 17 January 2011 02:12 Go to previous messageGo to next message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
DECLARE
	
	WHERE_STRING VARCHAR2(1000);
	
BEGIN 

	WHERE_STRING:='C_TRANS_ID='''||:ADMIN_COMPLAINTS_MAST.C_TRANS_ID||''' AND C_TRANS_NO='||:ADMIN_COMPLAINTS_MAST.C_TRANS_NO;
	SET_BLOCK_PROPERTY('ADMIN_COMPLAINTS_MAST1',DEFAULT_WHERE,WHERE_STRING);
	GO_BLOCK('ADMIN_COMPLAINTS_MAST1');
	EXECUTE_QUERY;
	show_window('ASSIGN_JOB');
	GO_ITEM('ADMIN_COMPLAINTS_MAST1.ASSIGNED_TO');

END;

WINDOW STYLE: DIALOG
MODAL:YES
it causes the window to open and disappear in a flash.
if I set
MODAL=NO
then window remains opened but deactivated.

Regards
Athar

[Updated on: Mon, 17 January 2011 02:13]

Report message to a moderator

Re: New window opened as deactivated [message #489502 is a reply to message #489497] Mon, 17 January 2011 03:18 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
How many windows does the form have?
Which trigger is that code in?
What window does the block ADMIN_COMPLAINTS_MAST1 belong to?
Re: New window opened as deactivated [message #489503 is a reply to message #489502] Mon, 17 January 2011 03:22 Go to previous messageGo to next message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
form have two windows
the code is written under WHEN-BUTTON-PRESSED trigger
ADMIN_COMPLAINTS_MAST1 belongs to the window ASSIGN_JOB.
Re: New window opened as deactivated [message #489504 is a reply to message #489503] Mon, 17 January 2011 03:29 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
I'd put show_window before go_block or execute_query.
Re: New window opened as deactivated [message #489505 is a reply to message #489504] Mon, 17 January 2011 03:37 Go to previous messageGo to next message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
go_block or go_item seems to be enough to open new window.
it makes no difference whether i remove show_window or put anywhere else.
Re: New window opened as deactivated [message #489517 is a reply to message #489505] Mon, 17 January 2011 04:04 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Do you have any when-new-block/record/item triggers in the ADMIN_COMPLAINTS_MAST1 block?
Is the form in enter-query mode when you try to do this?
Re: New window opened as deactivated [message #489518 is a reply to message #489517] Mon, 17 January 2011 04:06 Go to previous messageGo to next message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
there no such triggers and the form is not in the Enter-Query mode.
Re: New window opened as deactivated [message #489521 is a reply to message #489518] Mon, 17 January 2011 04:23 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Add a when-new-item-instance to ADMIN_COMPLAINTS_MAST1.ASSIGNED_TO, put a message in it (twice). Run the form and see if the message shows up.
Re: New window opened as deactivated [message #489522 is a reply to message #489521] Mon, 17 January 2011 04:26 Go to previous messageGo to next message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
Window stands.Message displays. when i press OK , Window disappears.
Re: New window opened as deactivated [message #489524 is a reply to message #489522] Mon, 17 January 2011 04:29 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
I can only suggest you run the form in debug mode and see what triggers fire when. Only thing I can think is that there is some code in a trigger that is explicitly causing the form to exit the window.
Re: New window opened as deactivated [message #489572 is a reply to message #489524] Mon, 17 January 2011 11:17 Go to previous message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
thanks a lot Sir, i got the wrong spot and corrected it.
Thanks a once again.

Athar
Previous Topic: poplist
Next Topic: radio group coding
Goto Forum:
  


Current Time: Mon Sep 16 13:07:05 CDT 2024