I saw some example with Ext (cant find it again now) that it should be possible to give parameter to the view like I do below in the push function. If this is also possible in Sencha 2, how can I retrive this value in the view ?
var saveResponse = account.save({
success: function(model, operation) {
console.log('The Account was created, response: '+model);
loginview.push({
xtype: 'adultmenulist',
adult: model
});
},
failure: function(model, operation) {
....
}
});
I usually create a function in my custom object called something like:
updateWithRecord. Whenever i push the object i call this method and then proceed to push it like this:Note how i use MVC ref’s for both my detailpage and the NavigationView:
And my page would look something like this: