Forum Discussion
BenEppel
7 months agoContributor
Losing Dynamic Parameters on Dashboard Refresh
Hello, I would be very grateful if someone could offer some direction on fixing the issue of dynamically generated parameters disappearing on a refresh action. When the dashboard initially lo...
- 5 months ago
I could not resolve the issue and went with a traditional route. Everything worked as expected when i hard coded the parameter, so i believe the issue was with passing in the parameter values on a refresh. The rule would be called twice each refresh, and one of the calls customSubstVars would be empty.
sameburn
OneStream Employee
7 months agoAlso, FYI you don't necessarily need your private function BuildDynamicComponentFromStoredComponent; we can use the GetComponentUsingBasedOnName method from the ComponentCollection itself e.g.
WsDynamicDbrdCompMemberEx dynButton = componentCollection.GetComponentUsingBasedOnName("btn_Stored");
This is the same for any dynamic collection e.g. you are already using this approach with your WsDynamicParameterCollection.
Hope this helps
BenEppel
5 months agoContributor
I could not resolve the issue and went with a traditional route. Everything worked as expected when i hard coded the parameter, so i believe the issue was with passing in the parameter values on a refresh. The rule would be called twice each refresh, and one of the calls customSubstVars would be empty.
Related Content
- 5 months ago