Handling null values in bi publisher rtf template
My requirement is replace all zeros with - sign
<if:<?sum(current-group()/BUDGET)=0?><?'-'?><?endif?> but it throws error
<if:sum(current-group()/BUDGET)=0?><?'-'?><?endif?>
http://www.oracleerpappsguide.com/2014/06/how-to-use-if-else-conditions-in-xml-publisher-rtf-template.html
brajesh,
Syntax is wrong because if budget =0 then it should replace with '-' but its not doing that in my case.
thanks
your syntax is little bit not correct, BI tags should start with <? and these should not be nested tag like <? <?.
Below is the one working for me
<?if: sum(current-group()/BUDGET)=0?><? '-'?><?end if?>
thanks for the help
same condition:
<?if:field_name=''?> - <?end if?> --------if you want to replace null with -
<?if:field_name=''?> '-' <?end if?> ---if you want to replace null with '-'
OR
<?xdofx: nvl(field_name,'-')?> ,
<?xdofx:replace(name,'','-')?>
still if you find issue , upload RTF and XML.
i took care that in sql now my concern is only to replace null values with '-'
You will end up with a datatype issue ... non-ZEROs are numeric and you want to convert ZERO to non-numeric '-' ...
upload rtf and xml , Thanks
Learn how to deploy an AI Data Platform agent, register it to the AI Registry, and introduce it to business users through Agent Hub. This session covers how to prepare an agent for deployment, configure endpoint access and authentication, invoke a deployed agent, and monitor it after deployment. The session also introduces…
Can you please help resolve this error. WebLogic version is 12c. OAS is 6.4
So I have an action passing a value to another workbook. On the other workbook, I have an expression filter and a parameter I created and it does not seem to work. Any ideas. See the images
We know you can directly export workbooks and folders from within OAC, and we know you can migrate OAC content using the FDI Content bundle. However, it's unclear what settings or steps are required in order to ensure any calculations in "Shared Objects" still carry over. When making a .dva artifact export from OAC for…
The user icon in the upper-right corner of OAC (DV) is displaying more menu options for our non-admin users than we wish to display. We would like to restrict these to only "Profile" and "Sign Out" for regular users. Is there a way to customize these menu items? Especially if we can control this via security, that would be…
What is wrong with this code