Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

List Refresh not removing selected records UI Builder?

Kiran Kumar 76
Tera Expert

Hi Experts

 

when i tried to refresh lisT using property tied to list component

 

api.setState('refreshReq', {timestamp:  new Date().getTime()});

 

i see its refreshing list but the selected records stays the same,how can we eliminate selected values on list refresh

 

 

KiranKumar76_1-1751297067489.png

 

3 REPLIES 3

thomaskennedy
Kilo Sage

The list controller has an event handler called Set Highlighted Rows. Try calling that and passing a null.

@thomaskennedy 

 

thanks will check

Syed14
Giga Guru

You can use 'g_list.refresh(1)' function to refresh list of records.