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
Tom
2 years agoNew Contributor III
Parameter for SQL
When I have a BR, and need to pull in a parameter, I use the following statement or one similar, I create the parameter in a Dashboard.
'Dim scenario As String = BRApi.Dashboards.Parameters.GetLite...
- 2 years ago
Tom - Assume the below is the parameter in the BR
Dim Date As String = BRApi.Dashboards.Parameters.GetLiteralParameterValue(si, False, ParamName) In the SQL You will be calling the String WHERE SQL COL NAME = '" & Date & "'"The ParamName is created in the Dashboard Parameter.
Hope this helps!
Tom
2 years agoNew Contributor III
I currently have the value hardcoded in the SQL, but wanted to create a parameter if possible. Thanks for your help, I really appreciate it.
Krishna
2 years agoValued Contributor
Tom - Assume the below is the parameter in the BR
Dim Date As String = BRApi.Dashboards.Parameters.GetLiteralParameterValue(si, False, ParamName)
In the SQL You will be calling the String
WHERE SQL COL NAME = '" & Date & "'"The ParamName is created in the Dashboard Parameter.
Hope this helps!
- Tom2 years agoNew Contributor III
Krishna,
it worked, I don't understand the syntax
'" & Date & "'Thanks so much for your help, I really appreciate it.
Tom
Related Content
- 2 years ago