How to reload a calling form after closing the called form? [message #251585] |
Sun, 15 July 2007 02:54 |
bbaz
Messages: 138 Registered: April 2007
|
Senior Member |
|
|
I have FORM_A calling FORM_B: Call_form('FORM_B',...). On form_B I am updating a Record and when I close Form_B and the focus goes back to Form_A, I need to Automatically Reload Form_A to reflect the changes that were made on Form_B.
How can I reload the Calling Form (FORM_A) when I closed the called form (FORM_B)?
|
|
|
|
Re: How to reload a calling form after closing the called form? [message #251596 is a reply to message #251595] |
Sun, 15 July 2007 05:54 |
bbaz
Messages: 138 Registered: April 2007
|
Senior Member |
|
|
Hi Littlefoot,
I am not calling FORM_A from FORM_B. I am currently Only Closing FORM_B and automatically the focus goes back to form A with the OLD data.
Can you tell me how can I know in Form_A that I am back from B and I regained the focus then maybe I can call my WHEN-NEW-FORM-INSTANCE to reload the data?
Thanks in advance.
Baz
|
|
|
|
|
Re: How to reload a calling form after closing the called form? [message #251602 is a reply to message #251601] |
Sun, 15 July 2007 07:15 |
bbaz
Messages: 138 Registered: April 2007
|
Senior Member |
|
|
Zameer,
As per the functionality description of the WHEN-FORM-NAVIGATE trigger provided by Oracle:
Quote: |
Fires when navigation between forms takes place, such as when the user changes the focus to another loaded form.
|
the suggested trigger should do the job, so when I close FORM_B and I have set the above Trigger on FORM_A the Trigger should fire since the focus comes back to another loaded form. But still it doesn't seem to be working??
in the WHEN-FORM-NAVIGATE trigger I am trying to direct to WHEN-NEW-FORM-INSTANCE trigger in order to reload the form:
EXECUTE_TRIGGER('WHEN-NEW-FORM-INSTANCE');
Why is this not working?
Thanks
|
|
|
|
Re: How to reload a calling form after closing the called form? [message #251611 is a reply to message #251603] |
Sun, 15 July 2007 08:51 |
bbaz
Messages: 138 Registered: April 2007
|
Senior Member |
|
|
Thanks for the tip, I have already done what you recommended of calling a procedure that does the When-New-Form-Instance job,but I still have an issue that the WHEN-FORM-NAVIGATE trigger is not FIRING when I regain focus in FORM_A.
I am trying to display some messages in the Trigger and pausing but it doesn't seem that the Trigger is being triggered???
I tried Exiting Form B either by Exit_form or close_form and still the When-Form-navigate trigger in Form A is not Firing!!!
What could be the reason?
I appreciate your help.
Thanks,
Baz
|
|
|
|
Re: How to reload a calling form after closing the called form? [message #251633 is a reply to message #251585] |
Sun, 15 July 2007 15:21 |
zameersait
Messages: 16 Registered: July 2007
|
Junior Member |
|
|
Hi,
I tried the same with couple of forms here and its working but it should maintain a sequence.So unless i have a broader picture of what u r trying to achieve i wont be able to provide u a solution.I would like to know how the Form A and Form B is called initially and how the focus goes to Form A automatically.
You may try out the solution above wincy has provided.
Thanks
Zameer
|
|
|
|
|
|
|