cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro navigation

Former Member
0 Kudos

Hello, I'm starting to use Webdynpro for Java and I need some help in the following situation please:

I need that a view is called by 2 another differens views, and when this windows is called, pushing a single button like 'Back', the navigation goes to a window or another.

E.g:

View ContactPerson ---> ContactDetails

View Organisation ---> ContactDetails

How can I know pushing a back button in ContactDetails, the View that I need to go? ContactPerson or Organisation.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

1.Create valueAttribute "sourceView" of type String.

2. Map the above valueattribute to all the views ContactPerson ,Organisation and

ContactDetails.

3. In COntactperson view while firing the plug to contactDetails set the valueattribute.

E ex: wdContext.currentcontextElement().setSourceView("ContactPerson");

4.Similarly in Organisation also

E ex: wdContext.currentcontextElement().setSourceView("Organisation");

5. In CintactDetails "OnBack" button click check the value

if (wdContext.currentcontextElement().getSourceView().equals("ContactPerson")

wdThis.wdfirePlugtoContactPerson();

else

wdThis.wdfiretoOrag();

Regards, ANilkumar

Answers (2)

Answers (2)

Former Member
0 Kudos

Could you be a bit more specific please?

Thanks for your reply.

Former Member
0 Kudos

Create a common contextattribute and set the value.

Depending upon the value fire the required outbound plug.

Regards, Anilkumar