Jump to content
Changes to the Jaspersoft community edition download ×

Extra conditional line of detail


2004 IR Help

Recommended Posts

By: bludginozzie - bludginozzie

Extra conditional line of detail

2005-08-12 18:53

I have been trying to get a report to produce a second special detail line and have had no success. I am hoping someone with more expierence can help me. I have outlined my sample report below and it all seems pretty easy, with the exception of the special "On Backorder" line. Obviously I only want this line to appear for items that are on backorder, however I cannot figure out how to do this. Does anyone know if this possible in jasper reports and if so how?

 

<code>

Packaging Slip 1

-----------------------------------------------------------------------------------------

 

+---- Customer Name Company Name

| Cust Address Line 1 Company Address Line 1

| Cust Address Line 2 Company Address Line 2

groupHeader-| Cust Country Company Country

| ==============================================================

| Code Description Qty Price Total

+---- ==============================================================

| 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

detail------| 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

+---- ==============================================================

groupFooter-| 13 $29.43

+---- ==============================================================

 

 

Packaging Slip 2

-----------------------------------------------------------------------------------------

+---- Customer Name Company Name

| Cust Address Line 1 Company Address Line 1

| Cust Address Line 2 Company Address Line 2

groupHeader-| Cust Country Company Country

| ==============================================================

| Code Description Qty Price Total

+---- ==============================================================

| XX01 This is product description 2 $2.99 $5.98

| -> On Backorder. Expected delivery date 29 Aug 2005

| AB21 This is product description 1 $1.98 $1.98

| CD32 This is product description 1 $8.50 $8.50

detail------| Z21A This is product description 2 $0.50 $1.00

| 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

+---- ==============================================================

groupFooter-| 13 $29.43

+---- ==============================================================

</code>

 

 

 

 

By: jorge - sirion_oef

RE: Extra conditional line of detail

2005-08-13 15:22

what is the condition for show 'on backorder' line?

 

if 'on backorder' is show, the normal data is hiden and viceversa?

 

 

 

 

By: bludginozzie - bludginozzie

RE: Extra conditional line of detail

2005-08-14 15:47

The "On Backorder" line will not normally display. It will only display for very few detail items. 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>

 

Any ideas?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...