jvway Posted March 10, 2009 Share Posted March 10, 2009 Using iReport 3.1.4 and trying to get a parameter to be entered as the value for a like statement in SQL.So if the where statement is WHERE project.name like $P{proj_id} How is this formatted. The only thing I've seen close in searching for clues on this is '$P{proj_id}%' but this didn't work and neither did any of the other myriad combinations I've tried. So if anyone knows how this is supposed to be formatted I'd appreciate knowing as well.Thanks,JW Link to comment Share on other sites More sharing options...
emitchell Posted March 10, 2009 Share Posted March 10, 2009 I just asked this question last week, and got a good answer: http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=52801 Link to comment Share on other sites More sharing options...
jvway Posted March 10, 2009 Author Share Posted March 10, 2009 Well, yes that worked. Thanks. Sure seemed like I tried that but I guess without the !. A search doesn't reveal you post. What odd forum software this is. Have you noticed that if you do an advanced search it will show you posts in other forums but cannot take you there? Link to comment Share on other sites More sharing options...
dijey Posted March 20, 2018 Share Posted March 20, 2018 Your must use: $P!{my_query} , written about this:https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v60/using-parameters-queriesExampleselect * from PROD where proj like '$!P{proj_id}%' 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