Jump to content
We've recently updated our Privacy Statement, available here ×

andfedotov

Members
  • Posts

    62
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by andfedotov

  1. 3.5.1 has a new feature called List Component. As there\'s a lack of information about it so far I\'m posting the way I made working with Xml Datasource. Hope it might help somebody! Datasource select expression is: /A/B
  2. The other way to do it is the new feature that comes with 3.5.1 version called "List Component". It'll make the job done in your case. Look at the attachments Datasource select expression is: /A/B
  3. Hi! 1. As I understood from your xml data source you probably need to consider changing it a bit because you might have different number of C element occurrences... Will this one work for you? I attached it as data1.xml file <?xml version="1.0" encoding="UTF-8"?> <A id="tt"> <B id="Monday"> <C> <D>2009-03-04</D> <E>502</E> </C> <C> <D>2009-03-04</D> <E>502</E> </C> <C id="kk"> <D>2009-03-04</D> <E>502</E> </C> <C id="ii"> <D>2009-03-04</D> <E>502</E> </C> </B> <B id="tuesday"> <C> <D>2008-03-04</D> <E>502</E> </C> <C> <D>2008-02-04</D> <E>502</E> </C> <C id="kk2"> <D>2008-01-04</D> <E>502</E> </C> <C id="ii2"> <D>2009-03-06</D> <E>502</E> </C> </B> </A> 2. You need to create Master report where you'll be iterating over days of the week (element B) and include Subreport where you'll be iterating over all C's that you have in this day I provided a master's datasource to the subreport with this expression: ((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).dataSource("/A/B[@id="+$F{WeekDay}.toString()+"]/C") Note: this will work only in case your B element have different id's cause a subreport's datasource rely on uniqueness of B element Hope this will help! Regards, Andriy
  4. Thank you for a valuable information. I'll add my 5 cents in order to not confuse others. sf should be without "-", like ((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).dataSource("/TradeData/TimeIntervals/TimeInterval") Post Edited by andfedotov at 05/09/2009 18:40
  5. I have the same problem with lines: Code:getDefaultFont(); getFontIndex(defaultFont);This methods belonged to class JRBaseReport, but in the newer version there's one...
  6. Hello! I've met the same problem with using virtializer when exporting report to the xls format. Could you please tell me if this bug was fixed? Actually it's not so easy task to remove using virtualizer for xls reports in our system... Thanks in advance!
×
×
  • Create New...