Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
data element
vash
Hi,
I want to display a "-", if my data element is blank.
I am doing it in the following way:
if(dataSetRow["Price"]=="")
"-";
else
dataSetRow["Price"];
I have many data elements in a report.
SO is there a data element property which I can set, or a common way to apply the same logic to all the data elements - something like styles.
Please let me know.
Thanks,
Vash
Find more posts tagged with
Comments
bhanley
Take a look at field mapping. it should do exactly what you want and perform the operation more efficiently at run-time.<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.com/devshare/designing-birt-reports/509-sample-birt-mapping-and-sorting-example/#description'>Sample
BIRT Mapping and Sorting Example - Designs & Code - BIRT Exchange</a>
vash
The example only has a sorting condition and no field mapping.
In addition, I am using a grid and not a table.
Is it possible to apply the same condition to the data elements in a grid?
-Vash
vash
I am using a grid with 'n' data elements.
I want to display the value "NA", if data element is empty.
Applying mapping to individual elements is tedious.
Is there any other solution?
Thanks,
Vash
vash
I have posted this question previously as well, but havn't found a solution.
I have a grid with 'n' data elements.
I want to display the value "NA", if data element's value is "" (empty string).
Applying mapping to individual elements is tedious.
Is there any other solution?
Thanks,
Vash