cancel
Showing results for 
Search instead for 
Did you mean: 

Check wether a view is visible ????

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did you embed the view into window?

Where did you raised the event and what is the error u are getting?

Former Member
0 Kudos

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

Former Member
0 Kudos

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 ?

Former Member
0 Kudos

Hi,

U have said u have two different views and

so u ll hav two different condition for raising

dese two views as pop up.So why u need to

check the visibility?You can fire the plug as

per condition rite..

If this is not true,please be clear wats ur

requirement.

Thanks,

Divya.S

Former Member
0 Kudos

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!

Former Member
0 Kudos

Hi,

Please chk whether u have embedded two views

under Windows tab.

Thanks,

Divya.S

Former Member
0 Kudos

The problem is not that I want the view to be displayed...

The problem there is an event handle on the view that is not displayed therefore when the event is catch, Navigation is not possible!

Former Member
0 Kudos

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.