Discussions
-
Change projectdefinition archiveid
Hi all, In our environment we have 2 archives: one for the documents and one archive for project definitions. However we found that in our development and acceptance environment that the project definitions are stored in the wrong archive, the one where we store the documents instead of the projectdefinitions. In our…
-
Get current channel from Content GUID
I am using WEM 8.1, and trying to get channel from content GUID. I have created a button in grid of Content Workspace, now selecting a content (which is under a channel) and then clicking that button, so in the jsp (this is not a display view jsp) I got the content GUID, but not able to get the channel GUID under which…
-
Insert new element on run time in a specific place in the report
<p>Hi all,</p><p> </p><p>I'm trying to figure out how to place an element that I create dynamically (using the API) between 2 grids that are already placed in the report.</p><p> </p><p>I have added an example, there you can see that in the report design I have 2 grids (one with a pie chart and the bookmark "chart1" and the…
-
Dynamic BIRT report not populating xml data
<p>[color=rgb(0,0,0);font-family:Verdana, Geneva, Lucida, 'Lucida Grande', Arial, Helvetica, sans-serif;font-size:13.600000381469727px;background-color:rgb(244,244,244);]Hi,[/color]<br /> <br /> [color=rgb(0,0,0);font-family:Verdana, Geneva, Lucida, 'Lucida Grande', Arial, Helvetica,…
-
Use java event handler to code across the output of a SQL dataSet using a Scripted DataSet
This example only has an example of running calculations across the DataSet derived from SQL, using a Java Event Handler. One could use similar code to run other java functions across your SQL result set and display it back into the report after such functions are run.<br /> <br /> Do the proper setup for Event handlers in…
-
Multi Column Reports
This design works in Auto layout, some modifications needed for Fixed layout (i.e. page breaks)<br /> <br /> Tips:<br /> <br /> Set page break interval in table equal to the inner divisor in filter expression<br /> <br /> Make sure the number of columns divides into the rows evenly<br /> <br />…
-
Popups including row data - after render
The attached .zip file includes .doc instructions.<br /> <br /> The example report is crudely formatted but the general concept can be used for all hmtl input elements.
-
Get Folder and Report Name
Scripting in BIRT design to get the current folder and report name:// Get report folder/report namevar reportFolderAndReportName = reportContext.getReportRunnable().getReportName();
-
Add Page n of M using report.model.api
If you choose to use the report design api to add "Page n of M", the following method will be executed onRender event./** * Creates a page footer for this masterpage that specifies Page n of m * This is an equivalent translation of the following fragement: <page-footer> <text id="403"> <property…
-
Creating a multi column BIRT report with grouping
In an earlier post I explained how to use a crosstab item to create a multi column BIRT report. But when there are one or more groups in your report, that approach does not suffice. In this post I’ll describe a slightly different way to determine row and column numbers, so that they can be used in the crosstab together…
-
Allow multi value for cascading parameter
Simple example that show how to allow selection of multi value for cascading parameter (at each level).<br /> <br /> NB : Replace the file's viewer BirtParameterDialog.js (pathToTheViewer\webcontent\birt\ajax\ui\dialog) by this one. The change is on __refresh_cascade_select method.
-
BIRT Group Functions Plugin
This DevShare submission qualifies for the Autumn 2012 Plug In 2 BIRT Contest!<br /> To make clear how these functions can be useful, I describe a real life problem situation and show how all three new Group Aggregations can be used to solve that problem.<br /> <br /> In the zip file you find:<br /> - the plugin<br /> - a…
-
Creating a ReportDocument without file access
When creating a ReportDocument for example to extract data from a report or to store the documents bytes somewhere, BIRT API provides two ways. First is running 'ReportEngine.openReportDocument(String string)' with a string containing a file path. Second is running the method with A IDocArchiveReader object. Both ways are…
-
Obtaining contextual information from a report server.
This report queries both the report context and the Java runtime to provide details of a number of values that are useful to know when designing reports.<br /> <br /> The report has been designed to be easy to extend to add more categories of information, or to be pulled apart so that you can get the information in your…
-
BIRT XML Emitter
This devshare submission qualifies for Plug In 2 BIRT Contest<br /> The purpose of this emitter is to assist report developers who would like to unit test their report designs. It can be used for a number of other use cases, such as running through an XSLT transformation.<br /> <br /> The plugin and documentation are…
-
Modified BIRT HTML Emitter
This devshare submission qualifies for Plug In 2 BIRT Contest<br /> The purpose of this emitter is to allow a report developer to modify the HTML header that is generated in HTML based reports.<br /> As a web based report developer, having access to the HEAD section of an HTML report allows the developer to include…
-
Report Document ODA
This devshare submission qualifies for Plug In 2 BIRT Contest<br /> The purpose of this ODA is to allow BIRT Report Developers use existing RPTDOCUMENT files as a data source. As a report developer, this is useful for cacheing data from previous report runs, keeping a static snapshot of data that can reported from, and…
-
Report Design Extractor
This devshare submission qualifies for Plug In 2 BIRT Contest<br /> <br /> This is a plugin for Eclipse that will create a new View that will extract a RPTDesign from a RPTDocument and create Data Sources that will allow someone to connect to the RPTDocument. This was created as a maintenance utility for diagnosing and…
-
HOWTO: Add scroll bars to a table
To add scroll bars to a table in your report the table needs to be inside a grid. Select the cell that your table is located in. From the property editor go to advanced > overflow. Change this to scroll. Make sure you change the overflow in the cell the table is located, not to the entire grid.
-
New Advanced Localization Technique
This is an update to this devshare - http://www.birt-exchange.org/org/devshare/designing-birt-reports/828-advance-localization-technique/<br /> <br /> There are many cases where a user needs to run a report in a locale that is different than their own. For example a custom service representative in New York that needs to…
-
Dynamic Image in a Library
The example has an image report item in a library. It has 2 user properties - highValue and lowValue. It has a named expression - RGYBindingName<br /> <br /> When used in a design all you need to is set the user properties and set the named exprsion. These can be found in the advance properties. <br /> <br /> The code used…
-
Parameter Display Text on a Report
The attached example was written by Jason Weathersby. I just modified it slightly to display all selections. The trick is to add code to the beforeFactory event to get the display text from the paramter task. In this event we populate an array of the select items. <br /> <br /> In the report we simply display the array…
-
Dynamic Theme Example
The example is using Actuate 11 SP2, BIRT 2.6. However the code below will also work in earlier releases.var t;if (params["pTheme"].value == "New") {t=reportContext.getReportRunnable().designHandle.getModuleHandle().findTheme("DynamicTheme.NewTheme"); reportContext.getReportRunnable().designHandle.getModuleHandle().theme =…
-
Naming tabs in Export to Excel
First, thanks to Trevor Huston for pointing the way. In the attached zip file are two examples. One uses hard coded value to name the tabs, while the other uses values from the database. Both examples use Classic Models sample database. This is only for the commercial version of the Excel emitter. To test run the reports…