This is an example of a most basic HxGN EAM Extensibility Framework record, assuming you want this to execute on the Crews screen.
Ext.define('EAM.custom.external_wscrew', {
extend: 'EAM.custom.AbstractExtensibilityFramework',
getSelectors: function() {
return {
// Business logic...
}
}
});
Each HxGN EAM Extensibility Framework record must follow the follow conventions listed in the above code snippet:
-
Ext.define('EAM.custom.<some name you choose>' ...
This defines a 'class' in the ExtJS framework. This is required for the ExtJS / HxGN EAM JavaScript class loading system to properly instantiate your custom JavaScript.
-
extend: 'EAM.custom.AbstractExtensibilityFramework'
This line of code is required for every customer created JavaScript.
-
getSelectors: function() { ... }
This method must be implemented in every customer created JavaScript. It also MUST return a JavaScript object, please see the examples below for how to implement this method.
If you are writing an HxGN EAM Extensibility Framework JavaScript for a screen which has no visible tabs (IE: Issue/Return Parts) use the HDR tab for your selectors.