Have constants for app editable by app admins

I'm developing an app where documents are saved for a certain amount of time. Right now I'm doing this by having a constant for NumberOfDays, but that can't be changed during runtime. I would like to make it so the Admin users of the app can simply edit this constant and others from the Admin panel of my app. What's the easiest way to let my Admin users (without Studio Pro access) maintain those app settings / variables from a central place within the app?
1 answers

Maybe you could add an entity which is only accessible / configurable by the administrator. You have to make sure that only 1 object is available of this entity. In this entity you can add an integer attribute (NumberOfDays), which can be edited by the administrator. 


You can retrieve the object everywhere in your app and do logic based on the filled in value of this object.