Widget not working after cloning in scoped application

Sagar39
Kilo Contributor

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.

7 REPLIES 7

HD4
Kilo Expert

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.

Sriram6
Kilo Contributor

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?

Claudia Cruz
ServiceNow Employee
ServiceNow Employee

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

It did not work for me. Any other work around??