cancel
Showing results for 
Search instead for 
Did you mean: 

Edit view's context from a differnet context

former_member186783
Participant
0 Kudos

Hi experts,

I have got two views (VIEW_1 and VIEW_2) VIEW_1 has got an attribute in it's local context: ATRIB_1.

I's like to edit this attribute from VIEW_2. Is it possible? If yes then how? It's important to know, that i can't use context binding !!!

I'd like to edit the attribute of VIEW_1 from VIEW_2 without any context binding.

Thanks.

N.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can try this approach.

First create an event in the component controller. Add parameter which will hold the new value of the attribute.

Now define the event handler method in view 1. This event handler wil be responsible to read the value of the event parameter and set the attribute.

Finally trigger the event handler from view 2 and pass the value you want to set to the attribute in the paramter.

Hope it helps.

Regards,

Sayan

former_member186783
Participant
0 Kudos

Thanks for the answer! It works perfectly!

Answers (1)

Answers (1)

Former Member
0 Kudos

if its local attribute you cannot change it's value from outside this view.

you need to make changes in attrib_1 from view_2 then you have to make this attribute visible to view_2. or make it visible to method which is accesible from view_2