Hello,
We have an AppSheet app of low/medium complexity using a Google Sheets backend, and I’ve been setting up some report generation buttons using the pattern I’ve seen recommended:
- Hidden column in table (e.g. “Action”) holds a placeholder string, e.g. “idle”
- Action triggered from button click changes the column value to e.g. “run_report”
- Automation detects change, resets column to idle value, and generates report
So far, this is working the first time the button is clicked for a row. I can see the “Action” column value change, the report is generated, and the value in the backend table is reset. However, the value in the web client is not being reset, even after manual sync (column is temporarily visible so I can monitor this). The issue with this is that, if the button is clicked again for that same column, the automation is not triggered (I assume because it is not seen as a field change). I have confirmed this using the automation monitoring page for the app.
However, if I refresh the browser page itself, everything appears to update, the correct (“idle”) value is shown in the table, and clicking the action button triggers the automation again. I have tried this in both Firefox and Chrome, as well as a Firefox private window, and the behavior is the same in all. I have also tried turning on/off “Delayed Sync” and “Automatic Updates” in the app settings, in all possible combinations, and this has no effects, nor does a manual sync. Only refreshing the browser page forces an actual update.
Has anyone else observed this behavior? Does anyone have any ideas on a solution or workaround (other than the obvious – telling users to refresh the browser after they generate a report)? Thanks in advance for any help.