xVik Posted April 5, 2007 Share Posted April 5, 2007 i need two modifications of report: with total field in the summary and without i don't think it is good idea to prepare two report templates (wich will differ in only one field), but i cant find any conditions for reports in documentation is it possible to set a condition to show/hide some block of report? ----for example in jsp i will do<c:if test=${showTotal}>Total: ${total}</c:if>maybe this will help to clearify what i meanPost edited by: xVik, at: 2007/04/05 05:22 Link to comment Share on other sites More sharing options...
acer Posted April 5, 2007 Share Posted April 5, 2007 I am no expert but you could try the following create both item/widgets in the report and place them where they are to appear. Use print when expression on each of these widgets. enter an expression that return true when you want to display the widgets and false when you dont want them. this should solve the issue. Link to comment Share on other sites More sharing options...
xVik Posted April 5, 2007 Author Share Posted April 5, 2007 great! just what i need :woohoo: thank you very much! Link to comment Share on other sites More sharing options...
jpasquier Posted April 5, 2007 Share Posted April 5, 2007 You can also set the textfield value property with a condition like this :Code:(condition ? if true : if false)eg:(test==$F{showTOTAL} ? "Total: " + $F{total} : ""«») Link to comment Share on other sites More sharing options...
xVik Posted April 5, 2007 Author Share Posted April 5, 2007 this is for simple cases and i need to hide complete "widgets" but anyway, thanks for advise.. i will remember ;) 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