J'ai un problème. Il y a une vue row.xmlAccès externe pour afficher les éléments créés avec createController et ajoutés à une autre vue
<Alloy>
<View>
<Switch id = "search_switch" bindId = "search_switch" />
<Label id = "search_switch_label" />
</ View>
</Alloy>
Et Vue principale
<View id = "general" bindId = "general ">
<Label id = "testLabel" />
</View>
Quand j'ajouter
var control = Alloy.createController ('row');
Control.search_switch_label.text = 'TEST';
$.parent.add (control.getView());
Tout est parfaitement ajouté, mais comment accéder aux méthodes et propriétés de search_switch?
$ .search_switch - indique que "undefined" !!!
$ .testLabel.text = '1234567890'; - Tout est OK!