Users to go to the dashboard, select something in a dropdown, and later go back and have it still be that selection. Users would have their own viewstates
There is no support in the Web Framework for viewstates. In general, the revamped Splunk UI in Splunk 6 does not use viewstates.
If you'd like to persist data in between visits, you have a couple of options:
1. You could send the data to the server and persist it in the user session (wiped on logout or timeout).
2. You could save the data to localStorage (on applicable browsers), which would save it for that machine.
3. You could persist the data to the URL.
4. You could write the data to the user-prefs endpoint or something along those lines.
You could also write to the viewstates API yourself if you wanted to (https://localhost:8089/services/data/ui/viewstates).
We've opened a task to add an example to the Web Framework Toolkit on how to
achieve some level of persistence. We'll update the answer here when it is
Please feel free to share more about your usecase! We'd love to hear what you want to do and what requirements you have. That way, we can improve it in the future.
We have a dashboard that has several charts, with dropdowns such as how the dashboard looks(pie, line, etc), what they are shown by (product, category etc), and timeframe to show.
The end user can then configure the dashboard via the dropdowns to look however they want and it can then be saved the next time they look at it or show it in a presentation.