View Full Version : Updating a textfield with setValue() doesn't work.

11 Dec 2013, 9:46 PM
The following code seems to change the textfield value, because the AFTER alert shows the value as changed.

But when you look at the textfield in the form, it is blank???

var selectedItem = JSON.parse(CommonUtil.getSelectedRows(this.getSettingGrid()))[0];
alert("BEFORE: " + this.getSettingVcenter().queryById('txtName').getValue());
alert("AFTER: " + this.getSettingVcenter().queryById('txtName').getValue());

12 Dec 2013, 8:36 AM
Wondering if anyone can shed light on this.

Kevin Jackson
18 Dec 2013, 10:13 AM
This is a solution that might work for you https://fiddle.sencha.com/#fiddle/29d. It was a response to a similar post by Mitchell Simoens.