on 2013 Feb 20 9:16 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
58 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.