ui builder - reload page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 07:28 AM
Hi all ,
how we can reload a page after clicking a button in UI builder

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 08:35 AM
You can add a GlideForm data resource, then add an Event on Button Click -> Reload.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 06:40 PM
This does not seem to work!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2024 03:07 AM
Just saying 'this does not seem to work' isn't helping us help you. Can you share what you did that isn't working?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 12:57 PM
Hi Mark,
For some context, I'm working with the email composer component on the UI builder which comes on the Draft email record page (table: sys_email_draft). We're working on a functionality where we present users with Now Assist AI responses on the right contextual sidebar in Cards. In those cards, there exists a button "Add to Email Reply" where using helpers.sn_http I make an API call to a custom scripted REST API which finds that draft email and pastes the content of the card onto the email body.
Now on the front end, we don't see the updated draft email unless I reload the page (unlike how we can see updated forms when the values change on the backend).
I've tried the below:
1) helpers.navigate.to but it would always return me to (/now/cwf/agent/)
2) built a UI action and in the client script of the UI action added top.window.location.reload() and then executed this as an event handler "Execute UI action" on button click. But this did not seem to work.
3) Since the email compose component is not linked to a data resource (only requires a sys_id which we get from @context.props.sysId), I tried to link it to a data resource and then refreshed the data resource. That too didn't work.
Any helpful recommendations from you would help tons!
Thanks.