Quantcast
Channel: BIRT Exchange Forum Feed
Viewing all 542 articles
Browse latest View live

add Image element to a crosstab aggregation cell in Script

$
0
0
I want to add an image to the aggregation cell of the crosstab if its value is less than zero,
I am not able to write script for this.

Piechart - All slices same size

$
0
0
Hello

I am curretly working on a pie chart. All the values are correct, but I have the problem, that in some cases, all the slices of the pie chart are equally big.

Is there some parameter I'm missing? I have no grouping enabled.

Please see the attached screenshot for more details.

Kind regards

severin

Server side scripting vs client side scripting in BIRT

$
0
0
Hi,

In BIRT is there difference in scripting like server side scripting and client side scripting?
If so, kindly give some references or instances of using it.

how to show table's value in horizontal fashion

$
0
0
In birt report design I am using a table to show data by using its detail row. normally data shown is in vertical fashion
like
column1
value1
value2
value3
.
.
.


like this
but I want to show data like as

column1
value1 value2 value3 value4 value5
value6 value7 value8 . .
. . . . .

etc.


any help ???

Data Set - set Oracle sql array parameter

$
0
0
Hello,

In my data set, I am trying to set an SQL query parameter of type SQL array.

I have a custom type defined in the database(Oracle) and a function that receives and returns a parameter of that type:

create or replace type my_custom_type as table of varchar2(32767);

create or replace function my_function(p_type in my_custom_type) return my_custom_type
as
...
end my_function;


The query that I use in my data set is something like:

select * from table(my_function(?))



I've created the parameter that I want to pass to the query as Java Object type, and for the default value I have the following code:

importPackage(Packages.java.util.logging);

try {

  var conn = DBConnectionUtils.getConnection(); //database connection

  var arrayDescriptor = oracle.sql.ArrayDescriptor.createDescriptor("MY_CUSTOM_TYPE", conn);

  var idsArray = new java.util.Arrays.asList("0,1,2").toArray(); 
  
  var arrayToPass = new oracle.sql.ARRAY(arrayDescriptor, conn, idsArray);

  arrayToPass;

} catch(e) {

  Logger.getAnonymousLogger().info(e);
  
}


The error that I am getting in the console is :

2013-06-04 12:48:41,472 ERROR [STDERR] Jun 4, 2013 12:48:41 PM org.eclipse.birt.data.engine.odaconsumer.PreparedStatement doSetObject( int, Object )
SEVERE: Cannot set the object value (oracle.sql.ARRAY@7ab97e44) to parameter 1.
java.lang.UnsupportedOperationException: IQuery.setObject( int, Object )

The java code for passing an sql array to a PreparedStatement parameter via JDBC works fine. Also, if I use the query with another type of in parameter, varchar2 for example, the reports works fine, the only problem is when I'm trying to set an SQL array.

Birt version - 3.7.1, java - 1.6 and Oracle - 10g.

Any ideeas on how I can make this work?

Regards,
Emil

Birt runAndRender set output image name

$
0
0
Hi, recently I integrated Birt in my web application. For report presentation it is used runAndRender method where i'm able to set output image path with `htmlOptions.setImageDirectory()` before running task.

Is it possible to get impact on produced .png image name?

And also is there a better(faster) way to produce only report image (without serving html which includes image link on file system and correspoding html tags)?

Want to remove birt frame from report

$
0
0
Hi,

I have integrated birt with liferay for showing reports and charts.
I have written code at liferay side for running charts and removed navigation bar and tool bar using eclipse code as shown in attachment red square, but when I am performing drill down birt frame is coming once again which I don't want. Please help in in removing navigation bar and tool bar at birt designer side so that it won't bother me at liferay side....

Image and Chart not exported

$
0
0
Hello Everyone,

I am facing a problem while exporting report header image and chart in xls format. I am using Birt 3.7 API and have downloaded and configured class path for this API

exelero-xls-emitter-1.00-beta.jar . Downloaded from http://sourceforge.net/projects/exemitter-xlsem/

and overide the default emitter with following code

else if( format.equalsIgnoreCase("xls") ){
EXCELRenderOption xlsOptions = new EXCELRenderOption();
xlsOptions.setOutputFormat("xls");
xlsOptions.setOutputFileName("output/resample/ps.xls");
xlsOptions.setOption(IRenderOption.EMITTER_ID, "org.uguess.birt.report.engine.emitter.xls");

runAndRenderTask.setRenderOption(xlsOptions);

}




But Still I am unable to export the image and charts with following exception


org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.eclipse.birt.report.engine.api.EngineException: EmitterID org.uguess.birt.report.engine.emitter.xls for render option is invalid.
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:64)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)




Please Help me.

Thanks & Regards,
Mubashar

Image in MasterPage that changes with Parameter

$
0
0
Hi all, I am new in the forum, and new on Birt, so I hope that someone can help me.
What I am trying to do is to put a Dynamic Image in the Master Page that changes by differents values that can take a parameter.
The dataset is very simple, it has two columns, one is c_empresa (that is the number of an enterprise) and the other column is URL_IMAGE (that has the URL of the image).

The dataset is:
SELECT c_empresa, URL_IMAGE
FROM table
WHERE c_empresa = :c_empresa

What i want to do is that the URI image take the value of the URL_IMAGE column dinamically and not to put the URL hardcoded.
I create a onRender event on the image with this:

this.setURL(row["URL_IMAGE"];
but it doesnt work..
Is it clear??
Sorry for my english.
Thank you in advance.

how to set the datetime parameter default value = 11:59:59 pm

$
0
0
my report has a report parameter with datetime datatype, I want to set its default time to 11:59:59 pm without specifiy the date, is this possible?
Also, when I import the report to Tivoli Common Reporting, I found the datetime parameter field is split to two component, one for date input and another for time input, will this affect the default tiime setting?
My birt designer version is 2.2.1

Table inside Table

$
0
0
hi all
im new to birt and im trying to create table inside another table using java code only (not the designer)
and the inner table should take parameter from outer table to retrieve data from the database
can anyone help me
thanks

Link US Map Gadget to other Gadget Reports

$
0
0
Greetings,

We are using the US Map Flash Chart and wish to link it to other gadget reports. The idea is that when a user selects a specific state, the state value (such as TX) would get passed to another gadget in the dashboard.

The only event associated with the click of a State is a basic javascript call to a function called doState(). Our initial thought was to add a report parameter called State and then try to set its value in the javascript. This would allow us to link the gadgets and use the Flash Map as a data selector. However, the javascript method does not appear to have report context available.

Does anyone have any ideas on an approach for this?

Steve

comparsion in paramter

$
0
0
thank you for reply ...

my problem is when i select parameter in list box it have to compare a value in chart
it have to produce a result...

for example if i am having a one list box i.e select month: jan 2013,feb 2013,mar 2013 and then another list box Period:Last month,Last year and then it have to drop by
Radio Button i)Group Result ii)Individual result

when i select a Jan 2013 from one list box and then i wil select Last Month or Last year in another list box
so result will be Jan 2013 total value and DEC 2012 total value for Last Month
likewise then i will select Last Year Jan 2013 total value and Jan 2012 total value have to display....


i have attached a sample db for u r reference





thank u in advance

Issue in report after migrating to Birt 4.2

$
0
0
Hi,

I have a report which gives me Number of successful logins during a particular period of date entered. The report works fine with Birt 2.2.1. When I migrated to Birt 4.2.2 the report works fine if there is at least one record returned during the entered dates. If there are no records during that period then it gives an Assertion error.

org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2346)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:277)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:86)
at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1325)
at org.eclipse.birt.report.service.BirtViewerReportService.runReport(BirtViewerReportService.java:184)
at org.eclipse.birt.report.service.actionhandler.BirtRunReportActionHandler.__execute(BirtRunReportActionHandler.java:88)
at org.eclipse.birt.report.service.actionhandler.BirtChangeParameterActionHandler.runReport(BirtChangeParameterActionHandler.java:58)
at org.eclipse.birt.report.service.actionhandler.AbstractChangeParameterActionHandler.__execute(AbstractChangeParameterActionHandler.java:53)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleChangeParameter(BirtDocumentProcessor.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:312)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:132)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.Assertionerror
at org.eclipse.birt.data.engine.odi.AggrHolderManager.doSave(AggrHolderManager.java:99)
at org.eclipse.birt.data.engine.executor.transform.CachedResultSet.doSave(CachedResultSet.java:354)
at org.eclipse.birt.data.engine.impl.document.RDSaveUtil.saveForGeneration(RDSaveUtil.java:99)
at org.eclipse.birt.data.engine.impl.document.RDSaveUtil.saveResultIterator(RDSaveUtil.java:66)
at org.eclipse.birt.data.engine.impl.document.RDSave.saveResultIterator(RDSave.java:237)
at org.eclipse.birt.data.engine.impl.ResultIterator$RDSaveHelper.doSaveBasic(ResultIterator.java:1335)
at org.eclipse.birt.data.engine.impl.ResultIterator$RDSaveHelper.access$0(ResultIterator.java:1327)
at org.eclipse.birt.data.engine.impl.ResultIterator.prepareCurrentRow(ResultIterator.java:750)
at org.eclipse.birt.data.engine.impl.ResultIterator.(ResultIterator.java:168)
at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:215)
at org.eclipse.birt.report.engine.data.dte.QueryResultSet.(QueryResultSet.java:98)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:168)
at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:83)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:267)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1941)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:258)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:269)
... 54 more

Please let me know how to handle this scenario.

Thanks,
Sai

IReportEngine with SpudSoft Excel emitter Margin Constant Error

$
0
0
Hello,

Using birt runtime 4.2.2 in a Spring Web framework setup. Spudsoft Birt emitter excel 0.8.0.201306042016

Spudsoft jar and required jars in WEB-INF/lib folder.

Relevant code is:

RenderOption options = new RenderOption();
options.setOption("ExcelEmitter.SingleSheet", true);
options.setOption("ExcelEmitter.DisplayGridLines", true);
options.setOption("ExcelEmitter.DisplayRowColHeadings", true);
options.setOption("ExcelEmitter.DisplayZeros", true);
options.setOption(ExcelEmitter.STRUCTURED_HEADER, false);
		
if ("XLS".equalsIgnoreCase(ext)) {
	options.setEmitterID("uk.co.spudsoft.birt.emitters.excel.XlsEmitter");
	options.setOutputFileName(fileName + ".xls");
} else if ("XLSX".equalsIgnoreCase(ext)) {
	options.setEmitterID("uk.co.spudsoft.birt.emitters.excel.XlsxEmitter");
	options.setOutputFileName(fileName + ".xlsx");
}
return options;



and I get the following error:

Jun 05, 2013 11:17:38 AM org.eclipse.birt.report.engine.api.impl.EngineTask handleFatalExceptions
SEVERE: An error happened while running the report. Cause:
java.lang.IllegalArgumentException: Unknown margin constant:  4
	at org.apache.poi.hssf.record.aggregates.PageSettingsBlock.getMarginRec(PageSettingsBlock.java:413)
	at org.apache.poi.hssf.record.aggregates.PageSettingsBlock.setMargin(PageSettingsBlock.java:442)
	at org.apache.poi.hssf.usermodel.HSSFSheet.setMargin(HSSFSheet.java:1031)
	at uk.co.spudsoft.birt.emitters.excel.StyleManagerUtils.prepareMarginDimensions(StyleManagerUtils.java:956)
	at uk.co.spudsoft.birt.emitters.excel.handlers.PageHandler.createSheet(PageHandler.java:248)
	at uk.co.spudsoft.birt.emitters.excel.handlers.PageHandler.startTable(PageHandler.java:450)
	at uk.co.spudsoft.birt.emitters.excel.ExcelEmitter.startTable(ExcelEmitter.java:331)
	at org.eclipse.birt.report.engine.emitter.CompositeContentEmitter.startTable(CompositeContentEmitter.java:306)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.startTable(HTMLTableLayoutEmitter.java:386)
	at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.startContent(ContentEmitterUtil.java:50)
	at org.eclipse.birt.report.engine.layout.html.buffer.ContainerBufferNode.start(ContainerBufferNode.java:83)
	at org.eclipse.birt.report.engine.layout.html.buffer.ContainerBufferNode.start(ContainerBufferNode.java:79)
	at org.eclipse.birt.report.engine.layout.html.buffer.ContainerBufferNode.start(ContainerBufferNode.java:79)
	at org.eclipse.birt.report.engine.layout.html.buffer.ContainerBufferNode.start(ContainerBufferNode.java:79)
	at org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBuffer.startContent(HTMLPageBuffer.java:113)
	at org.eclipse.birt.report.engine.layout.html.buffer.TableBreakBuffer.startContent(TableBreakBuffer.java:287)
	at org.eclipse.birt.report.engine.layout.html.HTMLLeafItemLM.start(HTMLLeafItemLM.java:67)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:139)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)
	at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:67)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
	at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:181)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
	at com.xxx.report.birt.BirtReportGenerator.generateReport(BirtReportGenerator.java:104)
	at com.xxx.report.birt.SyncWorker.processMessage(SyncWorker.java:94)
	at com.xxx.report.birt.SyncWorker.run(SyncWorker.java:89)



So my code can find the jars but I have not found any settings for margins except at the hssf level and not sure why I need to based on how BIRT generates other outputs such as HTML or PDF.

I also looked over:

SpudSoft Examples

and it appears I am using the emitter correctly? I have tried using the EXCELRenderOption with no change in the end result or trying with just setting EmitterID and no other options.

Any help appreciated - thank you.

JVM crashes when generating PDF file

$
0
0
Helo all...

I'm getting an error when generating a PDG using BIRT Framework.

The error happens in Java JVM. The log I'm getting:

 #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x0190f0be, pid=5848, tid=2392
    #
    # JRE version: 7.0_09-b05
    # Java VM: Java HotSpot(TM) Client VM (23.5-b02 mixed mode, sharing windows-x86 )
    **# Problematic frame:
    # J  java.nio.MappedByteBuffer.load()Ljava/nio/MappedByteBuffer;**
    #
    # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
    #
    # An error report file with more information is saved as:
    # C:\Users\luis\Desktop\teste\birt\hs_err_pid5848.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://bugreport.sun.com/bugreport/crash.jsp
    #


The code I'm using to generate the PDF is as follows:

EngineConfig config = new EngineConfig();
   config.setEngineHome("C:\\BIRT\\birt-runtime-4_2_2\\ReportEngine");
   config.setLogConfig("C:/BIRT/logs", Level.FINE);

   Platform.startup(config);
   final IReportEngineFactory FACTORY = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY); 
   IReportEngine engine = FACTORY.createReportEngine(config);
   engine.changeLogLevel(Level.WARNING);

    // Open the report design
    final IReportRunnable DESIGN = engine.openReportDesign("C:\\birt\\src\\report.rptdesign"); 
    final IRunAndRenderTask TASK = engine.createRunAndRenderTask(DESIGN); 
    TASK.setParameterValues(PARAMETERS);
    TASK.validateParameters();

    final PDFRenderOption HTML_OPTIONS = new PDFRenderOption();
    HTML_OPTIONS.setOutputFileName("C:/birt/output.pdf");
    HTML_OPTIONS.setOutputFormat("pdf");

    TASK.setRenderOption(HTML_OPTIONS);
    TASK.run();
    TASK.close();
    engine.shutdown();
    Platform.shutdown();


Thank you all. Regards

Called PL/SQL function

$
0
0
Hi all, I would like to know if its possible to call a PL/SQL function or stored procedure from BIRT.
Thank you very much.
Best regards.

Data Sources Referencing Variables

$
0
0
I have two data sources, a jdbc:mysql based source & a xml based source. The xml data source uses a beforeOpen script to reset the url using:

this.setExtensionProperty("FILELIST", vars["fullXmlQueryUrl"]);


Where the variable fullXmlQueryUrl is built using two other variables (one that makes a time stamp, the other defines the server number to use).

When viewing the "Output Columns", the "Preview Results", or using the data sources in charts EVERYTHING is fine. But when I create a JOINT data set using the xml based data source I get the following error:

Fail to execute sript in function __bm_beforeOpen(). Source:
------
" + this.setExtensionProperty("FILELIST", vars["fullXmlQueryUrl"]); + "
------
A BIRT exception occurred. See next exception for more information.
Error evaluationg Javascript expression. Script engine error: Report variable "fullXmlQueryUrl" does not exist
Script soruce: <inline, line: 0, text:
__bm_beforeOpen()
Reason:
A BIRT exception occurred.


However, if I use the following script in the xml data source's script tab then it does work. I just have to modify the beforeOpen script in multiple data sources rather than parameterize the creation of the urls. (I have many similar but different xml url data sources and parameterizing them makes management of the BIRT report easier.)

this.setExtensionProperty("FILELIST", "http://server07/..."+new Date().getFullYear()+"-"+new Date().getMonth()+"-"+new Date().getDate()+"..... etc.


Note, with this work around I can make the url have a time relevant to "now" but I can't parameterize the server number like what is desired.

SO, How can I use variables in the "beforeOpen" script of a Data Source that feeds one of two Data Sets that are used to create a Joint Data Set?

Any help is appreciated.

testing out forums

$
0
0
This is a testing out forums post

visibility property

$
0
0
Hi,

Following is my report with parameters. Its working perfeclty when one of the parameters is null, then the corresponding column is hidden in the report by setting the visibility property.

http://wisdom.rockefeller.edu:8080/birt/frameset?__report=tircdata05.rptdesign

In the report to the bottom left is a button called "Graphic View", which points to another report to display a chart.
How can I display a graph when one or more columns are hidden, graph should not show the hidden columns.
In the first report if instrument1 is hidden then in the graph report, that parameter must be shown in the graph.
Any Ideas?

Also attached is the report design:

Viewing all 542 articles
Browse latest View live