How to put 0 instead of blank in rtf template

1.3k Views Asked by At
2

There are 2 best solutions below

1
On

To me, the simplest way to do that is to use NVL function in query that populates the report, e.g.

select nvl(that_value, 0) as value
from ...

which means that it'll return value (if it exists) or 0 (if value doesn't exist).

10
On

Try one of these:

<?xdofx:if your_element!='' then your_element else 0 end if?>

<?xdoxslt:ifelse(your_element!='', your_element, 0)?>