on 07-28-2009 10:29 AM
I have created an event for navigation purpose...
I have created a handle method within a view to navigate...
But it can happens that the event is raised and the view is not visible ...
Therefor navigation error...
How can i check wether my view is visible or not ?
Regards
Did you embed the view into window?
Where did you raised the event and what is the error u are getting?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In what situation u raise the event?
By the way,have u embedded the view within the
window under Window tab?
Thanks,
Divya.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created a popup window...
In this popup i handle the cancel button and generate an event cancel because de main window ( that call the popup ) has to navigate away... Maybe there is a better solution, i don't know but this works
Unfortunatly i call the popup at two differents places, and therefore the event is raised 2times - 2differents views, but has to be handled only when the specific view when the view is visible!
So in my handle event method, how can I test that the view is visible or not ? So that I can fireplug for navigation only when the view is visible and therefore prevent a shortdump
Is it clear ?
Ok
kisS METHOD...
One window popup
+ One cancel button
+ One event raised
2 VIEWS A&B
+ ONE HANDLE FOR THE EVENT IN VIEW B...
2 times call of the popup window.... each times from a different view, 2 times event raised handled only in view B BUT...
When the popup is called from view A, and user presses the cancel button, the event is raised and the handle of view B is raised!
In the handler, i user navigation...
Problem is then : Navigation probleme because view B is not visible!
Maybe this would work ...
1. Create 2 Events, one associated with each View A and B.
2. When you call the popup window from View A, store "ViewA" in a Component Controller Attribute, likewise "ViewB"
3. When you're doing the Cancel Action ...
if wd_comp_controller->calling_view = "ViewA".
wd_comp_controller->fire_view_a_evt( ).
else.
wd_comp_controller->fire_view_b_evt( ).
endif.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.