Jump to content

Set default single value parameter to single query parameter value


Recommended Posts


I am trying to get a default parameter value from database.

First i created two parameters: p_id and p_id_default - both type set to "Single Value".

I've set p_id default value expression to: $P{p_id_default} and p_id_default default value expression to: 5

It works fine, when i run report, both values are set to 5.


Then i've changed p_id_default type to: "Single Select Query" and configured this parameter to fetch 5 from database.

Now p_id_default equals 5, but p_id is NULL.

What is the reason? Is p_id_default value calculated to late? How can i fix it?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...