All;
Is there an easy way to get a description of a code field?
Is there any function that I can call and get the description of a code field?
Any help would be much appreciated.
Thanks,
MJ
function getCodeDesc(vfld){ //here an example with description in vDesc for Fields with Look up values. //from hloyer community.infor.com/.../extensible-framework---get-a-description
let vFormPanel = EAM.Utils.getScreen().getCurrentTab().getFormPanel();let vField=vFormPanel.getFld(vfld);let vParams=vField.prepareParams(vField.validateLOV);let vData=vField.callFieldValidateAjax({params: vParams}).responseData.pageData.grid.GRIDRESULT.GRID.DATA[0];Ext.Object.each(vData, function (a,b) {if (a.toLowerCase().indexOf('des') != -1 && !Ext.isEmpty(b)){const vDesc=b; console.log(vDesc); return vDesc;};});
};
//////////////////////////////////////////////
function getDisplayvalue(vfld){ //example getting description/display value from drop down. let vFormPanel = EAM.Utils.getScreen().getCurrentTab().getFormPanel();let vField=vFormPanel.getFld(vfld);vDesc = vField.getDisplayvalue();return vDesc;};
@tracey-powell Thank you so much.
You're welcome