cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to pass the input values ( entred input view ) to the result view

Former Member
0 Kudos

Hi,

I created two view and one window. The first screen is the input view and the second is the output view.

When I'm entering the values in the input element, I want those values to be displyed in the out view along with some steps. I added one botton on each view, which clicks on first view ( default view ) goes to the next view and vice versa. I created inbound and outbound plugs. Settings are working fine. But the value entered in input view are not passing into output view.

Please let me know the procedure '"How to pass the values from one view to another"

Thanks in advance.

Prasad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To pass the data from one view to the other the only was is in component controller create the node . Now map this node into your view controller and bind it to the input field or the table which ever you want . Now Goto second view and aagin map the compoenet cntroller node into your view controller and bind that value to the table property or input field. So the data which passes willbe common to the both the views for instance. If you are clicking on the table and wants that row to be captured into another view because we mapped the same node to the second view the data automatically will be passed into that view.

Try to implement in this way.Hope it might be helpful.

Regards,

Sana.

Former Member
0 Kudos

answered

Answers (2)

Answers (2)

arjun_thakur
Active Contributor
0 Kudos

Hi Prasad,

Create a context node in the component controller and then create a context attribute of type string of that node. Now map this node to both your views. To do that: open your first view, go the context tab, on the right side of the screen you'll see the component controller's node you just create. Just drag and drop that node on the context of your view. Do the same process in your second view. Now bind the input field (present on the screen) with the attribute in both the views. It will solve your problem.

I hope it helps.

Regards

Arjun

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Have you mapped the view context of view1 and view2 to the contect of the component controller?

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

Setting was already done in componet controller with node and attribute.

arjun_thakur
Active Contributor
0 Kudos

Hi Prasad,

Check for these things in your component:

1) The attribute (with whom binding is done) should be of STRING type.

2) It should be mapped to both the views.

3) It should be binded with the VALUE property of input field in both the views.

If all the above mentioned points are correct, then I don't think there should be any problem.

I hope it helps.

Regards

Arjun

Former Member
0 Kudos

Hi,

It was fine with binding. Also, the code generated through webdynpro Wizard and added the get_attribute in the input screen, this was fine in the vairiable importing lv_main, picks up the input values in the Input field. But this variable values are not passed into the Result view. Even I'm using get_attribute in the result screen, still its not picking the values of the input screen into variable "let_result".

Please let me know how can I move the variables.

arjun_thakur
Active Contributor
0 Kudos

Hi Prasad,

I think what you are doing is this: You have binded your input field in 1st view with an attribute, then use are getting that value in a variable using get_attribute method and with that variable you are trying to set the value of the attribute with which you have binded you input field of second view.

If you are using the above mentioned approach, then no need to follow such a complicated process.

Just do it in this way: create an node and an attribute in component controller, bind it with both the views and then bind both the input fields with the same attribute. the values will automatically get transferred from one view to another. you don't need to write any code.

I hope it solves your problem.

Regards

Arjun

pranav_nagpal2
Contributor
0 Kudos

Hi Prasad,

Are you passing values between external windows....?? if yes you wont be able to pass data through context mapping as a complete new sessions is generated for it........

please see this link

regards

Pranav