Have error when clone Data Table from Instance

Khiem
Kilo Contributor

I'm new Service Now development.I've clone Data Table from Instance but when I add it to my page,It have error(in picture) .i don't know why it error?Please help me.

1 ACCEPTED SOLUTION

Shambhu5
Kilo Guru

Gotcha!

I doubted that. I think you are using a custom application in a scoped manner. And in which scope have you cloned the Widget? Here might be the trick hiding. 

Or else, check for the display value is true/false in your custom table.

Please mark my answer as Correct/Helpful if that helped you.

Regards,
Vishrut

 

View solution in original post

8 REPLIES 8

Shambhu5
Kilo Guru

Hi Khiem,

It seems on server side that you are not able to get get values form the table (which will be dynamic) as shown in your "Error log line 7". For this to work you will have to use Instance Option (option schema), to provide Table name, configure filtered list and set appearance of you search result.

Please find link for this widget: Data table from Instance Definition

Let me guide you to create Inctance option:

1. You clone the widget and add it to your page

2. Now click on Edit button  (pencil icon)

3. Instance Option dialog will get open

4. Fill all the values such as table, filter, fields, etc

5. Save it

Now you will be able to see your filtered query, as I have configured for Change. Please find below image:

find_real_file.png

Please mark my answer as Correct/Helpful if that helped you anyhow.

Regards,
Vishrut
find_real_file.png

 

Khiem
Kilo Contributor

I've followed your step,but when I save it and then I click preview,It is the same error. I clone the widget,add to my page,edit it as way I edit data table from instance definition,then I click save... :(((

Shambhu5
Kilo Guru

Hi Khiem,

I just tried it, and it did worked again for me. Currently, which version are you using?

The list should also get displayed in Edit view (where you add containers), as seen in my last post image. Is that showing you properly?

Another way,go through Service Portal > Portals > click on your Portal name > click on Try It (first you need to add your page in Homepage field of Portal), and check if same issue persists.

Also, can you please share your screen-shot of Instance option, as what you have defined in that I want to see.

- Vishrut

Khiem
Kilo Contributor

find_real_file.pngHere is my option, I try your way : click try it in portals.But the same error.

Table display here is default Data Tablefind_real_file.png