Professional Documents
Culture Documents
1.) Define Header some where in the page as per requirement. (call header )
<?Call:header?>
<?template: header?>
<?end template?>
——————————
——————————
——————————
Sort descending
<?sort:trx_number;data-type=‘number’;order=‘descending’?>
<?format-number:fieldname;’999G999D99’?>
——————————
4) Page Breaks:
<?split-by-page-break:?>
——————————
——————————
——————————
——————————
8)Re-grouping XML Data:
Not limited by the structure of the data source
Use the tags
<?for-each-group: BASE-GROUP;GROUPING-ELEMENT?>
<?end for-each-group?>
——————————
<?if:XML_ELEMENT>Value?>
<xsl:attribute xdofo:ctx=”block” name=”background-color”>COLOR
</xsl:attribute>
<?end-if?>
——————————
10)Page totals:
Declare variable to hold page totals, following data element declaration
<?add-page-total:TotalFieldName;’element’?>
——————————
——————————
12) SQL Functions
lpad function
<?xdofx:lpad(‘aaa’,10,’.’)?>
——————————
Concatenation Function
<?xdofx:3||2?>
——————————
rpad function
<?xdofx:rpad(‘aaa’,10,’.’)?>
trim function
<?xdoxslt:trim(‘ a ‘)?>
ltrim function
<?xdoxslt:ltrim(‘ a ‘)?>
rtrim function
<?xdoxslt:rtrim(‘ a ‘)?>
decode function
<?xdofx:decode(‘xxx’,’bbb’,’ccc’,’xxx’,’ddd’)?>
Instr function
<?xdofx:Instr(‘abcabcabc’,’a’,2)?>
substr function
<?xdofx:substr(‘abcdefg’,2,3)?>
left function
<?xdoxslt:left(‘abcdefg’, 3)?>
right function
<?xdoxslt:right(‘abcdefg’, 3)?>
replace function
<?xdofx:replace(name,’John’,’Jon’)?>
to_number function
<?xdofx:to_number(‘12345’)?>
sysdate function
<?xdofx:sysdate()?>
<?xdofx:sysdate(‘dd-mon-yyyy’)?>
<?xdofx:sysdate(‘dd-mm-yyyy’)?>
<?xdofx:sysdate(‘day-dd-month-yyyy’)?>
lower
<?xdofx:lower (char)?>
upper
<?xdofx:upper(char)?>
length
<?xdofx:length(char)?>
——————————
——————————
——————————
——————————
Import Stylesheet
XSL Syntax: <xsl:import href=”url”>
BI Publisher Tag: <?import:url?>
——————————–
Variables
Declaration and Assigning Value
<?xdoxslt:set_variable($_XDOCTX,‘variable name’, 0)?>
Variables -1
Sets the value of variable_name to the current value plus the element amount
xdoxslt:set_variable($_XDOCTX,‘variable name’, xdoxslt:get_variable($_XDOCTX,‘variable
name’)+element name)
Variables -2
Get Value
<?xdoxslt:get_variable($_XDOCTX, ‘variable name’)?>
—————————–
for-each loop
<?for-each:XML group element tag name?>
<?end for-each?>
———————
IF Stament
– <?if:boolean_test?>
<?end if?>
<?if:LINE_TYPE=’LINE’ ?>
<?end if?>
——————————
——–****************************************
xdo user guied xml tags
Defining Groups?
<?for-each:XML group element tag name?>
<?end for-each?>
Images ?
url:{IMAGE_LOCATION}
url:{concat(SERVER,’/’,IMAGE_DIR,’/’,IMAGE_FILE)}
url:{concat(‘${OA_MEDIA}’,’/’,IMAGE_FILE)}
Conditional Formatting
<?if:VENDOR_NAME=’COMPANY A’?>
<?end if?>
Choose Statements
<?choose:?>
<?when:expression?>
<?otherwise?>
Cell Highlighting
<xdofo:inline-total
display-condition=”exceptfirst” <!–>
name=”InvAmt”>
Brought Forward: <!–>
<xdofo:show-brought-forward <!–>
name=”InvAmt”
format=”99G999G999D00″/>
</xdofo:inline-total>
<xdofo:inline-total
display-condition=”exceptlast” <!–>
name=”InvAmt”>
Carried Forward: <!–>
<xdofo:show-carry-forward <!–>
name=”InvAmt”
format=”99G999G999D00″/>
</xdofo:inline-total>
Running Totals
————–
Declares the “RTotVar”
variable and initializes it to 0.
Sets the value of RTotalVar to the current value plus the new Invoice Amount.
Data Handling
Sorting
———-
<?sort:xml_tag?>
<?sort:xml_tag1?> <?sort:xml_tag2?><?sort:xml_tag2?>
Regrouping
———-
To regroup the data, use the following syntax:
<?for-each-group: BASE-GROUP;GROUPING-ELEMENT?>
Regrouping by an Expression
To establish nested groupings within the already defined group, use the following
<?for-each:current-group(); GROUPING-ELEMENT?>
Using Variables
—————
Setting Properties
<?for-each@section:group name?>
where group_name is the name of the element for which you want to begin a new
section.
For example, the for-each grouping statement for this example will be as follows:
<?for-each@section:G_INVOICE?>
The closing <?end for-each?> tag is not changed.
Date Formatting
Using the Oracle Format Mask for Date
<?format-date:date_string;’ABSTRACT_FORMAT_MASK’;’TIMEZONE’?>
or
<?format-date-and-calendar:date_string;
‘ABSTRACT_FORMAT_MASK’;’CALENDAR_NAME’;’TIMEZONE’?>
or
<?format-date:hiredate;’YYYY-MM-DD’?>
Locating Data
Use this element to apply a template rule to the current element’s child nodes.
XSL Syntax: <xsl:apply-templates select=”name”>
BI Publisher Tag: <?apply:name?>
This function applies to <xsl:template-match=”n”> where n is the element name.
Call Template
————-
Use this element to call a named template to be inserted into or applied to the current
template. For example, use this feature to render a table multiple times.
Template Declaration
——————–
Use this element to apply a set of rules when a specified node is matched.
Variable Declaration
——————–
Example:
——–
<xsl:variable name=”color” select=”‘red'”/>
Assigns the value “red” to the “color” variable. The variable can then be referenced in
the template.
Import Stylesheet
—————–
Use this element to import the contents of one style sheet into another.
Note: An imported style sheet has lower precedence than the importing
style sheet.
<?xdofx:lpad(‘aaa’,10,’.’)?>
lpad(string1,padded_length,[pad_string])
———————————————
rpad(‘aaa’,10,’.’)
<?xdofx:rpad(‘aaa’,10,’.’)?>
rpad(string1,padded_length,[pad_string])
———————————————
decode(‘xxx’,’bbb’,’ccc’,’xxx’,’ddd’)
<?xdofx:decode(‘xxx’,’bbb’,’ccc’,’xxx’,’ddd’)?>
<?xdofx:Instr(‘abcabcabc’,’a’,2)?>
instr(string1,string2,[start_position],[nth_appearance])
——————————————————–
substr(‘abcdefg’,2,3)
<?xdofx:substr(‘abcdefg’,2,3)?>
substr(string, start_position,[length])
———————————————
replace(name,’John’,’Jon’)
<?xdofx:replace(name,’John’,’Jon’)?>
replace(string1,string_to_replace,[replacement_string])
——————————————————-
to_number(‘12345’) <?xdofx:to_number(‘12345’)?>
———————————————-
to_char(12345) <?xdofx:to_char(‘12345’)?>
———————————————–
———————————————–
sysdate() <?xdofx:sysdate()?>
—————————————————-
minimum
<?xdoxslt:minimum(ELEMENT_NAME)?>
—————————————————-
maximum
<?xdoxslt:maximum(ELEMENT_NAME)?>
—————————————————-
chr <?xdofx:chr(n)?>
—————————————————-
ceil <?xdofx:ceil(n)?>
—————————————————-
—————————————————-
—————————————————-
upper <?xdofx:upper(char)?>
UPPER returns char, with all letters uppercase.char can be any of the datatypes
CHAR,VARCHAR2, NCHAR, NVARCHAR2, CLOB,or NCLOB
—————————————————-
length <?xdofx:length(char)?>
The “length” function returns the length of char
—————————————————-
—————————————————-
—————————————————-
–###########################################################
–LDT files For Oracle BI Publisher Stuff ( FNDLOAD Scripts )
–###########################################################
1.DATA_TEMPLATE (Data Source .xml file)
— ———————————————————-
–============================================================
— ———————————————————-
java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD -DB_USERNAME apps -DB_PASSWORD
apps -JDBC_CONNECTION ‘(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=
(SERVICE_NAME=XX_SERVICE_NAME)))’ -LOB_TYPE DATA_TEMPLATE -LOB_CODE
XX_TEMPLATE -APPS_SHORT_NAME XXCUST -LANGUAGE en -lct_FILE
$XDO_TOP/patch/115/import/xdotmpl.lct -LOG_FILE $LOG_FILE_NAME
— ————————————————————- ———————————————————-
–============================================================
— ————————————————————- ———————————————————-
select b.concurrent_program_name,
c.user_concurrent_program_name,
b.output_file_type,
e.executable_name,
e.execution_file_name,
e.execution_method_code,
a.application_short_name ,
d.template_type_code,
d.default_language,
d.default_territory,
f.file_name
from xdo_ds_definitions_vl a,
fnd_concurrent_programs b,
fnd_concurrent_programs_tl c,
xdo_templates_vl d,
fnd_executables e,
xdo_lobs f
ORDER BY EXECUTION_FILE_NAME
—————————————————————————-
–***********************************************************
—————————————————————————
1. What is BI Publisher? Ans. It is a reporting tool for generating the reports. More than tool it is
an engine that can be integrated with systems supporting the business. 02. Is BI
Publisher integrated with Oracle Apps? Ans. Yes, it is tightly integrated with Oracle Apps for
reporting needs. In 11.5.10 instances xml publisher was used, in R12 we can it BI Publisher 03.
What is the difference between xml publisher and BI Publisher? Ans. Name is the difference,
initially it was released on the name of xml publisher ( the initial patchset), later on they have
added more features and called it Business Intelligence Publisher. In BI by default we have
integration with Data Definitions in R12 instance. Both these names can be used
interchangeably 04. What are the various components required for developing a BI publisher
report? Ans. Data Template,
5. How does the concurrent program submitted by the user knows about the data template or
layout template it should be using for generating the output? Ans. The concurrent program
‘shortname’ will be mapped to the ‘code’ of the Datatemplate.
Layout template is attached to the datatemplate; this forms the mapping between all the three. 06.
What is a datatemplate? Ans. Datatemplate is an xml structure which contains the queries to
be run against the database so that desired output in xml format is generated, this generated xml
output is then applied on to the layout template for the final output. 07. What is a layout template?
Ans. Layout template defines how the user views the output, basically it can be developed using
Microsoft word document in rft (rich text format) or Adobe pdf format.
The data output in xml format (from Data template) will be loaded in layout template at run time
and the required final output file is generated. 08. What are the output formats supported by
layout template? Ans. xls, html, pdf, eText etc are supported based on the business need. 09. Do
you need to write multiple layout templates for each output type like html/pdf? Ans. No, only
layout template will be created, BI Publisher generates desired output format when the request is
run 10. What is the default output format of the report? Ans. The default output format defined
during the layout template creation will be used to generate the output, the same can be modified
during the request submission and it will overwrite the one defined at layout template 11. Can you
have multiple layout templates for a singe data template? Ans. Yes, multiple layouts can be
defined; user has a choice here to use one among them at run time during concurrent request
submission.
12. Where do you register data and layout templates? Ans. Data template will be registered under
xml publisher administrator responsibility> Data Definitions Layout template will be
registered under xml publisher administrator responsibility>Templates tab. 13. I want to
create a report output in 10 languages, do I have to create 10 layout templates? Ans. No, BI
Publisher provides the required translation for your templates, based on the number of
languages installed in your oracle apps environment requires outputs are provided 14. What is
the required installation for using BI Pub report? Ans. BI Publisher Desktop Tool has be
installed. Using this tool you can preview or test the report before deploying the same on to the
instance. 15. How do you move your layout or data template across instances? Ans. xdoloader
is the utility that will be used. 16. What is the tool to map required data output and layout
templates so that they can be tested in local machine? Ans. Template viewer will be used for
the same. 17. Which component is responsible for generating the output in xml format before
applying it to layout template? Ans. Data Engine will take Data Template as the input and the
output will be generated in xml format which will then be applied on layout template 15. Can BI
publisher reports be used in OAF pages? Ans. XDO template utility helper java classes are
provided for the same. 16. Name some business use cases for BI reports? Ans. Bank EFT,
customer documents, shipping documents, internal analysis documents or any transactional
documents 17. How do you pass parameters to your report? Ans. Concurrent program
parameters should be passed, ensure that the parameter name/token are same as in the conc
prog defn and the data template 18. What are the various sections in the data template?
Ans. Parameter section Trigger Section Sql stmt section Data Structure section
Lexical Section
13. What does lexical section contain? Ans. The required lexical clause of Key Flex field or
Descriptive FF are created under this section 20. What triggers are supported in Data
template? Ans. Before report and After report are supported 21. Where is the trigger code
written? Ans. The code is written in the plsql package which is given under ‘defaultpackage’
tag of data template. 22. What is the file supporting the translation for a layout template?
Ans. xliff is the file that supports the translation, you can modify the same as required. 23.
How do you display the company logo on the report output? Ans. Copy and paste the logo (.gif.
or any format) on the header section of .rtf file . Ensure you resize per the company standard
Share this:
Like
Be the first to like this.
Related
R12: CE: LATEST Reconciliation, Oracle Cash Management LATEST SWIFT Bank Statement Format Mapping
AutoReconciliation and Matching Criteria Reconciliation, AutoReconciliation and Loader Details For CM with attachment
(Doc ID 1313007.1) Matching Criteria 752532.1, (optional -852640.1)
In "Cash Management" In "Cash Management" In "Cash Management"
Ramana says:
November 11, 2015 at 5:36 pm
T.V.Surendra says:
June 15, 2016 at 1:13 pm
Jacob says:
November 25, 2016 at 3:39 pm
I have HTML tags in data which is stored in the database, how could I display the processed HTML in PDF output?
Reply
Hi
Can some expert gurus help me. I am getting the output as NaN during the XML publishing. In my rtf, I have given like this
How do I avoid NaN in the output. Please help me in providing the correct syntax
Regds
Vimal
Reply
santoshkumaradda
Create a free website or blog at WordPress.com.