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.




  • product_John
    product_John Domo Employee

    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 Apps
  • product_John
    product_John Domo Employee

    @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 Apps
  • Hey @product_John - I'd love to help test that out! Just let me know when it's ready to go ?

This discussion has been closed.