6 Dec 2012 10:52 PM #1
Unanswered: Getting value of label using foem.findField() method
I am using a label in a form. I want to set the value of the label dynamically. I tried using form.findField('labelName'). But it doesn't seem to work. What is the correct way to retrieve the value of the label present in the form? Using Ext.getCmp('labelId'), we can achieve this, but I wanted to use something like form.findField('labelName'). Also I observed using firebug but my form didn't show the label in the _fields property. Can there be a way to achieve this?
7 Dec 2012 3:00 AM #2Code:
fldset = form.getItems().items; myfield = fldset.innerItems; myfield.setLabel('anything');