[UI BUILDER/WORKSPACE] Refresh page or ui components instead of data

DJOUL
Tera Contributor

Hi SN Experts,

 

I created a new experience on UI Builder with pills that applies filter on the page (With client scripts and client state parameter when click)

The "Reset Filters" button remove all applied filters.

DJOUL_0-1710923830863.png

The issue :

When those filters a removed, data are reloaded but not the html elements.

 

The solutions i need is a client script code to :

- Hard reload the entire page

- Hard reload the pill list UI component and not only data.

 

Thank you in advance for your help,

Julien.

6 REPLIES 6

Marc Mouries
ServiceNow Employee
ServiceNow Employee

The Pill List component does not really handle dynamic lists. For any dynamic list, I recommend using the repeater component. With the repeater the state of the content will be refreshed when the datasource it is bound to is refreshed. 

IronPotato
Mega Sage

Hi @DJOUL ,

 

create client script with this code:

 

api.helpers.setTimeout(() => {

const window = this.window;

window.location.reload();

})

 

call this client script on the event you need.

 

Hope that helps.