cancel
Showing results for 
Search instead for 
Did you mean: 

[Webdynpro java]Getting the value from other view

Former Member
0 Kudos

Hi All-

I have created ViewA and ViewB.

ViewA has an input field in which user enters a value at runtime.This value has to be displayed in ViewB input field when I click a button "Go" in ViewA.

Let me know whether I need to pass the value at wdFirePlug..() or need to update the context?

Please let me know the process to achieve this.

Regards,

Cris

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Create the attribute in custom/component controller context, define controller usages and context mapping to have the attribute available in both views. No code needed.

Armin

Former Member
0 Kudos

hi

U can do in both ways , but passing the parameter through s some delay to be happend.

Create a Attribute in Controller and map it your two Views bind them that common attribute then u solution easy.

Other wise do u need pass the parametr create a parameter outplug and pass the parameter and capture the parameter and setting the wherever do u need.

Thanks

Lohi.

Former Member
0 Kudos

Hi

You can Create the attribute in componentController and bind it with view A and view B.

You can get the value from both view at runtime

wdContext.current<Context or node>Element().get<Value>();

See the Code Sample and Tutorial

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b1a3e990-0201-0010-aeb2-a2ef5bc3da8e

Kind Regards

Mukesh