Best Practice to Refresh/List-view Data in Redwood Fragments — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Best Practice to Refresh/List-view Data in Redwood Fragments

edited May 16, 2025 5:36PM in Sales 8 comments

Summary:

List View Data Update isn't rendering after executing a Smart Action ( without a page refresh ).

I tried leveraging the Event Listener: accountsOnAfterSmartActionExecutedEventListener

Sample code:

_____________________________v1: Working

async run(context, { previous, event }) {

const { $layout, $base, $extension, $responsive, $user } = context;

// Check if Run Assignment is Executed

if (event.action.UserActionName === "ActionName" ) {

window.location.reload(true); //Page reload

}

return previous;

__________________________

Q: Instead of using window.location.reload(true) - Working Version. Is there any alternative / best practice? e.g. documentation on using refreshParent OR utils/contextHelper?

Define ([   'vx/oracle_cx_fragmentsUI/ui/self/resources/js/utils/contextHelper' ], (ContextHelper) => { ContextHelper.refreshView(<resourcename here>);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!