We can remove the default formatting on the integer field by adding the attribute format=none on the dictionary.
Before adding a format attribute to the dictionary.
Here is the attribute on dictionary field.
var parentSI = Class.create();
parentSI.prototype = {
initialize: function() {
},
upperCase : function(string){
return string.toUpperCase();
},
type: 'parentSI'
};
Below you can see how childSI Script Include extended parentSIvar childSI = Class.create();
//we need to use Object.extendsObject for extending an existing script include
childSI.prototype = Object.extendsObject(parentSI,{
initialize: function() {
},
callParent : function(string)
{
//calling a method from extended Script Include
return this.upperCase(string);
},
type: 'childSI'
});
var result = new childSI().callParent('servicenow');
gs.log(result);
Output: *** Script: SERVICENOW
Please click here to read more on extending Script Include.