[ 
https://issues.apache.org/jira/browse/OFBIZ-6638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182716#comment-17182716
 ] 

Jacques Le Roux edited comment on OFBIZ-6638 at 8/23/20, 3:04 PM:
------------------------------------------------------------------

Though it worked before, maybe it's a report issue as reported by 
[~lalit.dashora] at OFBIZ-8376

The most I could get is this error in RunAndRenderTask, line
 {{IReportExecutor executor = new ReportExecutor( executionContext );}}

Actually it's in getReport::getReport, line
 new ReportParser( ).parse( (ReportDesignHandle) runnable.getDesignHandle( ) );
 error: IndexOutOfBoundException

Here is the definition of ReportDesignHandle:

Open Declaration org.eclipse.birt.report.model.api.ReportDesignHandle

Represents the overall report design. The report design defines a set of 
properties that describe the design as a whole like author, base and comments 
etc.

Besides properties, it also contains a variety of elements that make up the 
report. These include:

Content Item Description

Code Modules Global scripts that apply to the report as a whole.
 Parameters A list of Parameter elements that describe the data that the user 
can enter when running the report.
 Data Sources The connections used by the report.
 Data Sets Data sets defined in the design.
 Color Palette A set of custom color names as part of the design.
 Styles User-defined styles used to format elements in the report. Each style 
must have a unique name within the set of styles for this report.
 Page Setup The layout of the master pages within the report.
 Components Reusable report items defined in this design. Report items can 
extend these items. Defines a "private library" for this design.
 Body A list of the visual report content. Content is made up of one or more 
sections. A section is a report item that fills the width of the page. It can 
contain Text, Grid, List, Table, etc. elements
 Scratch Pad Temporary place to move report items while restructuring a report.
 Translations The list of externalized messages specifically for this report.
 Images A list of images embedded in this report.

Module allow to use the components defined in Library.
 * User can call includeLibrary(String, String)to include one library.
 * User can create one report item based on the one in library, and add it into 
design file.
 * User can use style, data source, and data set, which are defined in library, 
in design file.

{code:java}
 // Include one library
ReportDesignHandle designHandle = ...;
 designHandle.includeLibrary( "libA.rptlibrary", "LibA" );
 LibraryHandle libraryHandle = designHandle.getLibrary("LibA");
// Create one label based on the one in library
LabelHandle labelHandle = (LabelHandle) 
libraryHandle.findElement("companyNameLabel");
 LabelHandle myLabelHandle = (LabelHandle) 
designHandle.getElementFactory().newElementFrom( labelHandle, "myLabel" );
// Add the new label into design file
designHandle.getBody().add(myLabelHandle);
{code}
See Also:org.eclipse.birt.report.model.elements.ReportDesign


was (Author: jacques.le.roux):
Though it worked before, maybe it's a report issue as reported by 
[~lalit.dashora] at OFBIZ-8376

The most I could get is this error in RunAndRenderTask, line
 {{IReportExecutor executor = new ReportExecutor( executionContext );}}

Actually it's in getReport::getReport, line
 new ReportParser( ).parse( (ReportDesignHandle) runnable.getDesignHandle( ) );
 error: IndexOutOfBoundException

Here is the definition of ReportDesignHandle:

Open Declaration org.eclipse.birt.report.model.api.ReportDesignHandle

Represents the overall report design. The report design defines a set of 
properties that describe the design as a whole like author, base and comments 
etc.

Besides properties, it also contains a variety of elements that make up the 
report. These include:

Content Item Description

Code Modules Global scripts that apply to the report as a whole.
 Parameters A list of Parameter elements that describe the data that the user 
can enter when running the report.
 Data Sources The connections used by the report.
 Data Sets Data sets defined in the design.
 Color Palette A set of custom color names as part of the design.
 Styles User-defined styles used to format elements in the report. Each style 
must have a unique name within the set of styles for this report.
 Page Setup The layout of the master pages within the report.
 Components Reusable report items defined in this design. Report items can 
extend these items. Defines a "private library" for this design.
 Body A list of the visual report content. Content is made up of one or more 
sections. A section is a report item that fills the width of the page. It can 
contain Text, Grid, List, Table, etc. elements
 Scratch Pad Temporary place to move report items while restructuring a report.
 Translations The list of externalized messages specifically for this report.
 Images A list of images embedded in this report.

Module allow to use the components defined in Library.
 * User can call includeLibrary(String, String)to include one library.
 * User can create one report item based on the one in library, and add it into 
design file.
 * User can use style, data source, and data set, which are defined in library, 
in design file.
 // Include one library

 
{code:java}
ReportDesignHandle designHandle = ...;
 designHandle.includeLibrary( "libA.rptlibrary", "LibA" );
 LibraryHandle libraryHandle = designHandle.getLibrary("LibA");
// Create one label based on the one in library
LabelHandle labelHandle = (LabelHandle) 
libraryHandle.findElement("companyNameLabel");
 LabelHandle myLabelHandle = (LabelHandle) 
designHandle.getElementFactory().newElementFrom( labelHandle, "myLabel" );
// Add the new label into design file
designHandle.getBody().add(myLabelHandle);
{code}
See Also:org.eclipse.birt.report.model.elements.ReportDesign

> TrialBalance PDF export fails
> -----------------------------
>
>                 Key: OFBIZ-6638
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6638
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: accounting
>    Affects Versions: Release Branch 16.11, Release Branch 18.12, Release 
> Branch 17.12, Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Major
>             Fix For: 14.12.01, 15.12.01
>
>         Attachments: OFBIZ-6638.patch, image-2019-01-12-14-53-56-292.png
>
>
> # Get to 
> http://demo-trunk.ofbiz.apache.org/accounting/control/TrialBalance?organizationPartyId=Company
> #    pick a "Custom Time Period Id" (default works also)
> #    Submit
> Then the CSV export works but not the PDF, this in trunk demo.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to