Module having "List of records" returns blank page if there is no data in table

Kaushal283
Kilo Expert

I've created a table and corresponding module named "Settings", now in "Link Type" tab of module, I've linked my table and selected "List of records" in Link type. 

My question is that when there is no data inserted in the table, the module displays blank page instead of displaying "No records to display". Here is the screenshot of blank page displayed when clicked on the module label in servicenow (not in studio).

find_real_file.png

So I can not add new records in the table from here. In order to add records, I've to use studio, which is not preferred way. Instead in all other tables, when there is no record in it, it shows following page and from where I can add new records directly, instead of studio:

find_real_file.png

So what am I missing here? 

1 ACCEPTED SOLUTION

I've resolved this issue. This is a feature and not a bug. Goto List Control of the table for which you are facing this issue. And check whether the option "Omit if empty" is checked or not. If this option is checked, It won't load the empty table and instead show the empty page. 

To get empty table, uncheck it and try again. 

If you can not find the List control for your table in Studio, you will have to create one. To easily create list control, Right click on the list header of the table and goto: Configure -> List Control. 

find_real_file.png

 

Mark this helpful if it solves your problem. Thanks

View solution in original post

12 REPLIES 12

Any updates on this sir?

I just got some time to look into your issue. Can you wake up your instance so that I can hop and look into this?

Yes I just did it. You can now access it. Thanks

Thanks. I'm able to reproduce the issue and don't see any reason on why this is happening. I'm assuming this might be related to instance specific issue. Are you able to reproduce this on any other instance?

 

-Pradeep Sharma

Yes, actually I've an vendor instance where I had installed this application previously and the same issue is appearing there. Therefore I've installed the same app in my dev instance (PID) but still it shows same blank page.