cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation between component view of different projects

Former Member
0 Kudos

Hi,

I created two different Web Dynpro projects with Sap NW Developer Studio. In each project I have a view with input field.

Can I navigate from the view of first project to the view of second project and return back to the starting view without losing Context status of the first view?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I did first 4 steps you wrote many times.

My problem is during the 5th step: when I click on Add Used Component by right-clicking on Used Web Dynpro Components, if I click on 'Browse' i can't see the component I want to use.

Regards

abhijeet_mukkawar
Active Contributor
0 Kudos

can you see the added public parts? and hope you have Build the DC.

regards

Answers (11)

Answers (11)

Former Member
0 Kudos

Now it's all ok!!

thank you very much.

Best Regards

Former Member
0 Kudos

..I know that I had to fire InterfaceView OutBound Plug, but I can't do it from the destination View because I can't see the method:

wdThis.wdGetInterfaceViewController() .wdFire<op>();

regards

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi,

if you are done with declaring the out plug in Interface Controller, then

double click on view->properties->Under Required Controller->define the usage of your InterfaceController

after this you will be able to execute the method you are trying

regards

reward points if it helps

Former Member
0 Kudos

Sorry...but I can't yet come back from destination view to start view...!

Former Member
0 Kudos

Hi,

now I can go from a View of DC1 to a View of DC2, but I can't come back to the start View from DC2...

Former Member
0 Kudos

Ok,

I can view the component now, thanks...!

Now I try to use the View of the imported component.

Best Regards!

Former Member
0 Kudos

I can't see DC1 in DC2, the only reference to DC1 found in DC2 is in Used DC Node of the Web Dynpro Explorer Menu.

Please, can you summarize me all steps?

best regards

sid_sunny
Contributor
0 Kudos

Hi Raffaele,

Kindly go to used Web dynpro components node inside the DC2 component in which you want to use this DC1 component and add this DC1 component.

Regards

Sid

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi,

1) go to component DC2,goto its component, right cick and say Add to Public part

2) these publicaly created components now should be used in DC1,

3)Go to the DC Metadata of DC1, in 'DC Definition', click on 'Used DC', here mention the public part of DC2

4)Save and Build your DC1.

5)now define component usage in Used WebDynpro components, goto to component of DC1 , under Used Web Dynpro Component->Add Used Component, here give name and, browse and select the DC2 component. Select LIfeCycle as CreateOnDemand

hope it helps

regards

sid_sunny
Contributor
0 Kudos

Hi Raffaele,

I would suggest you to refer to these documents.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a137c339-0b01-0010-a688-a87b88706845">How to Navigate Inside Web Dynpro Component Interface Views</a>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8d7cd90-0201-0010-4a8c-dd22fa16ca0a">Using Server-Side Eventing in Web Dynpro Components</a>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2cceb190-0201-0010-be88-acdbeb2ad65f">Modeling in Web Dynpro View Compositions</a>

Regards

Sid

Message was edited by:

siddharth chauhan

Former Member
0 Kudos

ok,

I created two DC projects and I imported public part of DC1 to DC2 but when I right-click on Used Web Dynpro Component...I can't see WD Comp of DC1 so I can't use Views of DC1...

abhijeet_mukkawar
Active Contributor
0 Kudos

HI,

have you properly built your project, also check if you can see the added public part in DC1 or not?

regards

sid_sunny
Contributor
0 Kudos

Hi Raffaele,

For your scenario instead of using web dynpro project make a web dynpro dc and the use different dc in each other.

Regards

Sid

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi,

take a look at this thread:

this talks about the communication of 2 DC, and then extending same you can also put link between two views of different DC, this also explained in that.

Read that completely, you will get what you want.

regards

Former Member
0 Kudos

Hi sarang,

so can't I use a navigation way...? If I bind an application to each view, on back action will I lose first view Context?

Former Member
0 Kudos

Hi Raffaele ,

For your scenario , you can import (add) active componnets of your first project into second project.

Then only you can navigate between diffrent views

Hope this helps

Note- reward if helful