spiker_bang Posted February 2, 2012 Share Posted February 2, 2012 Hi,Is it possible to create generic jrxml instead of individual jrxml files?Ex :(Part of jrxml file)<parameter name="ageParam" class="java.math.BigDecimal"/><queryString><![CDATA[select * from employee where sal > 20000 and age > $P{ageParam}]]></queryString>assume here ageParam :25If I use this jrxml file, we can use this only for different age'sinstead of this, is it possile to use like1)<parameter name="queryParam" class="java.lang.String"/><queryString><![CDATA[$P{queryParam}]]></queryString>assume here queryParam : select * from employee where sal > 20000 and age > 25or2)<parameter name="selectValue" class="java.lang.String"/><parameter name="fromValue" class="java.lang.String"/><parameter name="whereValue" class="java.lang.String"/><queryString><![CDATA[select $P{fromValue} from $P{fromValue} where $P{whereValue}]]></queryString>assume here selectValue : * or name,sal,age,desig,bufromValue : employeewhereValue : sal > 20000 and age >25 Is it possible to create dynamic templates then static ones, which can be possible with cristal reports?? 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