Jump to content
Changes to the Jaspersoft community edition download ×

sub datasource for sub report


2005 IR Help

Recommended Posts

By: HSL - lhshyong

sub datasource for sub report

2005-08-13 04:12

Hi all:

 

I facing some problem here, hope you all give some comment.

 

here is my xml source

 

<stock>

<book>

<title></title>

<price></price>

<author></author>

<author></author>

<author></author>

</book>

<book>

<title></title>

<price></price>

<author></author>

</book>

<book>

<title></title>

<price></price>

<author></author>

<author></author>

</book>

</stock>

 

I create datasource for my master report with

mysource = new JRXmlDataSource("source.xml","/stock/book"); and it work.

 

now i try to create sub datasource with mysource.subDatasource("author") but it return JRException.

 

 

what should i put in the subDatasource string ? i try with * , / , // ... all return error..

 

Thanks in advance

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