Event triggered when a form is closed [message #253966] |
Wed, 25 July 2007 07:03 |
Tulasip
Messages: 2 Registered: July 2007
|
Junior Member |
|
|
I am doing form personalization. when_new_form_instance event is fired, I am creating a trigger. I want to disable this trigger when the user closes this form( i.e when the user clicks on 'X' on the window).
I have used when_form_navigate event, but this is not giving the expected result. I used when-window-closed event also. It was not getting fired when I am closing the window. Please help me.
|
|
|
|
Re: Event triggered when a form is closed [message #254201 is a reply to message #254057] |
Thu, 26 July 2007 02:40 |
Tulasip
Messages: 2 Registered: July 2007
|
Junior Member |
|
|
Thanks for the quick response.
I have defined a seq 10 with
a) Condition
Trigger Event = WHEN-NEW-FORM-INSTANCE
b) Action
Type = Builtin
Builtin Type = Forms_DDL
Argument = Script for creating a trigger
I have created another seq 20 with
a) Condition
Trigger Event = WHEN-FORM-NAVIGATE
b) Action
Type = Builtin
Builtin Type = Forms_DDL
Argument = scritpt to disable the trigger
When form is opened, trigger is getting created.
But when the user closes the form, it is not disabling the trigger. User closes the form by clicking on 'X' on the window.
As per your suggesion , I have changed the trigger event to POST-FORM in seq20. It is not working.
I have tried with POST-FORM, WHEN-WINDOW-CLOSED events also. They are not working.
Please help me in this.
|
|
|
Re: Event triggered when a form is closed [message #254355 is a reply to message #254201] |
Thu, 26 July 2007 09:52 |
linlasj
Messages: 98 Registered: August 2005 Location: Linköping
|
Member |
|
|
Hi,
the trigger KEY-EXIT should work here, but it does not. I just tested this...It fires when you exit the form in a normal way. But not if you press the Oracle Forms x at the upper right.
There must be a way to catch that event of pressing the x in the upper right.
Best Regards,
Lars
|
|
|
Re: Event triggered when a form is closed [message #254357 is a reply to message #254355] |
Thu, 26 July 2007 09:58 |
linlasj
Messages: 98 Registered: August 2005 Location: Linköping
|
Member |
|
|
Hi,
Btw, WHEN-WINDOW-CLOSED is referring to the "inner" window, not the browser window. But the "inner" window in the OC4J environment (I presume you are testing on your PC) should be able to "reach" programmaticly.
Br,
Lars
|
|
|
|