I am trying to set a value on a custom field. SetFieldValue() doesn't appear to work. Do I need to reference a custom Field in a different way.
Thx in advanced!
Michael
Ext.define('EAM.custom.external_osobfm', {
extend: 'EAM.custom.AbstractExtensibleFramework',
getSelectors: function() {
return {
/* Add date PPE was picked up */
'[extensibleFramework] [tabName=HDR] [name=requisitionstatus]': {
change: function(field) {
var vValue = field.getValue(),
gDate = new Date(),
gDate3 = (gDate.getMonth() + 1) + "/" + gDate.getDate() + "/" + gDate.getFullYear(),
vFormPanel = this.getFormPanel();
if (vValue =='R'){
EAM.Builder.setFieldState({'cust_2_DATE_REQ_EME-0045PPE2': 'required'},vFormPanel.getForm().getFieldsAndButtons());
vFormPanel.setFldValue('cust_2_DATE_REQ_EME-0045PPE2', gDate3);
}
}
}
};
}
});