Getting error "domo.OnDataUpdate is not a function"
Answers
-
You need to use a lowercase o for onDataUpdate.
https://developer.domo.com/docs/guides/handling-data-updates?category=/docs/embed/embed-2
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
That was it. Thanks, @GrantSmith . Although, I do have a follow up. I was able to update the function and run it but for some reason this function does not trigger.
what I am trying to do is to not refresh the app when the underlying dataset updates. This is causing lot of problems when users are updating information and app refreshes in the middle of the update.
But for some reason this function does not trigger. When the dataset updates, it still refreshes the app without executing this function at all. Any potential troubleshooting suggestions?
0 -
domo.onDataUpdate() triggers after the dataset updates. It's not intended to prevent the refresh. So you can react to data changes, but not intercept them.
You may be able to do a work-around by writing to a temporary staging dataset. Then schedule an ETL to move the data.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
I was following this documentation precisely for the reason it mentions that it is a bad user experience if the app refreshes every time the underlying dataset updates.
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Data Connections
- 1.3K Connectors
- 309 Workbench
- 17 Cloud Integrations
- Data & ETL
- 2.3K Magic ETL
- 120 SQL DataFlows
- 666 Datasets
- Visualize & Apps
- 90 App Studio
- 198 Pro-code Components
- 2.6K Charting & Analyzer
- 873 Calculations & Variables (Beast Mode)
- AI & Data science
- 23 Domo AI & AI Chat
- 4 Managing AI
- 18 Jupyter Workspaces
- Automate
- 122 Workflows
- Alerts
- Distribute
- 118 Domo Everywhere
- 284 Reporting
- Manage
- 145 Governance & Security
- 489 APIs
- 11 Add-ins & Plugins
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 118 Community Announcements
- 5K Archive