Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
NVL In RTF Template

Summary
NVL In RTF Template
Content
Hi Team,
How to use NVL In rtf templete
If
<ABC> is null the it should write <DEF>
Thanks
AT
Answers
-
Can we use like this ?
<?xdofx: if ABC !='' then 'ABC' else 'DEF'?> <?end if?>
Thanks
AT
1 -
yes you can write like that
0 -
Put in one column tag
<?if:string-length(ABC) != '0 '?>
<?ABC?>
<?end if?>
<?if:string-length(ABC) = '0 '?>
<?DEF?>
<?end if?>
OR
<?choose:?>
<?when:ABC!=''?> ABC <?end when?>
<?otherwise:?>DEF<?end otherwise?>
<?end choose?>
0 -
Hi Rajesh,
One small doubt
Do we need to pass it in a String or with String
<?xdofx: if ABC !='' then 'ABC' else 'DEF'?> <?end if?>
or
<?xdofx: if ABC !='' then ABC else DEF?> <?end if?>
Since ABC is Expression coming from the DB
0 -
You can directly use nvl function using xdofx function in RTF template
<?xdofx: nvl(ABC,'DEF')?> where ABC will the column or field. Thanks
1 -
Use the expression which Rajesh123 gave (<?ABC?> should be defined as BI Publisher Field)
Put in one column tag
<?if:string-length(ABC) != '0 '?>
<?ABC?>
<?end if?>
<?if:string-length(ABC) = '0 '?>
<?DEF?>
<?end if?>
0 -
<?xdoxslt:ifelse(ABC !='',ABC,DEF)?>
0 -
I have tried all the suggested options but nothing seems to work, I am pretty sure direct NVL used to work before
0 -
This is very old Thread if you still looking for an help/answer from community can you start new thread ?
https://community.oracle.com/products/oracleanalytics/categories/bi-publisher
Regards,
Arjun
0