cancel
Showing results for 
Search instead for 
Did you mean: 

Access Parent Context from Pop up Window

Former Member
0 Kudos

Hi Experts,

I have one application in which I am opening Pop-up window on button click. My Requirement is to access context node of parent view.

Could you please give me any idea about "How to access context node of parent view from pop-up window".

And also pop window has one more button , clicking on which i want close pop-up window. I don't want to use predefined buttons.

Thanks,

Prashant

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

If you don't want to use component controller, you can put attribute o_view_context into assistance class

Former Member
0 Kudos

1. Create a attribute in component controller. type ref to if_wd_context_node. For example, o_view_context

2. In WDINIT of parent view, wd_component->o_view_context = wd_context

3. In pop-up view, you can use wd_component->o_view_context to access context of parent.

Brown

Former Member
0 Kudos

Used Component Controller Context

Former Member
0 Kudos

Create your ndoe in the Component Controller, then it can be accessed from your popup window.

Former Member
0 Kudos

Hi Radhika,

Thanks for your prompt reply.

Is there any other alternative. I don't want to use component controller.

Regards,

Prashant

Former Member
0 Kudos
thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>Is there any other alternative. I don't want to use component controller.

May we ask why not? This is the generally accepted way to share context data between two views inside a component.