Set default single value parameter to single query parameter value



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?

k.walkowski's picture
Joined: Feb 3 2017 - 12:48am
Last seen: 10 months 2 days ago

0 Answers:

No answers yet