So, default selections _should_ be saved even if you reload.
Apart from that, there is no good way of solving that with an extension currently. Extensions are sheet based right now so even if you did have one of those extension you would have to place it on all of your sheets which is not really viable.
Usually a lot of these use cases can also be solved with a little bit of data modelling instead and the use of Set Analysis
Thanks for your help Alexander!
In fact, when I imported the app with the default selection and I opened it from the hub, the default selection was here.
But after, I published it, and reloaded the published version from the QMC, the default selection disappeared (I did the test twice).
I need a extension to select
- the language in which all fields labels and titles will be display
- the axis for graphs (year, yearmonth, datehour...) - sadly cyclic group doesn't exists in sense 2.0
The lack of these selections increase dramatically the time to open a sheet and is a criteria of acceptance of the solution.
I don't have time to rewrite the data model and correct all expressions, so I think this solution is the quicker and simple way for my problem for the moment.
If anyone has this kind of extension or the script to do that, it will be really helpful.
I don't have anything on hand but the typical workflow would be something like,
On initial load, select your values and perhaps lock the field.
Set a local variable that selections has been made to avoid re-selecting your values on the next paint cycle.
Perhaps you could use this extension which has support for always a value selected,