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!
ThorJensen
2 years agoNew Contributor II
Tom Assuming that your SQL is running inside a data adaptor, and as such here is not related to any BR.
You can simply call a parameter in SQL by referencing it with pipes. I've used used this kind of where clause in the past:
WHERE Source.columnname <= '|!SelectedPeriodEnd_TXM!|')
Here |!SelectedPeriodEnd_TXM!| is my parameter.
Hope this might help.
Best Thor
Related Content
- 2 years ago