Forum Discussion
RobDessureault
OneStream Employee
4 years agoDashboard Extender Rules - GetUserState / SetUserState Setup / Examples
We would like to get the POV that a user set in a Dashboard (through Form Templates) and apply it to each other dashboards that they go into. We use to call this a "Sticky POV".
Currently, dashboar...
TT
1 year agoNew Contributor III
How do we reset the userState?
We are able to use GetUserState and SetUserState , but the next time- GetUserState is triggered, it does not pick the latest parameters , but uses the last time, it was used.
We are trying something like below but getting an error.
"Tr_wfName","Tr_wfScenario" and "Tr_wfTime" are parameters defined in the dashboard.
BRApi.State.SetUserState(si, false, ClientModuleType.Windows,"","","Tr_wfName","", "", null);
BRApi.State.SetUserState(si, false, ClientModuleType.Windows,"","","Tr_wfScenario","", "", null);
BRApi.State.SetUserState(si, false, ClientModuleType.Windows,"","","Tr_wfTime","", "", null);
- ckattookaran1 year agoValued Contributor
You need to pass the value, not the parameter, also you need at least one key to get it back.
Related Content
- 5 months ago
- 2 years ago