PDA

View Full Version : Getting a textareafield using Ext.ComponentQuery.query and setting value



mvosantos
5 May 2012, 4:58 AM
Hi folks.
I have a textareafield with the itemId: 'mytextarea'.
Iīm trying to set new value by getting it using Ext.ComponentQuery.query.
var myfield = Ext.ComponentQuery.query('#mytextarea');
using console.log(myfield), I see that I have the function setValue available, but it doesnīt work if I just try:
myfield.setValue('Testing....');
How can I set new values for this textarea? Do I need another way to get this component instead of using Ext.Componentquery.query?

evant
5 May 2012, 5:27 AM
See: http://www.sencha.com/forum/showthread.php?201163-Error-loading-new-content-to-panel

mvosantos
7 May 2012, 3:39 AM
Itīs solved...thatīs what I wanted....
10x :)