Hi,
I have written an ExtensibleFramework rule to protect some fields based on status of workorder, I have read a bit of documentation from Infor Knwoledge base, once I search work order and then click on one of the workorder from record view in left pan, then based of its state it shall make equipment and location as protective.
Ext.define('EAM.custom.external_wswreq', {
extend: 'EAM.custom.AbstractExtensibleFramework',
getSelectors: function() {
var me = this,
return {
'[extensibleFramework] [tabName=HDR][isTabView=true]': {
afterloadrecord :function() {
console.log("Checked");
var vFormPanel = EAM.Utils.getCurrentTab().getFormPanel();
vWoStatus = vFormPanel.getFldValue('workorderstatus');
console.log("vWoStatus:",vWoStatus);
if (vWoStatus == 'ASG' || vWoStatus == 'COMP') {
EAM.Builder.setFieldState({'equipment':'protected'},vFormPanel.getForm().getFieldsAndButtons());
EAM.Builder.setFieldState({'location':'protected'},vFormPanel.getForm().getFieldsAndButtons());
}
}
}
}
}
});
I want to make fields equipment and location protective if status is ASG or COMP, but this doesn't seem to work, I also doesn't see any console output.
I am new to this,so some general questions.
Do we always name these extensible rules external_wswreq like external_SCREENNAME
Does Infor has some developer tool like eclipse etc where we can see the available function on press of . and what events are available like afterloadrecord etc
Any debug tool.
Any documentation related to this to setup a developer enviornment, so it is faster development.
Vivek