pbarmak Posted October 21, 2006 Share Posted October 21, 2006 I'm new to iReport and I've just created a new Parameter. I don't see any option to populate that parameter with a database query. I only see fields for the parameter name, class type, "is for prompting", default value expression, and description. How can I add a query into this using iReport? I want a simple dropdown that's populated from my database. Thanks. Link to comment Share on other sites More sharing options...
mortoza Posted October 22, 2006 Share Posted October 22, 2006 HelloYou can use parameter in SQL as $P{paramName} For more details, please have a look at sample .jrxml files in the website.Rgds, Link to comment Share on other sites More sharing options...
villy80 Posted October 23, 2006 Share Posted October 23, 2006 Hi! The correct sintax to put SQL in a parameter is $P!{paramName} bye Will Link to comment Share on other sites More sharing options...
pbarmak Posted October 23, 2006 Author Share Posted October 23, 2006 Not sure the question was clear enough. My goal is not to put a parameter inside a SQL statement. The goal is to POPULATE the parameter with data from a SQL statement. I would want a QueryString within the definition of the parameter so it creates a dropdown with the data from that QueryString. Does that make sense? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now