Oct 26, 2010, 11:35 AM
[CLOSED] Update records subcollection with set() method?
Hello,
I'm having problems when trying to update a record wich contains a subcollection.
So how can I use the set method in this case?
The set method wants the name of the property as param, like:
How to solve this?
Thanks
Patrik G
I'm having problems when trying to update a record wich contains a subcollection.
var record = flowPanel_targetStore.getAt(i);
record.data.FlowBaseCollection[j].Role = flowBaseDTO.Role;
record.data.FlowBaseCollection[j].RoleName = flowBaseDTO.RoleName;
the above code works but the records status (modifieid, dirty....) wont update.So how can I use the set method in this case?
The set method wants the name of the property as param, like:
record.set('FlowBaseCollection[j].Role', flowBaseDTO.Role);
But the set method can't resolve that parameter so it will just add a new variable to the record...How to solve this?
Thanks
Patrik G
Last edited by Daniil; Oct 28, 2010 at 3:05 PM.
Reason: Please use [CODE] tags, [CLOSED]