How to refresh List View

snowuser111
Kilo Guru

How do I refresh the List view , every time I need to refresh manually in order to see the changes/updates by clicking 'Refresh List'.

tried all community answers and servicenow guru but no luck.

Is it to be done from Client script or BR ?

Anyone can help please.

6 REPLIES 6

Mike Allen
Mega Sage

List View is relatively static.   You can push the breadcrumb and it will refresh it, but programatically?   Maybe you could put a timer in your module?   Or create your own UI page that has the header set: ajax - Refresh HTML Page in Browser Automatically on Timer - Every 15 Min - Stack Overflow


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Thanks for the links. I already tried   but my requirement was when a particular field changes in List view then the whole list should refresh.


BR and Client script not working


Write a client script "oncelledit" for the cell on whose change you want to refresh



script:



  GlideList2.get(id).setFilterAndRefresh('');




id is the id of your list


-Anurag