Switch to a Default Table if no Values Returned in Query, Parameterize the From Portion of an SQL Query, and more...
Posted by
mwilliams
, 17 September 2012 - 06:45 PM
The first post, for this week, is about showing a default result set if the main one is empty. The poster wanted to be able to show a default table if the parameter entered by the user returned no results. An example is posted in the thread that shows how to set the visibility of the two tables based on a variable that is set in the onFetch of the parameterized dataSet.
The next post, for this week, is about how to parameterize the from portion of an SQL query. The poster wanted to be able to use a parameter value to choose which table to use in the from portion of an SQL query. The solution provided was to use the report parameter in the beforeOpen of the dataSet, like:
this.queryText = "select * from " + params["myparameter"];
Here are a few more :
- Why so many date-time datapoints on chart?
- how to get a chart svg output as an object
- Dynamic Report Based on User Selection
- Cant Startup the OSGI Framework in BIRT
- Serial number for newspaper columns
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.
Flowing Multi-Line Report Content Across Multiple Page Columns, Formatting a Value in an HTML Text Box, and more...
Posted by
mwilliams
, 13 August 2012 - 06:53 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 pick the pace back up and are pretty busy, now. Keep the good questions and answers coming. As always, thanks to those users who help answer questions! It is a great help to the community!
The first topic, for this week, is about flowing report content across multiple page columns. The issue in this post is that there is not a standard newspaper layout, in BIRT, yet. The normal solution for this is to use a grid, duplicate tables, and filters to make the appearance of wrapping columns. The issue the poster was having with this was that they had multi-line rows that caused issues with ordering. The solution provided was to break the original dataSet's long rows into single line rows, allowing the normal solution to work. An example is posted in the thread showing this. Another example showing this with grouping, is also attached in the thread.
The last in detail topic, from last week, is about formatting currency values in an HTML text box. The poster was displaying a value using the <value-of> tag, in an HTML text box, so they could include it in a string, but they wanted it to come as a currency value, with symbol and decimal. The solution is that you can set a format property on the value-of tag, telling it how you want the value formatted, like: <VALUE-OF format="$#,##0.00{RoundingMode=HALF_UP}">row._outer["yourColumn"]</VALUE-OF>
Here are a few more :
- iServer Users Jobs View of Others
- Exception Handling in BIRT Viewer
- Couldn't Export Different Locale to the PDF Report
- Flash Map Questions
- Dynamically Scale SVG Graph
Here are a few unanswered posts, from last week:
- Centering an A4 Size Report in any Monitor
- How to get Client IP Address
- Send Parameters to Reports/Dashboards from the SecurityAdapter
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.
Last Week in the Forums: SVG Images in PDF, Dropping a Series from a Chart, and more...
Posted by
mwilliams
, 12 December 2011 - 04:18 AM
The unanswered question for this week is an issue with SVG in PDF. The question is, when a SVG image is created with Adobe Illustrator, it works in the PDF. However, when the SVG is made with Inkscape, they receive an error message like, "Current report item is not supported in this report format." If anyone has experienced this issue with SVG images and PDF, please post your suggestions or solution in this thread!
The next post I'll cover from last week is, dropping a series from a chart. The question was, how do you drop a series from a chart if it's an empty series. A devShare post is linked as an answer. The devShare post shows how to drop a series based on a parameter. So, the only work left to do to solve the poster's question is to determine if the series is empty or not. This can probably be done outside the chart and passed in just like the parameter value in the example. This information can also probably be found out in the afterDataSetFilled function in the chart script.
The last topic for this week is, changing negative numbers to red. The question is, if you have a field of positive and negative numbers, how do you make the negative ones red. The solution provided is to select the data element for the field, and go to the highlight section of the property editor and add a highlight rule.
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.
Recent Entries
Creating Derived Cube Measures and More with BIRT and ActuateOne
Drop Elements Depending on Output Format
Solving a TOC Bookmark Issue by Using Multiple Fields in a Single Group Expression
Visualizing the Impact of Database Changes with BIRT and ActuateOne
Actuate's 11SP4 Release Provides Many Powerful New Capabilities, Including HTML5 Charts and more!
Getting a Marker in the Middle of a Gantt Chart Bar, Multi-Level HTML List Numbering, and more...
Switch to a Default Table if no Values Returned in Query, Parameterize the From Portion of an SQL Query, and more...
Adding Text to an Image, Using Table Data for a Crosstab's Data, and more...
Only Highlight Bars of a Certain Series in a Chart, Reordering a Table's Columns, and more...
My Blog Links
Recent Comments
- mwilliams on Creating a BIRT report as a calendar view
- lnallamalli on Creating a BIRT report as a calendar view
- For Birt on Last Week in the Forums: BIRT and R Statistical Language, Specified Sort Order for a Table, and more...
- Bhanwar on Last Week in the Forums: Filtering Blank Spaces from Distinct Count Aggregation, Adding a Line at 0 in a Chart with Negative Values, and more...
- Srividya Sharma on Sorting a Crosstab by a Field Not Displayed in the Crosstab
- mwilliams on Last Week in the Forums: Using the Concatenate Aggregate, Hiding a Column When There is No Data, and more...
- java032 on Last Week in the Forums: Using the Concatenate Aggregate, Hiding a Column When There is No Data, and more...
- java032 on Last Week in the Forums: Using the Concatenate Aggregate, Hiding a Column When There is No Data, and more...
- java032 on Last Week in the Forums: Using the Concatenate Aggregate, Hiding a Column When There is No Data, and more...
0 user(s) viewing
0 member(s)
0 anonymous member(s)
Categories
- .rptdocument
- 11 SP4
- Actuate
- ActuateJavaComponent
- ActuateOne
- aggregating data
- aggregation
- alignment issues
- Alternating Highlight
- archived BIRT versions
- area chart
- axis label
- barcodes
- batch file
- BDPro
- BIRT
- BIRT Exchange
- BIRT functions
- BIRT Studio
- BIRT-Exchange
- bookmarks
- border
- border color
- bursting
- calendar
- cascading parameter
- CEAPI
- cell border
- chart
- charting
- charts
- color
- color codes
- command line
- computed column
- connection profile
- contest
- crosstab
- CSS
- CSV
- CSV export
- custom group
- custom sort
- Data Analyzer
- data cube
- Data Object
- data point label spacing
- data row security
- data set filter
- data set parameters
- dataset parameters
- Date Format
- deapi
- deploy
- devShare
- display name
- drop
- drop series
- dynamic chart
- dynamic chart labels
- dynamic chart marker
- dynamic chart scale
- dynamic chart title
- dynamic column sort
- Dynamic Column Visibility
- dynamic data set
- dynamic grid content
- dynamic grouping
- dynamic labels
- dynamic min/max
- dynamic scale
- Dynamic Text
- Dynamic Width
- Eclipse
- elapsed time format
- embedded grid
- empty csv error
- Event Handlers
- exception handling
- export data
- expression builder
- filter
- Firefox
- flash map
- Forum
- Forums
- fragmented schema
- gantt
- gantt chart
- global function
- GMT date
- grids
- group numbering
- grouping
- hide label
- hide measure detail
- hide series
- Hierarchy
- hierarchy report
- highlight
- highlight negative numbers
- HTML
- HTML listbox
- html lists
- HTML select form
- HTML Table
- HTML5
- https
- hyperlink
- image
- Impact Analysis
- Import Elements
- Ineractive Viewer
- Information Objects
- Interactive Viewer
- invalid dates
- iServer
- JAX-WS
- joint data set
- jquery
- jsapi
- JSF
- JSP
- legend
- legend color
- Library
- line height
- locale
- localization
- marker range color
- master page
- masterpage
- Maximo
- merge data
- multi-line text
- multi-select parameter
- multi-select parameters
- multi-value parameter
- multiple series
- NetWeaver
- newspaper
- newspaper layout
- optional y-series grouping
- osgi
- overlaying elements
- page break
- parameter
- parameters
- parameters in query
- PDF Complete
- Perl
- Pie Chart
- plug-in
- postgresql encoding issue
- progress bar
- property file
- R Statistical Language
- refresh report
- relative path
- reorder table
- report engine
- report viewer title
- reporting
- Reports
- Rolling Sum
- rotated text
- rptdesign
- rptlibrary
- runtime
- scatter plot
- script
- scripted dataset
- scroll bars
- Seam
- secure connection
- series color
- series name
- session variable
- sort
- Sort Order
- SP4
- special characters
- SQL
- SQL injection
- stacked bar
- stored procedure
- Styles
- Sub Report
- summing values from two different elements
- SVG
- table
- table footer
- Themes
- TOC
- TOC with page numbers
- tomcat
- Tooltip
- transient report cache
- truncated text
- user parameters
- Vaadin
- value-of format
- version features
- Viewer
- viewer title
- visibility
- Web Service
- web viewer
- Webshpere
- Word
- xls
- XML data source


