Need help,how to trigger 'Data Provider' update after Table Row edit #14584
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @yoyogis In the Table we can do inline editing, but when the row is saved we don't have the option to run any actions. For this scenario you might be better editing a row in a modal or a side panel. Add a button per row in your table With two actions set - update state, and open modal You'll need to add a modal component, and set the action to open it. Then inside your modal, add a form block set to update, and give it the state value where you're storing your row id. In the Form Block's save button action, make sure to add a "refresh data provider" Here's an app-export where you can take a closer look at my work. |
Beta Was this translation helpful? Give feedback.
Hey @yoyogis
In the Table we can do inline editing, but when the row is saved we don't have the option to run any actions. For this scenario you might be better editing a row in a modal or a side panel.
Add a button per row in your table
With two actions set - update state, and open modal
You'll need to add a modal component, and set the action to open it.
Then inside your modal, add a form block set to update, and give it the state value where you're storing your row id.
In the Form Block's save button action, make sure to add a "refresh data provider"
Here's an app-export where you can take a closer look at my work.
14584-export-1727106932183.tar.gz