Jump to content

REPORT_PARAMETERS_MAP in a query


Browndog

Recommended Posts

How do I use values from REPORT_PARAMETERS_MAP SQL in an sql query?

 

This is what I want to do:

 

<queryString>

<![CDATA[sELECT *

FROM shiftReport

WHERE shiftDate = $P{REPORT_PARAMETERS_MAP}.get("startDate")

]]>

</queryString>

 

Is there a way this can be done?

 

I tried to assign a variable to this value then put the varible in the query, but it seems to me that the query is being run before the variable has been assigned.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Yeah I tried that but it seems it runs the query before it assigns the default value to the parameter. I'm now running the query in my swing app and passing on the resultset. The only disadvantage I can see in this is; I'm using netbeans plugin and I can't use the preview with this method. But otherwise I'm happy :).
Link to comment
Share on other sites

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...