2004 IR Help Posted August 23, 2006 Share Posted August 23, 2006 By: bludginozzie - bludginozzie conditional detail line 2005-08-24 20:03 I have been trying to get a report to produce a second conditional detail line and have had no success. I have outlined a sample of the detail section of my report below and it all seems pretty easy, with the exception of the special "On Backorder" line. I want this line to appear only for those items that are on backorder, however I cannot figure out how to do this. If I define the height of the detail to include this line then all detail lines appear this high regardsless of wether the item is on back order or not. I have a report field that can be used in a printWhenCondition, but I don't undersand how to implement this. For example <printWhenExpression> <![CDATA[ $F{backorderId} > 0 ? Boolean.TRUE : Boolean.FALSE ]]> </printWhenExpression> +============================================================== | XX01 This is product description 2 $2.99 $5.98 | AB21 This is product description 1 $1.98 $1.98 | CD32 This is product description 1 $8.50 $8.50 | Z21A This is product description 2 $0.50 $1.00 +------> On Backorder. Expected delivery date 29 Aug 2005 | YC43 This is product description 2 $2.99 $5.98 | TMG1 This is product description 4 $0.75 $3.00 | PJED This is product description 1 $2.99 $2.99 +============================================================== Does anyone know if this possible in jasper reports and if so how? 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