UI Builder REFRESH Data Resource
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 03:23 AM
Hi
I have updated a copy of the “Record Default” page to display some SLA data, this data displays correctly as intended.
I have also added a refresh button using a “Button Iconic” component and the “out of the box” REFRESH Events function, however, even though the data is displayed correctly, clicking on the button does not refresh the data.
Does anyone have any idea why this doesn’t work?
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 04:31 AM
Hi @Buddle
Have you tried adding an info message when button clicked to se if the button works?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 09:06 AM
Hi
Just tried that, the info message works fine on the same button, but still not refreshing the data.
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 10:07 PM - edited 03-04-2024 10:08 PM
Hi @Buddle
For refreshing Dada Resource you could use UI Builder api
Eg. api.data.evam_mytasks.refresh();
Here evam_mytasks is data resource name. You can replace it with your Data Source name.
You can create one client script and call this script on some button click this will referesh data resource for you.
For more information check - https://docs.servicenow.com/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_referenc...
Do give a thumbs up if this helps.
Regards,
Akshay Gupta