datasource Expression

 My xml structure is root/books/book/books/book

I have a subreport A in the main report and i pass the datasource expression as root/books/book. My question is that if i have a subreport B in my first subreport A and I want to pass the same xml as what the subreport A got from the main report..

Could someone please let me know the expression to be used?

I tried.. various options like . , /, /book but nothing seems to work.

Thanks.

pvelan's picture
155
Joined: Oct 18 2011 - 11:00am
Last seen: 11 years 11 months ago

3 Answers:

Were you able to figure this out?  I've done a few XML Data sources with the same XML document being also the sub-report which was passed as a parameter.  It is tricky to get just right, but not impossible.  It's just frustrating that you have to get the exact passing and XQuery correct, otherwise you get blank reports.

frankhassanabad's picture
Joined: Oct 25 2010 - 11:12am
Last seen: 9 years 5 months ago

 Hi,

Currently i am using.. /book and this seems to be working. Things seems to be working little different on the actual server from the ireport preview.

Thanks.

pvelan's picture
155
Joined: Oct 18 2011 - 11:00am
Last seen: 11 years 11 months ago

Great to hear that. Sounds like you were able to solve the problem which is awesome!  Happy reporting.

frankhassanabad's picture
Joined: Oct 25 2010 - 11:12am
Last seen: 9 years 5 months ago
Feedback
randomness