The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
OS_Love
1 year agoNew Contributor III
Consolidation
I have created a literal value parameter for entity that I want to refer in my finance rules for calculation.
Can someone share me a code where I can look up values from a parameter I set instead of running a E#Root.base or something.
Running a E#Root.base where txt1='value' is not an option .
Thanks
If you go into a Finance BR and type this in the filter box:
You will find sample code to do that which is this:
Dim sValue As String = BRApi.Dashboards.Parameters.GetLiteralParameterValue(si, isSystemLevel, workspaceIDIfNotInName, combinedWsAndParamName)That should do it.
3 Replies
- T_Kress
OneStream Employee
If you go into a Finance BR and type this in the filter box:
You will find sample code to do that which is this:
Dim sValue As String = BRApi.Dashboards.Parameters.GetLiteralParameterValue(si, isSystemLevel, workspaceIDIfNotInName, combinedWsAndParamName)That should do it.
- KurtMayerContributor
Teresa,
Can you give an example of what a "combinedWsAndParamName" string would look like?
Thanks,
Kurt
- jmohlNew Contributor III
For the "WorkspaceIdIfNotInName" argument, try using args.PrimaryDashboard.WorkspaceId (unless you need to cross workspaces, in which case you'd have to retrieve a different workspace Id). Then you can pass your literal value parameter name into the "combinedWsAndParamName" argument.
Related Content
- 3 years ago
- 3 years ago
- 3 months ago
- 2 years ago