The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Sending Event from Parent Page to Refresh ViewPort Page Collection

SundaramR
Tera Guru

I’m working in UI Builder and have a page with form components, along with a ViewPort that loads a page collection list to display table records.

 

When I update an existing record from the form component, I want the ViewPort’s page collection to refresh automatically after the save is completed.

 

What’s the best way to trigger the ViewPort list refresh from the parent page once the form save event finishes? Has anyone implemented this successfully?

 

Thanks

1 REPLY 1

IronPotato
Mega Sage

Hi @SundaramR , 

 

not sure whether I understand the scenario. Do you have your viewport opened all the time while updating the record on parent page?

 

If so, I would try to reopen the viewport again, but I'm not sure how would that behave if you already have it opened. So, after update trigger viewport load request.

 

Second option I guess is to have record watcher data resource which would monitor updates on your specific records. Once Record Watcher will trigger you can add client script and update timestamp in refresh attribute on list.