I'm trying to build a Birt report which has a table element and a list as a table row. The data source I'm using is an xml file. The structure of the file reminds the following
<invoice>
<orders>
<order>
<order_no>1<order_no>
<total_price>43</total_price>
<items>
<item name="name1" order_no="1"/>
<item name="name2" order_no="1"/>
</items>
</order>
<order>
<order_no>2<order_no>
<total_price>52</total_price>
<items>
<item name="name3" order_no="2"/>
<item name="name4" order_no="2"/>
</items>
</order>
</orders>
</invoice>
where item elements have an attribute, which I use to be able to filter items by their parent. I have separate datasets for both orders and items, and the dynamic text for the inner list (items) looks something like
if(row["order_no"]==row._outer["order_no"]){
row["name"];
}
The result is almost what I need, except for the fact that there are unnecessary empty lines in each outer table row which seem to be equal to the number of the total rows in outer table. The table looks something like this:
-------------------
|order|description|
-------------------
| 1 |price: 43 |
| |name1 |
| |name2 |
| | |
-------------------
| 2 |price: 52 |
| | |
| |name3 |
| |name4 |
-------------------
This is a gross simplification of the table I have, which has much more rows and much more empty lines. Would anybody know how to address this issue?