cancel
Showing results for 
Search instead for 
Did you mean: 

PopUp closing - get value from the popup to parent

Former Member
0 Kudos

Hi,

I have a create a popup window. On selecting a row from the table within the popup i need to transfer the selected value to the parent window input field and close the popup window. Can some one help me do this.

Thanks in adv

Accepted Solutions (1)

Accepted Solutions (1)

pravesh_verma
Active Contributor
0 Kudos

Hi Unni,

See this document. This is exactly what you require. This is called OVS feature in WebDynpro.

<b><a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/web%20dynpro%20valuehelp%20using%20object%20value%20selector.pdf">Advanced Input Help - The Object Value Selector (OVS)</a></b>

I hope this helps you. Kindly revert back if there is any problem.

Regards

Pravesh

PS: Kindly consider rewarding points if solved or helpful.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Create value attribute <b>name</b> in the context of popup view, parent view and controller. Do the corresponding Context Mapping.

Create a new action in the Action tab of the popup view and bind it to the table property <b>onLeadSelect</b>.

In the method onLeadSelect of the table give the following code.

String name = wdContext.current<node>Element().getNAME();

wdContext.currentContextElement().set(name);

// Give the code for closing the window.

Bind the attribute <b>name</b> to the value property of the inputfield.

Hope this helps.

regards,

Rathna.