Professional Documents
Culture Documents
How To BIPublisher - Tutorials Tips Tricks
How To BIPublisher - Tutorials Tips Tricks
Intro!uction
Oracle BI Publisher (formerly XML Publisher) by Oracle Corporation (the part of Oracle EBusiness Suite technolo ical stac!) is a multifunctional report "esi ner# $nfortunately% this pro"uct has ot some functional limitations# &or instance% you cannot "esi n Microsoft E'cel templates an" create reports base" on these templates# Of course% you can "esi n ()& template usin Microsoft *or" an" publish report in Microsoft E'cel base" on this template% but there are some shortcomin s of this metho"+
It,s impossible to use e'istin XLS templates# -ou .L*.-S M$S) "esi n ()& template# -ou can,t import e'istin sprea"sheet from E'cel to *or"# )here is a tabs limitation# It,s impossible to publish report usin Microsoft *or" template on separately tabsheets# ou cannot create a /i"e sprea"sheet by ()& template if the number of columns is more than 01# Publishe" Microsoft E'cel report "iffers from the "esi ne" template (especially for comple' cross table reports)# Output report is publishe" in 2)ML format# Microsoft E'cel opens such files /ith a consi"erable "elay#
.ll of these shortcomin s /ill be consi"ere" in "etail after/ar"s# So /e,3e come to the conclusion+ the re3ie/e" shortcomin s practically "isable the "esi n of comple' E'cel reports by Oracle BI Publisher# 2o/e3er% "esi n of such reports is one of the lar est part of Oracle E-Business Suite report "e3elopers, /or!# So /e,3e ot ne't ob4ecti3es+
5i3e a possibility to "esi n templates usin Microsoft E'cel .n" publish reports base" on these templates usin Microsoft E'cel
Solution path
)he solution path is base on the follo/in bac! roun"+ 6# Microsoft E'cel (3ersion 7889 an" hi her) supports :XML Sprea"sheet; "ata format# )his format is a XML file /hich contains E'cel table structure an" "ata# So this format can be use" both to "esi n an" store templates an" to publish reports# 7# XML Publisher uses XSL-XML templates for publishin reports# )hese templatess can be enerate" manually or by custom soft/are# So /e shoul" carry out se<uence of operations to create a template an" publish a report+ 6# 7# 9# 1# ># 0# @# A# Open Microsoft E'cel XLS file (by E'cel 7889 or hi her)# ."" mar!up to the template layout usin Oracle XML Publisher (eport =esi ner,s 5ui"e# Sa3e the template as :XML Sprea"sheet;# Con3ert the XML template into the XSL-XML template# $ploa" the XSL-XML template into Oracle XML Publisher# Set up a ?ie/er Options for Oracle e-Business Suite# Launch report eneratin an" publishin process# ?ie/ the output report 3ia Microsoft E'cel#
parse of the first tabsheet of template onlyD perio" of 61 "ays for the sole purpose of e3aluatin #
.ctually% you can con3ert the template 3ia sin le clic!# -ou can choose XML Spea"sheet template by clic!in Open .n" Process button# .t runtime the pro ram is lo main pro ram /in"o/)# in errors an" /arnin s of con3ersion process (you can see it on the
.s a result of the con3ersion there,ll be create" XSL-XML template in source "irectory# )he name of XSL-XML template is e<ual to the source file an" the e'tension is :XSL;#
Step 7 (Profile -F System) -ou,ll also nee" to set the 3alue :Microsoft E'cel; for the System Profile Option :?ie/er+ .pplication for XML; an" set the 3alue :Bro/ser; for the System Profile Option :?ie/er+ )e't;
If you insert the roupin ta s aroun" te't or formattin elements% the te't an" formattin elements bet/een the roup ta s /ill be repeate"# If you insert the ta s aroun" a table% the table /ill be repeate"# If you insert the ta s aroun" te't in a table cell% the te't in the table cell bet/een the ta s /ill be repeate"# If you insert the ta s aroun" t/o "ifferent table cells% but in the same table ro/% the sin le ro/ /ill be repeate"# If you insert the ta s aroun" t/o "ifferent table ro/s% the ro/s bet/een the ta s /ill be repeate" (this "oes not inclu"e the ro/ that contains the Ien" roupI ta )#
,efining +roups XLS Processor En ine for Oracle BI Publisher support only basic metho" to parse 5roups# Enter the ta s in your "ocument to "efine the be innin an" en" of the repeatin element roup# )o create the I-ear of birthI roup in the e'ample% insert the ta <?for-each:G_ EA!_"F_#$!%&?> before the I-ear of birthI fiel" that you pre3iously create"# Insert <?end for-each?> in the "ocument after the summary ro/#
)he follo/in fi ure sho/s the IEmployee brea!"o/n by year of birthI /ith the basic 5roupin an" Placehol"er mar!up ("o/nloa" the e'ample)+
If State"ents in Boilerplate Te$t .ssume you /ant to incorporate an If statement into the follo/in free-form te't+ %he program ,a- .not/ -ucce--ful0 -ou only /ant the InotI to "isplay if the 3alue of an XML ta calle" e<uals IJI# )o achie3e this re<uirement% you must use the BI Publisher conte't comman" to place the if statement into the inline se<uence rather than into the bloc! (the "efault placement)#
If you construct the co"e as follo/s+ %he program ,a- <?'f:1U22E1134N4?>not<?end 'f?> -ucce--ful0 )he follo/in un"esirable result /ill occur %he program ,anot -ucce--ful0 because BI Publisher applies the instructions to the bloc! by "efault# )o specify that the if statement shoul" be inserte" into the inline se<uence% enter the follo/in + %he program ,a- <?'f5'nl'ne-:1U22E1134N4?>not<?end 'f?> -ucce--ful0 &or e'ample% to "isplay in cell CJo JumberC messa e /hen the employee number is empty% insert the synta' <?'f5'nl'ne-:EM6L" EE_NUM#E!344?>No Num7er<?end 'f?> before the EMPLO-EEKJ$MBE( fiel" on the template# )his e'ample is "isplaye" in the fi ure belo/ ("o/nloa" the e'ample)+
(hoose State"ents in Boilerplate Te$t .ssume you /ant to incorporate an Choose statement into the follo/in free-form te't# &or e'ample% to "isplay in cell CJo JumberC messa e /hen the employee number is empty% insert the synta' <?choo-e5'nl'ne-:?> <?,hen5'nl'ne-:EM6L" EE_NUM#E!344?>No Num7er<?end ,hen?> <?other,'-e5'nl'ne-:?><?EM6L" EE_NUM#E!?><?end other,'-e?> <?end choo-e?>