Just a simple question, is it possible to call an ExtJS function to be able to set default value when we are defining a component like below? Because, when I tried below, the function doesn't assign the value.
{
xtype: 'textfield',
fieldLabel: 'DNR TYPE',
name: 'DNR_TYPE,
value: Ext.getCmp('dnr-type').getRawValue()
// here is the function that I want to call and assign the value
}
EDIT :
Dear friends, I found the problem which is related with form render. When application startup, the form initialized with default values. Therefore, the field value returning empty. When user select a record from the combobox, I should assign that value to related textfield.
Now, is there any method to refresh/reload form again when user select a record from the form?