Hi,
How can I select by afterlayout/afterloadata the first record of a dropdown field?
For now I´m just trying to force the value (and the value exists and can be selected manually) but the field is not being filled automatically.

Can you help?
Ext.define('EAM.custom.external_wsjobs', {
extend : 'EAM.custom.AbstractExtensibleFramework',
getSelectors : function () {
var me = this;
return {
'[extensibleFramework] [tabName=ACK][isTabView=true]' : {
afterloaddata : function () {
var vFormPanel = EAM.Utils.getCurrentTab().getFormPanel();
var vAct2 = '10 - Mechanical';
vFormPanel.setFldValue('activity', vAct2, true);
console.log('afterloaddata');
}
}
}
}
});
Regards
Rui