tag:blogger.com,1999:blog-14521551.post112975869710308276..comments2024-01-01T04:30:26.017-08:00Comments on BIRT World: BIRT ExamplesPipebaumhttp://www.blogger.com/profile/03537553362087737960noreply@blogger.comBlogger134125tag:blogger.com,1999:blog-14521551.post-51451731028618375172014-02-23T21:41:52.186-08:002014-02-23T21:41:52.186-08:00hi,
i have details for a particular day.
and i kn...hi,<br /> i have details for a particular day.<br />and i know how to create BIRT report for it. but now i wanna create the same report for bulk of data (say from 1st jan 2014 to 1st feb 2014)<br /><br />will you plz guide me regarding this...?<br />it there any method by which i can apply loop over the complete birt report..<br /><br />shubhunoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-79146481436117177062013-12-18T09:38:21.050-08:002013-12-18T09:38:21.050-08:00Hi Jason,
Is there any way of dynamically changin...Hi Jason,<br /><br />Is there any way of dynamically changing the contents of the report (In my case need to customize few reports images) based on user preferences.<br /><br />I have standard rptdesign file which includes links to shared resources folder which contain images for default reports.<br /><br />I am setting EngineConfig with default report images path through setResourcePath. Before the design file is passed to the report engine, I manually change the image path, traversing through the designElementHandle and setting the customized absolute iamge path for ImageHandle.<br /><br />I see below exception during report generation.<br /><br />18-Dec-2013 17:33:41 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doRun<br />SEVERE: An error happened while running the report. Cause:<br />org.mozilla.javascript.EvaluatorException: illegal character (#1)<br /> at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)<br /> at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96)<br /> at org.mozilla.javascript.Parser.addError(Parser.java:146)<br /><br /><br />Is there any way i can override the resourcePath for which ever image i wishAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-17773417849645032272010-10-12T21:55:57.410-07:002010-10-12T21:55:57.410-07:00Is there any way we can support multi value list b...Is there any way we can support multi value list box in BIRT Query?Justinhttp://www.wpcStylePuzzles.comnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-61010214134042340972010-09-17T09:10:42.800-07:002010-09-17T09:10:42.800-07:00What version of BIRT are you using? Do you have t...What version of BIRT are you using? Do you have the layout set to fixed or auto?Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-64537813044301512162010-09-17T00:28:53.690-07:002010-09-17T00:28:53.690-07:00Hi there. i have plenty of fields in the table. wh...Hi there. i have plenty of fields in the table. when i try to open in report as html format it is giving nice look with.when i done with pdf format , the fields are getting merged and collapsed. how to avoid this ?ESWAR-SVCCAMhttps://www.blogger.com/profile/01301353588139103586noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-53423945189773623762010-03-04T10:10:40.113-08:002010-03-04T10:10:40.113-08:00Hi jason,
I sent you the design file via mail.
C...Hi jason,<br /><br />I sent you the design file via mail.<br /><br />Could you please check if something is wrong ???Unknownhttps://www.blogger.com/profile/18105268570435913621noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-52103779189468872942010-03-04T06:50:08.141-08:002010-03-04T06:50:08.141-08:00Can you send me the report design at:
jasonweather...Can you send me the report design at:<br />jasonweathersby at windstream dot net?<br /><br />JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-27514808020926873472010-03-03T20:54:26.541-08:002010-03-03T20:54:26.541-08:00Hi,
I have deployed BIRT report after generating...Hi, <br /><br />I have deployed BIRT report after generating it through Report Engine API.<br /><br />But while creating the Report , i am getting the following error :<br /><br />Line Number:1 Error Code:Error.XMLParserException.SAX_ERROR Exception:org.xml.sax.SAXParseException: Content is not allowed in prolog. Message:SAX detected an error with the basic XML syntax of the file. <br /><br /><br />Error.DesignFileException.INVALID_XML - 2 errors found! <br />1.) ( line = 1, tag = null) org.eclipse.birt.report.model.util.XMLParserException (code = Error.XMLParserException.SAX_ERROR, message : Line Number:1 Error Code:Error.XMLParserException.SAX_ERROR Exception:org.xml.sax.SAXParseException: Content is not allowed in prolog. Message:SAX detected an error with the basic XML syntax of the file. ) <br />2.) ( line = 1) org.xml.sax.SAXParseException (message : Content is not allowed in prolog.) <br /><br />I have seen the same error posted at different sites but with no solutions replied....<br /><br />Could some one help me out , How to resolve this issue ?<br />ThanksUnknownhttps://www.blogger.com/profile/18105268570435913621noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-90265256494839868242009-12-23T09:40:33.415-08:002009-12-23T09:40:33.415-08:00Good to read. It would be good if you could post ...Good to read. It would be good if you could post your emitter to birt-exchange dev share. It sounds like a great example.Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-29503014760881431862009-12-23T07:52:36.505-08:002009-12-23T07:52:36.505-08:00Jason,
Thanks for offering to review my issue. I w...Jason,<br />Thanks for offering to review my issue. I was finally able to resolve this issue in the startData(...) method of the emitter. I have successfully tested this approach.<br /><br />private void turnOffSuppresedDuplicates(IDataContent data)<br />{<br />DataItemDesign dataItem = (DataItemDesign) data.getGenerateBy();<br />if(dataItem instanceof DataItemDesign)<br />{<br />if(dataItem.getSuppressDuplicate())<br />{<br />dataItem.setSuppressDuplicate(false);<br />}<br />}<br />}arthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-45738086950691113602009-12-21T17:09:17.703-08:002009-12-21T17:09:17.703-08:00Jason,
Sent - thanksJason,<br />Sent - thanksarthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-87121093159651486452009-12-21T13:37:38.361-08:002009-12-21T13:37:38.361-08:00Can you build a sample report that shows the issue...Can you build a sample report that shows the issue and email it to me?Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-63080759561377331062009-12-21T13:16:08.806-08:002009-12-21T13:16:08.806-08:00Yes I am running the report using the emitter that...Yes I am running the report using the emitter that i mentioned above. I have literally tried everything i know, and the data is still missing.<br /><br />thanksarthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-59883815351590328152009-12-21T13:13:32.725-08:002009-12-21T13:13:32.725-08:00I am using the xml emitter downloaded from the fol...I am using the xml emitter downloaded from the following site.<br />http://www.actuate.com/download/birt/contributions/birt2.2.1/org.eclipse.birt.report.engine.emitter.xml.ziparthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-33610035734968103682009-12-21T12:07:04.980-08:002009-12-21T12:07:04.980-08:00What XML Emitter are you using?
Are you re running...What XML Emitter are you using?<br />Are you re running the report for the xml output?Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-9260195993521124712009-12-18T14:09:07.672-08:002009-12-18T14:09:07.672-08:00My columns have duplicate suppression set to true ...My columns have duplicate suppression set to true for grouped columns, but i do not want that for xml output.arthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-64892864580109588742009-12-18T14:08:10.489-08:002009-12-18T14:08:10.489-08:00Actually, i am trying to show data that has duplic...Actually, i am trying to show data that has duplicate suppression for xml output. I am trying to reverse duplicate suppress (set it false) so my data will show up in the xml output.arthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-51405189633189699852009-12-18T13:42:17.643-08:002009-12-18T13:42:17.643-08:00I am not sure what you are trying to do. Are you ...I am not sure what you are trying to do. Are you trying to hide data in a data extraction task? If so you may want to look at developing your data extraction extension.<br />org.eclipse.birt.report.engine.dataExtractionJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-51469205259922928802009-12-18T12:55:34.252-08:002009-12-18T12:55:34.252-08:00I was finally able to get the TableHandle in the X...I was finally able to get the TableHandle in the XMLReportEmitter, and change it at least based on the output in the console, but i am still missing my data. I am either doing something wrong or this cannot be done to the report document. The Integrating and Extending book says you can access the report document items, but i guess you cannot change those items on the fly. However, you can modify the the report design, but before the report document is generated? Please let me know so I know.<br /><br />Thanksarthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-65156371421542640412009-12-18T11:52:57.394-08:002009-12-18T11:52:57.394-08:00The suppressed data is still apart of the report d...The suppressed data is still apart of the report docoument because i can see it in the extraction using the IDataExtractionTask, and i can see the report design inside the report document object - i am stumpped on how to make the data show up in the xml.arthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-67719044355238235692009-12-18T11:44:14.369-08:002009-12-18T11:44:14.369-08:00Jason,
Thanks for the information. However, can I ...Jason,<br />Thanks for the information. However, can I reverse that during the time when I generate the XML report using the Report Document? The problem is that (using the xml emitter downloaded from Birt-exchange site) the data is missing from the xml documents because of the duplicate suppression. so some of my records where the grouping is the same are missing the data because of suppression. I would like to reverse it for xml output so i can get all of the data, but i am unclear how to do that and i have tried everything and nothing has worked. in fact i am not even sure it can be done??? Ideas?<br /><br />Thanksarthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-17973357062622219822009-12-18T11:04:38.761-08:002009-12-18T11:04:38.761-08:00If you use code like:
TableHandle table = desi...If you use code like:<br /><br /> TableHandle table = designFactory.newTableItem( "table", 3 );<br /> <br />//add data elements and bind <br />//dataset. Add computed columns<br /><br />You should be able to suppress duplicates like:<br /> ColumnHandle ch2 = (ColumnHandle)table.getColumns().get(1);<br /> ch2.setSuppressDuplicates(true);Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-61357012929683989852009-12-18T05:39:27.222-08:002009-12-18T05:39:27.222-08:00I have tried all i can think of and actually see t...I have tried all i can think of and actually see that the data is still in the report document because i can see the column data which shows the suppressed duplicate information, so i am assuming that it is during the report generation which suppresses the duplicates based on the report design. I have tried the following code but i am still missing the data. I can see that the properties are changed in my print statements, but still missing data. Please help with some direction. Thanks<br /><br />DesignElementHandle d = super.document.getReportDesign().findElement("dataTable");<br /> <br />TableHandle t = (TableHandle) d;<br />SlotHandle columnSlot = t.getColumns();<br />int count = columnSlot.getCount();<br />for(int i = 0; i< count; i++)<br />{<br />DesignElementHandle columnElement = columnSlot.get(i);<br /> <br />System.out.println("columnElement " + columnElement.getProperty("suppressDuplicates"));<br /> <br />columnElement.setProperty("suppressDuplicates", "false");<br /> <br />System.out.println("columnElement " + columnElement.getProperty("suppressDuplicates"));<br /> <br />}arthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-18654252313549762282009-12-17T14:03:16.576-08:002009-12-17T14:03:16.576-08:00I need to turn off suppressduplicates for columns ...I need to turn off suppressduplicates for columns which are grouped when i am writing out the xml output. I think the emitter is too late to do this so i am trying to do this when i generate the report output stream from the report document tasks. Is this correct and if so I can see in the debugger the objects with the suppressduplicates of true, but i cannot seem to figure out what object to extract and what object i use the. Do i use the IDataExtractionTask or the IReportDocument? ideasarthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-59991555553496696162009-11-24T13:11:08.010-08:002009-11-24T13:11:08.010-08:00Problem solved. png data was truncated because of ...Problem solved. png data was truncated because of my buffer size hard coded value. After making dynamic based on inputstream all is well. Just forgot to change the hard code value to a dyn valuearthurjhttps://www.blogger.com/profile/01933066171233185349noreply@blogger.com