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

Hyperlink in Crosstab report

$
0
0
Hello,

Currently i am using MyEclipse Blue 7.5 birt report. I want to give hyperlink in the crosstab column.
But not able to.
I want to give hyperlink on Student Name , so that it will link to other page.
Its happening but instead of name ,it is showing the link itself in the report.It is linking to the particular page which is correct. Only i need the name in the report.

This is the code :

<extended-item extensionName="DimensionView" id="198759">
<property name="dimension">Group1</property>
<property name="levels">
<extended-item extensionName="LevelView" name="NewLevel View1" id="198760">
<property name="level">Group1/SName</property>
<property name="member">
<extended-item extensionName="CrosstabCell" id="198761">
<property name="content">
<data name="SName" id="198762">
<property name="style">NewStyle2</property>
<property name="fontFamily">"Verdana"</property>
<property name="fontSize">10px</property>
<property name="textAlign">left</property>
<property name="resultSetColumn">SName</property>
<structure name="action">
<property name="linkType">hyperlink</property>
<expression name="uri">data["urlForReport"]</expression>
<property name="targetWindow">_blank</property>
</structure>
</data>
</property>
<property name="textAlign">left</property>
<property name="width">100px</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>

In other report I put a hyperlink in a table . it is working fine.

<expression name="uri">row["urlForReport"]</expression>

But in Crosstab report its not working.


Can anyone help ??



Thanks

Scripted data source-JSON-dynamic report generation

$
0
0
Hi,
i am trying to create a java application for generation of reports using birt run time api's,with data source as a web service(scripted data source) . web service returns JSON object , which the application have to parse at run time and create a data-set, the data is used to create reports.

user have to just give the web service url, the application should parse the data provided by the webservice in JSON format and output the report.

I am not finding any documentation in net about how to use data set event handler

can any one please help me out. if any one have done a similar kind of work please share the code or logic for doing this.

Thanks in advance

Hyperlink in (some cells) Crosstab report

$
0
0
hi,

I have this report:

    | month1 | month2 | month3 | month4 | month5 | month6 |
day1|    T   |    F   |   F    |   T    |   T    |    T   |
day2|    F   |    F   |   F    |   F    |   T    |    F   |
day3|    T   |    T   |   T    |   T    |   T    |    F   |


I just wanna "create" hyperlink to some report, if cell is F or if cell is T. How can I do this? I'm using function onCreateCell( cellInst, reportContext ), but in this case, cellInst doesn't have the method get/setAction()
function onCreateCell( cellInst, reportContext ){
    if( cellInst.getCellType() == "aggregation"){
		if( cellInst.getDataValue("data") == "F" ){

                // what can I write here to create a link, just for data = F ?
			
		}
	}
}

Moving Navigation Bar in viewer to bottom

$
0
0
Hi

How can we move the Navigation Bar in the Birt Viewer to Bottom of the page...ie after the report.When I s earched i was able to see only the way to customize it..

Anyone please help to solve this issue. :)



Thanks In advance
Snak

PDF export problem

$
0
0
Hi,

i've created a rptdesign file with scripting block on tables, on labels and on datasets.With RAD 7.5, When i execute the report from the "conception" perspective, all the scripting i made works perfectly. But now when i do the PDF export from a J2EE application i built with the same rptdesign; only the scripitng blocks associated to the datasets works.

here is my rptdesign file.

if you need more informations, don't hesitate to ask me.

Time diffrence different rows

$
0
0
Hello,

I'm not sure if this is the correct forum, but ill give it a try!
This is the response of a query:

[PROCES] [ID] [DATE] [STATUS]
Proces A 925808352 19-07-2010 13:51:31 Started
Proces A 925808352 19-07-2010 13:51:35 succesful
Proces B 925808353 19-07-2010 13:51:36 Started
Proces B 925808353 19-07-2010 13:51:37 succesful
Proces A 925808354 19-07-2010 13:51:39 Started
Proces A 925808354 19-07-2010 13:51:45 succesful

Is it possible to calcualte the time diff (in sec) between de unique id's (started/succesful)?
Maybe with a computed column?

Thanks in advance,

Sjoerd

Pie label positioning

$
0
0
Hello:

Has anyone had success locating pie slice labels based off of the number of values provided in the dataset? For instance, six or less data points, locate the labels -inside- of the pie, with seven or more data points, locate the labels -outside- of the pie using leader lines. I want to do this inside the DE.

Any help would be greatly appreciated.

BillH

Dynamically Loading Java Sripts

$
0
0
RMurphy had posted an excellent article on DevShare outlining how to dynamically load java scripts in BIRT. This is great report and runs great in the Eclipse-BIRT developemnt environment. My test environment is Tomcat7.0 with BIRT Viewer. When I excute the report, the button shows up, but when I press the button myFunction does not get executed and I do not get an alert. I looked at the webconsole and found out that myFunction is not accessible. I have changed the report variable
Script_mySampleScript to "http://localhost:9090/birt-viewer/report/SimpleExample.js" to match my setup.
I have include the report with the changes that I made, and also a screen shot showing the directory structure and location of the files.

JDBC connection with Oracle Failing

$
0
0
I have been developing BIRT reports for an MRP system. I am using BIRT designer 4.2.2, and the Oracle 11g JDBC files.

As a simple test, I am trying to perform a listagg and pivot operation using Oracle, and reporting in BIRT. I cannot use the BIRT pivot tables, as OOTB it does not handle string agregations. My sample data is taken from the HR user/tablespace of Oracle 11g XE.

The query being used is:

SELECT *
FROM
  (SELECT Departments.Manager_Id,
    job_id,
    department_name
  FROM Employees,
    Departments
  WHERE Employees.Department_Id = Departments.Department_Id
  ) pivot(listagg(job_id,', ') 
within GROUP (
ORDER BY job_id) FOR department_name IN (
'Administration' AS Admin, 
'Marketing' AS marketing, 
'Purchasing' AS purchasing, 
'Shipping' AS Shipping)
)



Which successfully executes in Oracle SQL Developer.

But when tested in BIRT, on using Preview Results, I get a 'Java heap Space' error.

Decreasing the SQL to
SELECT *
FROM
  (SELECT Departments.Manager_Id,
    job_id,
    department_name
  FROM Employees,
    Departments
  WHERE Employees.Department_Id = Departments.Department_Id
  ) pivot(listagg(job_id,', ') within GROUP (
ORDER BY job_id) FOR department_name IN ( 
'Marketing' AS marketing, 
'Purchasing' AS purchasing, 
'Shipping' AS Shipping)
)



Successfully previews. Removing any one of the PIVOT groups successfully executes. But with all four (or more) does not execute.

The problem seems to be that Oracle is producing very wide fields, which the JDBC connector cannot handle.

Can you please advise a suitable solution??

Thanks in advance.

Integrating BiRT report designer into RCP e4 application

$
0
0
Hi all,

Have anybody tried out to integrate Birt report designer perspective into RCP e4 application?

(I have created this topic as duplicate because the first one is inaccessible after the last maintenance of this forum...inaccessible topic)

Thanks

regards

Ondrej.

Oracle DB connection

$
0
0
Hi,

I want to setup datasource with oracle DB. I am connecting my oracle DB in Datasouce details but when I click on
Test concction, it is failed. Could you please tell me the process.


Thanks,
Pankaja

Parameter - set default value with a dynamic value

$
0
0
Hi

I have a parameter linked to a dataset that contains some dates.
I would like to set default value as max (or min) of these dates.

I could order the list but if I run the report the default value is void.

How can I do it?

Thanks a lot.

Andrea

Designing reports for excel output with Tribix emitter

$
0
0
Greetings!

Recently I've been asked to generate reports with an xls output. After trying some different emitters, I ended up going with Tribix since it could manage images and seemed to generate everything almost exactly the same as defined in the .rptdesign, but then I realized that it uses a lot of empty rows and columns for the indentation to simulate padding (at least thats what I've found out so far) and that there are some elements that it doesn't display in its full width (like labels with long text).

I was wondering if there is any documentation about what to do to avoid that kind of "issues" when generating xls files with Tribix? like tips or anything alike. Also, I would like to know if there is a way to display a label (or cell content in this case) completely without the need to resize later the column's width, is there any property that could help? (I have tried the excelOptions.setOption("fixed_column_width", true); and xlsConfig.put("fixed_column_width", new Integer(100)); but apparently that doesn't help much)

Thanks!

ReferenceError: Object is not defined.

$
0
0
Hey folks,

I got an issue referencing a class from a jar.

To give you a short overview over my problem: I created a Java Project in the BIRT Designer and created a DataSource within this project like explained here: http://www.vogella.de/articles/EclipseBIRT/article.html#java.

I then created a Report Project with a Scripted DataSource and DataSet. In the open-Script of the DataSet Itried to create a new Instance of my Class via
importPackage(Packages.com.example);
umr = new Example("Arg1", "Arg2");


Under Project -> Properties -> Report Design -> Classpath I added the Java Project but when I start debugging it always says
org.mozilla.javascript.EcmaError: ReferenceError: "Example" is not defined.


Putting the Project into a jar-File and adding it as a ressource leads to the same effect.

I hope you guys can help me out with this one.

Best regards

Duplicate rows on PDF output

$
0
0
This happens only on PDF (validated on HTML)
When executing a report with PDF format which has more than one page output.
It seems that a grouped row is duplicated and the page number stays 1.

Any clue?

Create Checkbox in Table

$
0
0
Hi All,

I want to insert check box in a table.As per the attached image.
Then i want , When i will select the check boxes according to selected check box values graph will display below the table.

Please Help me to solve this.
It is very urgent for me.

Regards,
Swapna.

GETTING NULL POINTER EXCPTION

$
0
0
Hi,

I am using BIRT 2.2.2 for my application. I have one report, which is running correctly in designer, but getting null pointer exception in application. I have also tried by defining column width, but still getting
the same error. Please help

I am getting below error in log:

Caused by: java.lang.NullPointerException
at org.eclipse.birt.report.engine.emitter.excel.DataCache.getColumnSize(DataCache.java:80)
at org.eclipse.birt.report.engine.emitter.excel.DataCache.insertColumns(DataCache.java:56)
at org.eclipse.birt.report.engine.emitter.excel.layout.ExcelLayoutEngine.addTable(ExcelLayoutEngine.java:101)
at org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter.startTable(ExcelEmitter.java:130)
at org.eclipse.birt.report.engine.emitter.CompositeContentEmitter.startTable(CompositeContentEmitter.java:300)
at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutNoNestEmitter.startTable(HTMLTableLayoutNoNestEmitter.java:72)
at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutNoNestEmitter.startTable(HTMLTableLayoutNoNestEmitter.java:72)
at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.startContent(ContentEmitterUtil.java:48)
at org.eclipse.birt.report.engine.layout.html.buffer.DummyPageBuffer.startContainer(DummyPageBuffer.java:88)
at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.start(HTMLTableLM.java:87)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:137)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:24)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:138)
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:107)
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:155)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:24)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:138)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:24)
at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:76)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:138)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:85)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:140)
... 31 more

How to manage team and user tree structure in report.

$
0
0
Hi All,

Please help me to solve the problem:

I am having 3 teams named team1,team2 and team3 also some users named a,b and c.
How can i show all the 3 teams and 3 users in a graph.

Regards,
Swapna.

Show groups like a tree

$
0
0
Hi,
i have got a dataset like this:
Section Subsection ID Name
01. Category --- 101 cat1
01. Category --- 102 cat2
01. Category 01.Subcategory 01101 subcat1
if i group first by section, after by subsection, the result is this:

01. Category-------------group1
01. subcategory-------group2
id:01101
name:subsection
but i can't see the id and name of section category 01. category, because i can't put a detail line between group1 and group2. is there someway of see results like this?

01. Category-------------group1
id:101
name:cat1
id:102
name:cat2
01. subcategory-------group2
id:01101
name:subsection
thanks

Exception due to invalid Column Binding

$
0
0
Hi Folks

I was adjusting a BIRT Report, I needed to change one Query Column and change it on the master page.

Ever since I did this, I keep getting an error message, that the column binding doesn't exist.

What is the problem here? I have attached the rptdesign file and the exception.

To mention is, that locally everything works fine, but once it's deployed, i get this error.

//EDIT: I have changed the column CASE_ID in the query "masterpage".

Thanks and kind regards


Severin

Viewing all 542 articles
Browse latest View live