avatar image
1
How to refetch the parent datalist from a partial
By Created , last editted

As a tip from support, to keep the Page builders peformance up to working standards I have grouped some components into a partial. It's consists of a data container and a data list with property components. Also in each record I have a button to delete a record.

The partial is placed in a datalist (let's call it Datalist A) on the root page. The partial is getting the ID of the datalist record as input. Also when I delete a record in de partial's datalist I can refetch this datalist and the record disappears. So far so good.

But in my use case I need to be able to refetch the data list on the root page (Data list A) after I have deleted one record in the partial.

But from the partials delete action Interaction I don't have access to the root page Datalist A. 

Is there a way to still use these partials, but also to refetch the datalist the partial is placed in?


As a tip from support, to keep the Page builders peformance up to working standards I have grouped some components into a partial. It's consists of a data container and a data list with property components. Also in each record I have a button to delete a record.

The partial is placed in a datalist (let's call it Datalist A) on the root page. The partial is getting the ID of the datalist record as input. Also when I delete a record in de partial's datalist I can refetch this datalist and the record disappears. So far so good.

But in my use case I need to be able to refetch the data list on the root page (Data list A) after I have deleted one record in the partial.

But from the partials delete action Interaction I don't have access to the root page Datalist A. 

Is there a way to still use these partials, but also to refetch the datalist the partial is placed in?

Answers
Sort by:

Please login to reply to the topic.