SDK Apps: Persistent Config
I need a way for SDK Apps to remember admin-specified settings.
For example: Let's say I build an app that shows a bunch of clocks for a bunch of cities around the world. The MajorDomo deploys the app and needs to configure it to show the 5 cities they have offices in.
Right now the only way I can really do this is a bit kludgy - I need to create a Webform with Key/Value pairs, then read that into the app as a dataset. Which of course means that any privileged user can edit the webform and change the config inside the app.
It also means that you can't configure the app from inside the app, since the app has no way to write back to a dataset.
What would be ideal is if I had a function in the domojs library that could store an instance-specific javascript variable, and read it back out on command. Simple stuff like:
var myClocks = domo.getConfig('clocks');
domo.setConfig('clocks', myClocks);
I can then build an interface to configure the app, and just save the config back directly in that instance of the app itself. That config should be carried over when the card is duplicated, but can be left blank if the app is deployed from scratch.
If I need to do user-specific config (like remembering my individual preferences) I should be able to do that with cookies or localStorage, since the app is just running in a subdomained frame, but that's no substitute for app-wide config that should only be managed by certain users.
Comments
-
Thanks @woganmay. Let me discuss with our engineering team and see if we can present a solution that works for your use case.
Product Manager, Domo Apps0 -
@woganmay, I discussed this with our engineering team and at this point in time, the best route to accomplish this is to use a webform that is the source of a dataflow and then the resultant dataset is what powers the app. That will allow an admin to update the webform and lock down access to it, while allowing the dataflow to be visible to all.
We are currently scoping a feature that will allow for dataset write backs and other CRUD commands. Would you be interested in helping us beta that feature when it gets to that stage?
Product Manager, Domo Apps0 -
Hey @product_John - I'd love to help test that out! Just let me know when it's ready to go ?
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 296 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 614 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 729 Beast Mode
- 53 App Studio
- 40 Variables
- 677 Automate
- 173 Apps
- 451 APIs & Domo Developer
- 45 Workflows
- 8 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 121 Manage
- 118 Governance & Security
- Domo Community Gallery
- 32 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive