Skip to content
Advertisement

Creating View with parameter [SQL,Pentaho Report Designer]

I have a SQL Query that accepts parameters for filtering report (${p_year, ${p_month}, ${p_comp}) in Pentaho Report Designer.

[In Pentaho Report Designer before using view]

I am trying to create the view to include that query in SQL Server. However, I am not sure this is a correct view or not. [In SQL Server]

After that in Report Designer, I change the code to

However, I don’t know how to add parameter (${p_year}, ${p_month}, ${p_comp}) into the new code. Any idea please advice.

Advertisement

Answer

Your current view seems to correct for me but use JOIN inside the VIEW

And, you would require to call the view with WHEREclause

Or, you would also go with stored procedure where you could pass multiple parameters

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement