I found the solution in another thread. Problem was the scope of the function:
http://www.sencha.com/forum/showthre...n-%28scope-%29
I found the solution in another thread. Problem was the scope of the function:
http://www.sencha.com/forum/showthre...n-%28scope-%29
If you're looking to loop through a store in ExtJS 6.x, you can use something like this:
Code:const store = this.getViewModel().getStore('myStore'); const data = store.data.items; Object.keys(data).forEach((needle) => { data[needle].set('firstName', 'Noah'); // add a key/value pair to every record });