AetCatalogTaskHelper Undefined,May be missing global qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 03:20 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 03:59 AM
In the Catalog Item, where you are calling this script, add global. in front of the name
new global.AetCatalogTaskHelper().getClosedCanceledText()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 05:01 AM
I tried giving the above suggested script but it didnot work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 09:22 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 09:26 AM
Yes I have checked accessible form is set to “All application scope” and it has one access control in its related list