I had a hard time figuring out how to data-link this scenario and thought of asking help several time but finally I resolved must of my issues, there is only one small part where I don't find the solution.
I started a JsFiddle to test it : http://jsfiddle.net/ClaudeVernier/U3dZ8/
// based on Sample: data-linking to <select>... and much more...
// http://www.jsviews.com/#jsvplaying
In this scenario, I have two lists, 'persons' and 'relations' (or how those persons relates to me).
Then, I want to build an array of span and dropdowns where the span displays the current value of the dropdown and show only the span or only the dropdown, depending if the user is is edit mode or not.
The template what shows the complete lists and the edit mode checkbox is based on the global model of the page while the lower part of the page is rendered from a template that is rendered for each items inside an array.
To link the visibility of the spans and dropdowns to the value of the checkbox, I used an helper but it is not bi-directional so the checkbox is not working. Is it that helper functions cannot be used for data linking ?
Thank you for any help or suggestion if my implementation is not correct. Best regards, Claude