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
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive