Script Includes can extend existing Script Includes to access the methods.
In below example, I will demonstrate how we can we extend an existing Script Include with a simple Script Include.
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 parentSI
var 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.
I have read this post. and collective of post is nice...
ReplyDeleteServiceNow Training in Hyderabad
ServiceNow Training in Ameerpet
ServiceNow Training
ServiceNow Online Training
Thanks for sharing with us such a good information.
ReplyDeleteFull Stack Training in Chennai | Certification | Online Training Course| Full Stack Training in Bangalore | Certification | Online Training Course | Full Stack Training in Hyderabad | Certification | Online Training Course | Full Stack Developer Training in Chennai | Mean Stack Developer Training in Chennai | Full Stack Training | Certification | Full Stack Online Training Course
Very nice article,Thank you..
ReplyDeleteKeep Updating...
Servicenow Developer Online Training
smm panel
ReplyDeleteSmm Panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
SERVİS
TİKTOK HİLE İNDİR
A Dedicated Server is a physical server that's assigned to a single organization.
ReplyDelete