Posts

Showing posts from December, 2018

BI Publisher : Sum Function in xml publisher rtf template

We can use the below syntax to get the sum of the particular filed in rtf template: <?sum(name_off_field)?>

BI Publisher: If Condition with sub-string in rtf template

 <?xdofx:if substr(ACAD_PLAN,1,1) = 'C'  then 'Los Angeles City College' end if?>  <?xdofx:if substr(ACAD_PLAN,1,1) = 'H'  then 'Los Angeles Harbor College' end if?>  <?xdofx:if substr(ACAD_PLAN,1,1) = 'M'  then 'Los Angeles Mission College' end if?>  <?xdofx:if substr(ACAD_PLAN,1,1) = 'P'  then 'Pierce College' end if?>  <?xdofx:if substr(ACAD_PLAN,1,1) = 'S'  then 'Los Angeles Southwest College' end if?>  <?xdofx:if substr(ACAD_PLAN,1,1) = 'V'  then 'Los Angeles Valley College' end if?>  <?xdofx:if substr(ACAD_PLAN,1,1) = 'W'  then 'West Los Angeles College' end if?>  <?xdofx:if substr(ACAD_PLAN,1,1) = 'T'  then 'LA Trade-Technical Colleg' end if?>  <?xdofx:if substr(ACAD_PLAN,1,1) = 'E'  then 'East Los Angeles College' end if?>;

BI Publisher: Formatting the numbers in xml publisher rtf template

Formatting the number in required format for decimals in rtf temlate: <xsl:value-of select='format-number(SSR_TOT_EN_GRDPTS, "0.000")'/>

BI Publisher: Split by page break in rtf template

We can use the below syntax for the split by page break in rtf template. <?split-by-page-break:?>

BI Publisher: For Each Syntax in rtf template

We can use the below tag for the for-each syntax in XML publisher rtf template: <?for-each:DISTRICTPART2?> <?end for-each?>

BI Publisher:Inserting the current date and current time in BI Publisher Report

Using below 1 and 2 we can display the current date and time on the bi report. 1) <?xdoxslt:current_date($_XDOLOCALE, $_XDOTIMEZONE)?>  2) <?xdoxslt:current_time($_XDOLOCALE, $_XDOTIMEZONE)?> 3) <?xdoxslt:sysdate(‘DD-MON-YYYY HH24:MI’)?>