- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2020 05:06 AM
Hi.,
I want to call a global UI Script from a scoped application.
But I keep getting the following error.
What's wrong?
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var segmenter = new global.TinySegmenter(); }
Thanks in advance,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2020 05:28 AM
Hi,
You can use ScriptLoader
ScriptLoader.getScripts(['scripts/get_wsdl_url.js'], function() { });
https://developer.servicenow.com/dev.do#!/reference/api/madrid/client/c_ScriptLoaderAPI
If my answer helped you in any way, mark answer as helpful and correct.
Thanks and regards,
Megha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2020 05:11 AM
Hi,
can you share your ui script code?
Thanks
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2020 05:39 AM
Hi,
Thank you for your comment.
UI Script works on Global.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2020 05:21 AM
Hey there, can you confirm if the Global field is checked?
Regards,
Ishita.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2020 05:36 AM
Hi,
Thank you for youd advice.
The checkbox is false because I set the type to 'ALL'.
Regards,