asder99 Posted November 11, 2010 Share Posted November 11, 2010 Hi!I've got a problem with a query. The original query is this:Select id, name, descriptionfrom table_01where name like '%roger%'I need to use this query in iReport, but "roger" should be a variable.So I write:Select id, name, descriptionfrom table_01where name like '%$P{px_name}%'But it doesn't work.Where can I find a guide to insert correctly an iReport variable in a query? Thanks! Link to comment Share on other sites More sharing options...
mpetek Posted November 11, 2010 Share Posted November 11, 2010 Try the $P!{parameter_name} syntax, this will pass the parameter value directly.regards Link to comment Share on other sites More sharing options...
asder99 Posted November 11, 2010 Author Share Posted November 11, 2010 It works, thanks a lot! But, just for information, what does "$P{parameter_name}" (without exclamation mark) pass? 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