Hey!!
I´m still learning EF and I need to get the class of the WO Equipment to a udfchar field in the WO.
I´m able to get information in the same screen, but in this case needs to came from another one.
I have this code below but something is not right.
Can someone help me?
Ext.define('EAM.custom.external_WSJOBS', {
extend : 'EAM.custom.AbstractExtensibleFramework',
getSelectors : function () {
var me = this;
return {
'[extensibleFramework] [tabName=HDR][isTabView=true] [name=equipment]' : {
blur : function (field, lastValues) {
if (field.getValue() !== lastValues[field.name]) {
var vFormPanel = EAM.Utils.getCurrentTab().getFormPanel();
var vMyuser= EAM.AppData.getUser();
var vMyemp= EAM.Ajax.request({
url: "GRIDDATA",
params: {
SYSTEM_FUNCTION_NAME: "OSOBJA",
USER_FUNCTION_NAME: "OSOBJA",
CURRENT_TAB_NAME: "HDR",
COMPONENT_INFO_TYPE: "DATA_ONLY",
GRID_NAME: "OSOBJA",
MADDON_FILTER_ALIAS_NAME_1: "class",
MADDON_FILTER_OPERATOR_1: "=",
MADDON_FILTER_JOINER_1: "AND",
MADDON_FILTER_SEQNUM_1: 1,
MADDON_FILTER_VALUE_1: vMyuser
}}).responseData.pageData.grid.GRIDRESULT.GRID.DATA[0].equipment;
console.log('blur');
vFormPanel.setFldValue('udfchar01', field.code, true);
}
}
}
}
}
});
Thanks!