Oracle Applications - Usefull XML Tags in Bi Publisher
Oracle Applications - Usefull XML Tags in Bi Publisher
More
Oracle Applications
Friday, 6 January 2017 About Me
Unknown
USEFULL XML TAGS IN BI PUBLISHER
View my complete profile
XSL Equivalents
Blog Archive
The following table lists the BI Publisher simplified syntax with the XSL equivalents.
Supported XSL BI Publisher ▼
▼ 2017 (12)
Elements Description Syntax ▼
▼ January (12)
<xsl:value-of select= Placeholder syntax <?name?> SQL LOADER COMPLETE DOCUMENT
"name"> REPORT BUILDER COMPLETE
DOCUMENT
<xsl:apply-templates Applies a template rule to the current element's child <?apply:name?
select="name"> nodes. > ORACLE APPS TECHNICAL COURSE
DOCUMENT
<xsl:copy-of Creates a copy of the current node. <?copy-
WORK FLOW COMPLETE PROCESS
select="name"> of:name?> IN ORACLE APPS
<xsl:call-template Calls a named template to be inserted into/applied to the <?call:name?> INVENTORY CREATION IN ORACLE
name="name"> current template. APPS
USEFULL XML TAGS IN BI PUBLISHER
<xsl:sort select="name"> Sorts a group of data based on an element in the dataset. <?sort:name?>
PO,AP_INVOICE_ALL CODING IN
<xsl:for-each Loops through the rows of data of a group, used to <?for- ORACLE APPS
select="name"> generate tabular output. each:name?>
ORDER MANAGEMENT REALTIME
<xsl:choose> Used in conjunction with when and otherwise to express <?choose?> CODING
multiple conditional tests. INVENTORY CREATION PROCESS IN
ORACLE APPS
<xsl:when test="exp"> Used in conjunction with choose and otherwise to express <?
multiple conditional tests when:expressio GL MODULE PROCESS IN ORACLE
n?> APPS
<xsl:import href="url"> Import the contents of one stylesheet into another <?import:url?>
xml tags:
---------
<?if@row:SAL>3000?>
<xsl:attribute xdofo:ctx="incontext" name=background-color">red
<?end if?>
<?if@row:SAL<2000?>
<xsl:attribute name="background-color" xdofo:ctx="incontext">silver</xsl:attribute><?end if?>
<?if@row:SAL>3000?>
<xsl:attribute name="background-color" xdofo:ctx="incontext">red</xsl:attribute>
<?end if?>
<?if@row:SAL>3000?>
<xsl:attribute name="background-color" xdofo:ctx="incontext">red</xsl:attribute>
<?end if?>
alioracleapps.blogspot.com/2017/01/usefull-xml-tags-in-bi-publisher.html 1/6
2/23/23, 11:15 AM Oracle Applications: USEFULL XML TAGS IN BI PUBLISHER
To apply colors in column depending on condition:
----------------------------------------------------------------
<?if:SAL>5000?>
<xsl:attribute xdofo:ctx="block" name="background-color"> red</xsl:attribute>
<?end if?>
or
<?if:position() = last()?>
--------------- Reports is ended bosss-----------------
<? end if ?>
<?if:position() >=1?>
--------------- Reports is ended bosss-----------------
<? end if ?>
page total
-------------
<?add-page-total:pagetot;'SAL'?> dummy column beside the column(means ex:sal) in insideof for-each
ex:sal and comm
<?show-page-total:pagetot;’999G999D99’?> out of foreach just print any where in page
Choose condition:
---------------------
take the separate column and paste this in Form field help text inside of For each group.
<?choose:?>
<?when: .//SAL>3000?>
higher
<?end when?>
<?when: .//SAL<2000?>
lower
<?end when?>
<?otherwise:?>
equal
<?end otherwise?>
<?end choose?>
alioracleapps.blogspot.com/2017/01/usefull-xml-tags-in-bi-publisher.html 2/6
2/23/23, 11:15 AM Oracle Applications: USEFULL XML TAGS IN BI PUBLISHER
numbers.
or
Now i want to print page numbers and also total page number:
--------------------------------------------------------------------------------
first select the header/footer options in view .in header section draw table like column one
after put the cursor on that table next go to insert take field option-->choose the numpages-->click on OK
button.
after run the template we will see like (1/3,2/3,3/3)
here 1,2,3 are page numbers and 3 is total page number.
GROUP BY:
----------------
<?for-each-group:G_ENAME;./DEPTNO?>
<?sort:DEPTNO;'descending';data-type='number'?>
In above tag display the table data department wise. place this tag outside for-each
<?for-each-group:ROW;./DNAME?>
<?sort:DNAME;'ascending';data-type='text'?> <?end for-each-group?>
The above command is specifying that the ROW group should be then grouped by DNAME.
Using position:
------------------
<?if:position() mod 5=0?>
<xsl:attribute name=”break-before”></xsl:attribute>
<?end if?>
To write description:
---------------------
<?if: CS_MPA_DISP !=0?> Material Price Adjustment <?end if ?>
alioracleapps.blogspot.com/2017/01/usefull-xml-tags-in-bi-publisher.html 3/6
2/23/23, 11:15 AM Oracle Applications: USEFULL XML TAGS IN BI PUBLISHER
PAGE BREAK:
-------------------
<?split-by-page-break:?>
(OR)
<?for-each-group@section:G_EMPNO;DEPTNO?>//AUTOMATICALLY IT SPLIT DEPT WISE
Concatenation tag:
------------------------
<?xdofx:rpad(FIRST_NAME||LAST_NAME),30,'x')?>
<?value-of:concat(Payee/Address/City,’, ‘,Payee/Address/State)?>
If tag:
-------
<?IF:COMM=’’?>SRY<?END IF?><?IF:COMM!=’’?><?COMM?><?END IF?>
Else if:
--------
<?xdofx:if COMM!='' then SAL+COMM else SAL end if?>
DECODE TAG:
---------------------
<?xdofx:decode(COMM,’’,’sry’,COMM)?>
<?xdofx:decode(COMM,’’,ENAME,COMM||’, ’||ENAME)?>
CHR:
-------
<?xdofx:chr(65)?>
<?xdofx: to_char(sysdate,'dd-mm-yyyy')?>
alioracleapps.blogspot.com/2017/01/usefull-xml-tags-in-bi-publisher.html 4/6
2/23/23, 11:15 AM Oracle Applications: USEFULL XML TAGS IN BI PUBLISHER
ROUND:
-----------
<?xdofx: round(9.6)?>
PAGE LAYOUT:
----------------------
IT DISPLAYS INFORMATION LIKE NOTE,TERMS ETC IN THE ODD OR EVEN PAGE.
IN HEADERS AND FOOTERS REGION WE CAN DISPLAY GO TO FILE AND SELECT PAGE
SETUP AND
SELECT LAYOUT TAB THERE CHECK THE OPTIONS.
<?section:force-page-count;'end-on-odd-layout'?>
<?section:force-page-count;'end-on-even-layout'?>
Description
alioracleapps.blogspot.com/2017/01/usefull-xml-tags-in-bi-publisher.html 5/6
2/23/23, 11:15 AM Oracle Applications: USEFULL XML TAGS IN BI PUBLISHER
Where the five User Exits are used
6 comments:
Reply
Reply
Hi,
Thank you for for the post!
Quick question: would it be possible to put RTC(real time clock: hh:mm:ss) into BI publisher
template? Let's say, the business needs to print 1000 labels and instead of a 'current timestamp' -
which will be all the same on all labels, the output with RTC will be
different...hh:mm:01....hh:mm:02...
I will appreciate if get back to me. Thanks. Alex
Reply
If more people that write articles really concerned themselves with writing great content like you,
more readers would be interested in their writings. Thank you for caring about your content.
kündigen
Reply
Very useful info. Hope to see more posts soon!. brand name generator
Reply
Reply
Enter comment
alioracleapps.blogspot.com/2017/01/usefull-xml-tags-in-bi-publisher.html 6/6