Hi,
I have a template repeater that shows a recipe’s steps as per screenshot below. When in edit mode, the operator is able to delete a step using the X on the right. The X manipulates the SQL table by effectively removing the step at that index and then re-indexing the remaining steps so that they’re sequential again.
The template repeater SQL binding set to not polled, as I don’t want it updating all the time.
The issue I have is that when I delete a row, it doesn’t update to reflect the changes.
How can I perform a refresh (system.db.refresh) on the templateParams dataset after clicking the X?
I don’t want to hard code this by using something like system.gui.getParentWindow(event).rootContainer.getComponent(“group”).getComponent(“Template Repeater”)… etc.
Thanks in advance.
Nick