BIRT Exchange Forum: BIRT Exchange Forum -> Michael's BIRT Blog

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1

Change Bar Color at Threshold, Creating a Chart in Script, and more...

Posted by mwilliams  Icon, 20 August 2012 - 04:45 PM

Last Week in the Forums - 8/20/12

The first post, for this week, is about coloring a bar based on a threshold value. The poster wanted to be able to color the portion of the bar that passed a threshold value. Say, there was a chart threshold of 50 and there were three bars valued at 75, 55, and 45. The first two bars would be one color up to 50, then another color above. The last bar would be entirely the first color. What is done in this case is to use two series. One that goes all the way up to the threshold, if the value is that high, and the other to continue above the threshold if needed. This allows for two colors at the threshold line. An example report can be found in the forum thread.

The next post, for this week, is about creating a chart in script. The poster wanted to know if it was possible to create a chart, on the fly, in script. An example can be found in the forum that shows how to create a chart, in script, using an existing dataSet.

Here are a few more :


Here are a few unanswered posts, from last week:


If you have a suggestion or solution for any of these, please post in the thread!

Thanks for reading this weeks blog! Again, this is just a small sample of what went through the forums this past week. For more questions and answers that have been posted, check out the forums. As always, if you have a question, feel free to ask it, and if you see a question you know the answer to or have a similar experience to, feel free to post an answer or comment.

Filed in BIRT, BIRT Exchange, forums, reporting, chart, script, highlight, pie chart, parameters, runtime, jsapi

Last week in the Forums: Crosstab Scripting, Showing Different Masterpage Content on Different Pages, and more...

Posted by mwilliams  Icon, 18 June 2012 - 07:05 AM

This blog series takes a look back at the past week in the forums, recalling how active they were and highlights some of the questions asked that seem to frequent the forums or other interesting topics. The forums continue to be busy as we push through the last month of the first half of the year. I'm getting closer and closer to catching up on posts I've been working on. Thanks everyone, for your patience. :) As always, thanks to those users who help answer questions! It is a great help to the community!

The unanswered post from last week is about scripting in crosstabs. The poster has some script to set the format, depending on the value of a field in the crosstab. That is working fine for them. They also have some script where they're checking the value of another field and want to set the colors for the cell. This is not working for them. For more specifics, check out the thread. If you have suggestions or solutions, please post them.

The next topic for this week is about showing different content on the masterpage for different pages of the report. The poster wanted a grid on the first page and a different grid on the second page for printing customer invoices. An example report is provided in the thread that shows a way to achieve this. For it to work, the report must be ran using separate run and render tasks. See the thread for more information on this.

The last topic for this week is about setting the vertical position of a table footer. The poster wanted to know if they could determine the vertical position of the footer so they could push it to the bottom of the page. Unfortunately, I don't know that there's a way to do this, currently. The masterpage footer can be used with page or report variables to put page/report information. Another couple ways would be to add extra footer rows to your table and show/hide them, depending on your count of rows on the page or to use a HTML text box to force the footer down, also depending on your count of rows. Here are a couple devShare posts, showing the last two:

http://www.birt-exch...ting-row-color/

http://www.birt-exch...le-to-fit-page/

Again, this is just a small sample of what went through the forums this past week. For more questions and answers that have been posted, check out the forums. As always, if you have a question, feel free to ask it, and if you see a question you know the answer to or have a similar experience to, feel free to post an answer or comment.

Filed in BIRT, BIRT Exchange, forums, reporting, crosstab, script, masterpage, table footer

Last week in the Forums: Accessing Session Variables in BIRT, Adding Crosstab Page Break in Script, and more...

Posted by mwilliams  Icon, 12 March 2012 - 07:01 AM

This blog series takes a look back at the past week in the forums, recalling how active they were and highlights some of the questions asked that seem to frequent the forums or other interesting topics. The traffic in the forums continues to be very high. Many great questions and answers were posted. As always, thanks to those users who help answer questions! It is a great help to the community!

The unanswered question for this week is about accessing a session variable from external application in BIRT report. The poster wants to be able to call their BIRT report in a JSP embedded viewer and pass a session variable into BIRT to be used in their where clause. If anyone has an example of this or a description of what needs to be done, please post in the thread.

The next topic I'll cover from last week is about setting a page break in a crosstab using script. The poster wanted to be able to dynamically add a page break in script, based on a parameter selected by the user. Usually you can set the page break interval on a group in the onPrepare method of the crosstab. However, in this case, the dimensions are being edited dynamically in the beforeFactory, so this simple solution didn't work. An example report showing a way to do this is included in the thread.

The last post I'll cover this week is about displaying "no data" when your csv source file is blank. If you're using a csv file as your source and your csv file will always have the header info, this won't happen to you. However, if your csv file is completely empty when there is no data, then you'll get errors if a report element uses the dataSet that tries to access this file. The solution offered in the thread to get around this involves reading in the file in script prior to running the dataSet, so you can drop any elements that might use this data from the report. This avoids any errors. An example can be found in the thread.

Again, this is just a small sample of what went through the forums this past week. For more questions and answers that have been posted, check out the forums. As always, if you have a question, feel free to ask it, and if you see a question you know the answer to or have a similar experience to, feel free to post an answer or comment.

Filed in BIRT, BIRT Exchange, forums, reporting, crosstab, script, JSP, session variable, empty csv error

Last week in the Forums: Dynamically Build Chart using CEAPI, Determining if a Parameter is Multi-Select or not, and more...

Posted by mwilliams  Icon, 20 February 2012 - 07:01 AM

This blog series takes a look back at the past week in the forums, recalling how active they were and highlights some of the questions asked that seem to frequent the forums or other interesting topics. The forum traffic has been pretty high, so far, this month. Let's keep it up. Many great questions and answers were posted. As always, thanks to those users who help answer questions! It is a great help to the community!

The unanswered post from last week is about creating charts in java. The poster wants to be able to create pie and bar charts in code, instead of in the designer. If anyone has any examples they've done or links on where they can find examples, please post in the thread.

The next topic for this week is about determining if a parameter is multi-select or not. The poster wanted to be able to step through their parameters in their report and determine if the parameter was a multi-select or not, so they'd know whether they needed to step through the parameter object or not. A solution is provided that grabs all the parameters, determines if they're multi-select or not, then steps through the selected value or values, and then displays them in the report.

The last topic for this week is about hiding the legend from a secondary axis. The poster had two series in their chart that had the same groupings, so they wanted to be able to remove the second series groups from the legend. An example report is available in the thread that shows one way that this can be achieved using chart scripting.

Again, this is just a small sample of what went through the forums this past week. For more questions and answers that have been posted, check out the forums. As always, if you have a question, feel free to ask it, and if you see a question you know the answer to or have a similar experience to, feel free to post an answer or comment.

Filed in BIRT, BIRT Exchange, forums, reporting, chart, CEAPI, multi-select parameters, legend, script

Last week in the Forums: Calling a Function in BIRT Script Area from HTML Button, Localization in Chart Not Working, and more...

Posted by mwilliams  Icon, 23 January 2012 - 08:20 AM

This blog series takes a look back at the past week in the forums, recalling how active they were and highlights some of the questions asked that seem to frequent the forums or other interesting topics. The site was down for maintenance much of this past week and Monday was a holiday, so the traffic was pretty slow. Still, many great questions and answers were posted. As always, thanks to those users who help answer questions! It is a great help to the community!

Last week's unanswered post was how to use a HTML button to call a function from the report script. The poster wanted to be able to use script in a HTML button to call a function that is declared in their report's initialize script. They know they can create a function within the HTML to call, but wanted to know if they could do this with a function within the BIRT script methods. If anyone has done this or has a suggestion. Please post in the thread!

The next topic I'll cover from last week is datetime localization not working in charts. The poster noticed an issue in 2.5.1 that their localization didn't affect their axis labels in their chart. In a newer version, 2.6.2, it did work. The issue ended up being that setting a format code in the chart wizard messed up the localization. The workaround solution was to apply the formatting in script. The necessary script is shown in the thread.

The last topic I'll cover is about where to find the new features for the latest release. This question gets asked often enough that I thought it would be a good one to cover. To find the newest features, the best place to look is at the project plan pages for BIRT on eclipse.org. You should be able to find all versions and what new features went in to each. You can also find the bugs that were addressed with each version.

Again, this is just a small sample of what went through the forums this past week. For more questions and answers that have been posted, check out the forums. As always, if you have a question, feel free to ask it, and if you see a question you know the answer to or have a similar experience to, feel free to post an answer or comment.

Filed in BIRT, BIRT Exchange, forums, reporting, HTML, script, chart, localization, version features

Page 1 of 1

« May 2013 »

S M T W T F S
1234
567891011
12131415161718
19 20 2122232425
262728293031

My Picture

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)

Categories

Search My Blog

Twitter