baggypants Posted May 7, 2009 Share Posted May 7, 2009 I got the new list component working today with a bit of careful thought and without any documentation at all, congratulations on your design.I wrote about it here so I would remember what I did.http://therobinsonfamily.net/?p=30Post Edited by baggypants at 05/07/2009 23:29Post Edited by baggypants at 05/07/2009 23:30 Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted May 8, 2009 Share Posted May 8, 2009 Cool, thanks Baggypants! Yeah, I love the new List component, it's almost a light subreport!I used the List component in this video tutorial:http://jasperforge.org/website/ireportwebsite/IR%20Website/tutorials/Dashboard/Dashboard.htmlI added your article to the iReport wiki:http://jasperforge.org/plugins/mwiki/index.php/IreportThanks again, I hope other people like you will share some documentation in the future!Giulio Link to comment Share on other sites More sharing options...
melkarama Posted August 27, 2009 Share Posted August 27, 2009 Hi all;I am trying to use the List component in a report design that uses an xml data source.The goal is to interate over set of child nodes and display related data.Can you help me please ? Post Edited by melkarama at 08/27/2009 12:05 Link to comment Share on other sites More sharing options...
JSquire Posted September 4, 2009 Share Posted September 4, 2009 @ baggypants - thanks for the link, very helpful @ giulio - list component is great. means I dont have to do a sub-report for minor reasons anymore, brilliant!!! Link to comment Share on other sites More sharing options...
zecas Posted October 12, 2009 Share Posted October 12, 2009 Hi, I really like the list component, but I'm getting some trouble doing one thing: For each record in my main datasource, I'll display a sub-listing, using the list component. On the dataset1 (the one linked to the list component), I've set a variable $V{listTotal} that will SUM a specific dataset1 field, let's say $F{ammount} which is a BigDecimal. It is set to reset at Report level, so for each list iteration (once for each main datasource record) it will start with value 0. Perfect! Now I have a problem ... I need to SUM all those sub-totals, so I can display a TOTAL at the end of the report ... but I can't seem to create a text field that can link to those dataset1.listTotal values ... or better still, I can't find a way to pass the listTotal value to a global SUM variable, so I can display it at summary band, or something ... Any way of doing it? Thanks Link to comment Share on other sites More sharing options...
rvanheel Posted December 21, 2009 Share Posted December 21, 2009 Hi,I am using the javabeans datasource to generate my report. It works fine until it encounters an arraylist. How can I display the items in this arraylist? It contains custom objects with custom properties. I wanted to use the List Component for this, but how do I use it?Can you help?Thanks in advance,Regards, Link to comment Share on other sites More sharing options...
yz37811 Posted January 13, 2010 Share Posted January 13, 2010 Hi Giulio,I tried to mimic your dashboard demo and got a problem with the list component. As soon as I set the dataset to allow more than 1 row, the parent frame height is pushed out by the (number of rows) * the list height.Any idea what I could do wrong?Thanks in advance. Link to comment Share on other sites More sharing options...
clintutan Posted April 15, 2010 Share Posted April 15, 2010 Hi ,I'm getting this error from the List component[ERROR]: Digester.error() Parse Error at line 607 column 47: cvc-complex-type.3.2.2: Attribute 'width' is not allowed to appear in element 'jr:listContents'.org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'width' is not allowed to appear in element 'jr:listContents'. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2680) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2094) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1745) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:239) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152) Link to comment Share on other sites More sharing options...
smileyang Posted May 24, 2011 Share Posted May 24, 2011 Hi,everybody,recently,I work on ireport.List component is a powerful component,but I don't know is my knowledge limited or ireport really exist restrictions.I use a list as dataset,It works.But now I have two list component,I want to put one to antother.For instance,I want to show case info,cover is relate to case info,if their type is the same,cover material will show under specific case info.DataSet1 has a field caseType and DataSet2 has a field coverType.If caseType!=coverType,no need show cover info under the specific case.Unlucky,I could not access caseType in DataSet2.I don't know whether I decribe clear,anybody know the solution,please tell me. Thanks in advance. Link to comment Share on other sites More sharing options...
ermandeep_singh Posted June 15, 2012 Share Posted June 15, 2012 HI everyone,I want to use a scrollable list component.I am able to use simple list but it restricts me to show all the records due to its dimensions(height). So I want to add a scroll so that I can show as much records as per the requirement of the report. Thanks.Mandeep Link to comment Share on other sites More sharing options...
djohnson53 Posted March 6, 2013 Share Posted March 6, 2013 The video mentioned above is now on youTube: Link to comment Share on other sites More sharing options...
djohnson53 Posted March 6, 2013 Share Posted March 6, 2013 This video is now on youTube. I've posted it to an answer below. 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