cancel
Showing results for 
Search instead for 
Did you mean: 

How to show ParentComp view from ChildComp View

Former Member
0 Kudos

Hi ,

I have a DC in which i have 2 components - ParentComp and ChildComp

ParentComp uses ChildComp.I am abe to pass data from parent to child via isInputType=true Node in Interface controller

Also, i can fire plug to call ChildComp View from ParentCompView.

But i am unable to call ParentView from Child View - i.e in my childcomp view i have a button "go to parent".it should calll the parentcomp view and make it visible

How can i achieve this?

points assured for help

Thanks and Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Assuming that you navigate to ChildComp using ChildComp Interface View i.e

// to navigate from from parent comp view to child comp view

1. You embed the Interface view of your child component in the Window of the parent Comp

2.Create a outbound plug (toChildCompViewOut) in the view of parent comp and create a navigation link from Outbound plug of parent view to InboundPlug of ChildComp Interface view

3. On action in the parent view

wdThis.wdFirePlugtoChildCompViewOut();

// to naviagte from child comp view to parent comp view

1. Create a outbound plug in the ChildComp Interface View say "toParentCompOut"

2. Create a inbound plug in the parent comp view and link this with the outbound plug of your ChildComp Interface View.

3. Add the interface view as required controller in the view of child comp

4. On action in the child comp view

wdThis.wdGetChildCompInterfaceView.wdFirePlugtoParentCompOut();

Former Member
0 Kudos

Hi Vivek,

Check out this link , it will be usefull..

http://help.sap.com/saphelp_nw70/helpdata/en/8d/730b40c6c01961e10000000a155106/frameset.htm

Regards,

Arun

former_member751941
Active Contributor
0 Kudos

Hi Vivek,

In the action of the child view "button" use this code.

String linkToBeOpen = "http://server:port/webdynpro/dispatcher/ibm.com/parentprojname/ParentAApp?";]

IWDWindow window =

wdComponentAPI.getWindowManager().createNonModalExternalWindow(

linkToBeOpen,

"My window title");

window.show();

Your first run your ParentApp and take the URL.Then use

String linkToBeOpen = "put the URL here";

Regards,

Mithu

Former Member
0 Kudos

Hi,

When you have declared Child Comp as Used Component in Parent Component, You have the access to use views subject to Child Component. But when you want to access the Parent Component in Child component, it cannot happen.

Try declaring Parent Component as Used component in the Child component.

That will work out probably,

Regards,

SURYA