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...
ckattookaran
4 years agoValued Contributor
You can add a selection changed code to set the user state
BRApi.State.SetUserState(si, False, ClientModuleType.Windows,"","","POV","","Value", Nothing)
Now on the dashboard launch event do a GetUserState
'Get the state value
dim stateValue as string = String.empty
Dim userState As XFUserState = BRApi.State.GetUserState(si, False, ClientModuleType.Windows, String.Empty, String.Empty, stateKey, String.Empty)
If Not userState Is Nothing Then
stateValue = userState.TextValue
End If
and add the value to the modifiedcustomsubstvars.
loadDashboardTaskResult.ModifiedCustomSubstVars.Add("ParamName", stateValue)
Related Content
- 5 months ago
- 2 years ago