AetCatalogTaskHelper Undefined,May be missing global qualifier

ankitapatnaik
Tera Contributor

Hi,

 

I have a scriptinclude AetCatalogTaskHelper, one of my catalog item has referenced to this script include in Global scope,But catalog item is in another scope. Below is the code for script include:
var AetCatalogTaskHelper = class.create();

AetCatalogTaskHelper.prototype = {

initialize : function() {

},

getClosedCanceledText  :function() { ;

 

var cancelText = '';

cancelText = ".........set the info message";

return cancelText ;

}

type: 'AetCatalogTaskHelper'

};

Please suggest me the solution for this error

5 REPLIES 5

Brad Bowman
Kilo Patron
Kilo Patron

In the Catalog Item, where you are calling this script, add global. in front of the name

new global.AetCatalogTaskHelper().getClosedCanceledText()

ankitapatnaik
Tera Contributor

I tried giving the above suggested script but it didnot work

That is literally what the error means.  If your Catalog Item reference qualifier or script is still not calling the Script Include, ensure the Accessible from is set to "All application scopes".  Also check if there are any Access Controls on the Script Include related list.

ankitapatnaik
Tera Contributor

Yes I have checked accessible form is set to “All application scope” and it has one access control in its related list