PDA

View Full Version : setValues / getValues bug in 3.3?



rleinen
17 Nov 2010, 12:15 PM
Problem: calling setValue on a form field, typing changes to the field on the screen, then calling getValues returns the original value that was set, not the changed value.

Here is a sample of the code:


// create the textfield
this.SCALE = new Ext.form.TextField({fieldLabel:'Scale', width:tWidth2, cls:'DataField'});

// add to form items
items: [this.SCALE]

// In AJAX call
this.SCALE.setValue('test');

// In the save handler
var value = this.SCALE.getValue()


After changing the text in the textfield on the screen it still returns 'test' as its value.

Am I missing something?