Table Clear not working with Navigation Event

There is a scenario that I am trying to handle, in which a button within a header is pressed, which clears a table on the main page the header is on. It does this by writing an empty dataset to the tag location the table is bound to. When this secondary view is then being navigated to, clicking anywhere should return the user to the main view with the table now empty, however the table is never cleared when the main view comes back up. The table clear does work, though, when the secondary view navigation is not included in the event sequence. Any thoughts on what could be happening, or how to fix?

Could you share the script? This would help in determining what the issue is.

So this must be the script to clear the table data. What about how the table you are trying to clear? I am assuming you have it bound to the dataset tag?

Actions run in parallel. The navigation, happening in the browser, is loading the other view before the script even gets started (scripts run in the gateway).

Use a single script action. Clear the table's tag first. Then trigger the navigation in the script.

1 Like