Jump to content
We've recently updated our Privacy Statement, available here ×

Excess group section showed when no data rows (filtered)


dant

Recommended Posts

1. The DataSource of report have some rows.
2. The report have filer expression and no one row form DS are not matched.
3. The report have not empty detail section.
4. The report have one group section with not empty header.
---

In this case, report ALWAYS SHOW one group band wo detail (field values from last row in DS).
But it must be not showed no one groupdetail because no matched rows!!!
Sorry for my english! :-(

JasperReport 4.5 6.1.0

---

    <field name="IDDAZS" class="java.lang.Integer"/>
    <field name="DTW" class="java.util.Date"/>
    <field name="DBFULL" class="java.lang.Double"/>


    <sortField name="IDDAZS" order="Ascending"/>
    <sortField name="DTW" order="Ascending"/>

    <filterExpression><![CDATA[new Boolean(false)]]></filterExpression>

    <group name="AZS">
        <groupExpression><![CDATA[$F{IDDAZS}]]></groupExpression>
        <groupHeader>
            <band height="13">...some text fields...</band>
        </groupHeader>
    </group>
    <detail>
        <band height="13" splitType="Stretch">... some text fields...</band>
    </detail>

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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