In my situation, we have a large object with several layers of nesting.
This large object after being put into a model, is set inside 'data' of this View Model for testing.
I am able to access several of the single objects (1 to 1), but I cannot access any of the stores within the structure.
For example: (Faked idea)
viewModel.set('order', order);
viewModel.get('order.customer.address'); //works
viewModel.get('order.items'); //returns null
viewModel.get('order'); //cannot even see items being referenced
The one thing that may be an issue is that the stores on the object have been modded.
The reader to be set in the parent as camelcase + "Store". In the example above, the store for Items would be "itemsStore".
More specifically, here is a snippet of what is in the Role constructor override (A few other custom stuff down the line...)
Code:
me.name = me.name || Ext.util.Inflector.pluralize(me.association.right.role.toLowerCase());
name = me.name;
Ext.applyIf(me, {
storeName: name + "Store"
});
me.getterName = "get" + name.charAt(0).toUpperCase() + name.slice(1);
Any input on how to force the stores to be accessed?
I was hoping to be able to bind a formula to a store and pull out a specific record based on a field value.