2005 IR Help Posted September 2, 2006 Share Posted September 2, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now