Search Type: Posts; User: erikras

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,493
    I figured it out. Not the fix, but how to replicate it. It only breaks when the model in the store does not directly extend Ext.data.Model, but extends an intermediary type.

    You can see it in...
  2. Replies
    3
    Views
    1,493
    Yes, that works, and I can't get it to break by switching it to an array reader or an ArrayStore.

    I'll have to examine my complex scenario – which was working in 4.0 – a little further.

    Thanks.
  3. Replies
    3
    Views
    1,493
    I've got my Model, which defines fields ['firstName', 'lastName', 'age'], and my ArrayStore that sets the data as [['Bob', 'Johnson',23], ['Alice', 'Smith', 55]], and I'm getting objects that look...
  4. No, not at all. I want a Ext.form.Basic.setValues() to call a function on each of its fields that looks, by default in Ext.form.field.Field, like this:


    setModelData: function(obj) {
    ...
  5. I love that I can override getModelData() in my custom field and provide multiple values to be set in my record when the form is submitted, but I can't seem to figure out how to read multiple values...
  6. Whenever I include two separate applications on my page, the control structure in the controllers in the second application doesn't work. By that I mean, the listeners defined in the this.control()...
  7. The method signature is:

    onNodeIdChanged: function(oldId, newId)
    but should be

    onNodeIdChanged: function(record, oldId, newId)
    because Model.set() is firing the event like this, passing the...
  8. Okay, so it appears that the proper way might be:


    store.on('write', function(store, operation) {
    if(operation.action == 'create') {
    var record = operation.resultSet.records[0];
    //...
  9. I've tracked it down to Store.onCreateRecords(), which is a private function, and there are no events associated with it. It removes the original phantom record and then inserts the newly loaded...
  10. I'm creating a record and adding it to my store. But the record value returned from Store.add() and the record passed to the store's "add" listener still don't have their id set, and are still marked...
Results 1 to 10 of 10