Results 1 to 3 of 3

Thread: Error: record.fields.get(modifiedFieldNames[i]) is undefined with release 4.1

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Location
    Villaflores,Chiapas,Mexico
    Posts
    97
    Answers
    9

    Default Error: record.fields.get(modifiedFieldNames[i]) is undefined with release 4.1

    Hi again, firebug shows me the next error:
    Error: record.fields.get(modifiedFieldNames[i]) is undefined
    Archivo de origen: http://localhost/ext-4.1.0/ext-all-dev.js
    Lnea: 70016

    This error appears when i try to update records:
    Code:
    Actualizar: function(button) {
            var win    = button.up('window'),
                form   = win.down('form'),
                record = form.getRecord(),
                values = form.getValues();
    
        if (values.Curp.length > 0){ //Si Hay algun Valor, entra en Modo de Actualizacion
                record.set(values);
            } else{ //De Lo contrario, si la accion fue para agregar, se inserta un registro
                record = Ext.create('Mocaci.model.Ciudadanos.Ciudadanos');
                record.set(values);
                record.setIdcliente(0);
                this.getCiudadanosCiudadanosStore().add(record);
            }
            win.close();
           
        },

    With the old release 4.0.7, this problem was not displayed.

    Thanks.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    Where in this code does the error happen?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Location
    Villaflores,Chiapas,Mexico
    Posts
    97
    Answers
    9

    Default

    Hi this error happens when i try to Update my records: In my Controller file
    Code:
    Actualizar: function(button) {
            var win    = button.up('window'),
                form   = win.down('form'),
                record = form.getRecord(),
                values = form.getValues();
    
    
    	if (values.Curp.length > 0){ //Si Hay algun Valor, entra en Modo de Actualizacion
    			record.set(values);
    		} else{ //De Lo contrario, si la accion fue para agregar, se inserta un registro
    			record = Ext.create('Mocaci.model.Ciudadanos.Ciudadanos');
    			record.set(values);
    			record.setIdcliente(0);
    			this.getCiudadanosCiudadanosStore().add(record);
    		}
            win.close();
           
        },
    Fecha y hora: 02/06/2012 03:43:52 pm
    Error: record.fields.get(modifiedFieldNames[i]) is undefined
    Archivo de origen: http://localhost/ext-4.1.1/ext.js
    Lnea: 800

    I just Downloaded the new vers Ext js 4.1.1 and the same errors rise.
    when i was using ext 4.0.7 all worked so fine. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •