cancel
Showing results for 
Search instead for 
Did you mean: 

Get values from context node

former_member1193316
Participant
0 Kudos

Hi,

I m having two views say v1,v2.

v1 is having a contextnode c1 with the attribute studno.

v2 is having a contextnode c2 withe sme attributes.

i want to pass the value of studno which i selected frm dropdown list into the second view and display all the detials of perticular student.

so how to pass the studno value frm the first view to second view.

please guide me.

Accepted Solutions (1)

Accepted Solutions (1)

mohammed_anzys
Contributor
0 Kudos

Hi

Create a context node in the component controller and map that to the two views.You will be able to access the same values in both views..

thanks

Anzy

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Venkat,

If your problem is solved, please award points and close the thread.

Regards

Nithya

Former Member
0 Kudos

Hi Venkat,

If you want to pass all the attributes in the context, you define the context in the component controller. Then, in your view's context, you will be able to see the component controller's context. Just drag and drop it to your view's context. All the attributes will get mapped to the views context, and it can be accessed just as you access any other node in your view. Use the code wizard for accessing.

If you want to pass only one attribute, you can also pass it as a plug parameter. When you define an outbound plug from view1, declare a parameter studno of your data type. Then, on firing the plug using the code wizard, the exporting parameter name will be shown. Read the context attribute and pass the value.

Hope this helps.

Regards,

Nithya