Can scoped script includes be extended to other scoped apps?

davidarbour
Mega Contributor

Can a script include in scoped app B extend a script include in scoped app A?

10 REPLIES 10

This is what I have tried and able to successfully extend the script include configured in global scope from scoped app



1) Make script include in global scope as "Accessible from all scope"


2) Configure a script include in scoped all, and make sure to provide the namespace prefix while extending the scirpt include in other scope



eg.



var myScopedSI = Class.create();


myScopedSI.prototype = Object.extendsObject(global.ScriptIncludeInGlobalScope, {



Once done, I was able to extend script include in global scope from other scope.



Same principal must get followed between non scope inheritance via extension then.