I have a database field I parse into four jasper reports fields for display. I want to group the four fields into a section of the report with the header, not appear when the fields are empty, and push the text following down if all four fields are present. I'm thinking elementGroup is the way to go, but the fields are appearing separate from each other. Here's what I have so far:
$F{additionalIdentifyingData1} != null</p><p>
&& !"".equals($F{additionalIdentifyingData1})</p><p>
&& $F{additionalIdentifyingData2} != null</p><p>
&& !"".equals($F{additionalIdentifyingData2})</p><p>
&&$F{additionalIdentifyingData3} != null</p><p>
&& !"".equals($F{additionalIdentifyingData3})</p><p>
&&$F{additionalIdentifyingData4} != null</p><p>
&& !"".equals($F{additionalIdentifyingData4})
Physical Description
$F{additionalIdentifyingData1}
$F{additionalIdentifyingData2}
$F{additionalIdentifyingData3}
$F{additionalIdentifyingData4}