Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 40 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 276 Oracle Analytics and AI News
- 50 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 102 Oracle Analytics and AI Trainings
- 17 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
if else in rtf template
Summary
if else in rtf template
Content
Hii All,
i want to convert following logic into rtf template format in bi publisher.I am writing this inside a loop for finding minimum.Logic is
if
c < counter then
c:=counter
end if
i tried to convert it.but it is giving error. Anyone please correct this code
<?xdofx:if c < counter then counter:=c?><?end if?>
Thank you
Answers
-
use variables concept http://adivaconsulting.com/bi-publisher/item/81-rtf-template-working-with-variables.html
0 -
<?xdoxslt:set_variable($_XDOCTX, ‘min_Date’,999)?>
<?xdoxslt:set_variable($_XDOCTX,'c',date_diff(‘d’, ORDER_DATE,DELIVERY_DATE, $_XDOLOCALE, $_XDOTIMEZONE))?><?xdofx:if min_Date < c ?><?(xdoxslt:set_variable($_XDOCTX, ‘c’,min_Date))?>
<?xdoxslt:get_variable($_XDOCTX,‘min_Date’)?>
will you please correct this code(syntax).im finding date difference and trying to find minimum (this is inside a loop-finding date diff onwards)
0