Widget not working after cloning in scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 06:45 AM
Hello,
Firstly, simple list widget (OOB) - This widget shows table records on portal.
I am cloning simple list widget from Global scope to my custom scope application. The cloned simple list is not showing any records but OOB simple list is working fine. Why?
Secondly, I am new to servicenow, so i want to know if i have to clone every widget for my portal in scoped application or i can directly use OOB widgets directly?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2019 05:37 AM
You only need to clone a widget if you need to customize the functionality, eg. add a custom search box etc.
Cloning a widget from global to app scope sometimes leads to issues with cross scope access to api's that are reserved for the global scope and are not supported in application scope.
You should get an info message on the service portal specifying which function you are calling that is not allowed in application scope, eg. "Function getPlural is not allowed in scope sn_kb_social_qa"
If you have created a portal and an index page in application scope, you may still use widgets from global scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 03:16 PM
Hi,
I tried to clone the simple list widget into HR SERVICE PORTAL.
I got the same error, Function get plural.
I was able to add a table and field to display into the simple list widget. But that appears empty always.
Why is that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 02:31 PM
Yes. I had the same issue. You will need to modify a few line of codes in the Server Script.
options.title = options.title || gp.getPlural(); // replace this line of code with the next two line of code
var gp = gr.getED(); //
options.title = options.title || gp.getPlural();
Let me know if the solution provided works.
Thank you,
Claudia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 02:42 PM
It did not work for me. Any other work around??