Neebie: build a dynamic table with XML - how?

By: patrick kistler - calmacroi
Neebie: build a dynamic table with XML - how?
2006-03-20 23:49
Hi
I'm a neebie to jasperreports/ireport. There is an opportunity to work with xml-data. i just want to create a simple example for a table which has dynamic amount of rows depended on amount of xml-data-rows. does anyone has a
simple example?

i tried to do it with following code:

<report>
<table>
<row>
<cell1>blablabla</cell1>
<cell2>blablabla</cell2>
.....
</row>
<row>
<cell1>42</cell1>
<cell2>test</cell2>
.....
</row>
</table>
</report>

dataset settings:

- datasource expression: /report/table
- field mappings: /row/cell1 , /row/cell2...

whats wrong?

thanx for any help..
regs
patrick
2006 IR Open Dicussion's picture
Joined: Aug 10 2006 - 3:24am
Last seen: 17 years 1 month ago

1 Answer:

try
record path: /report/table/row
field mappings: cell1 , cell2...

hope it'll be helpful
gerbaux's picture
101
Joined: Oct 16 2006 - 12:57am
Last seen: 16 years 11 months ago
Feedback