Top Banner

of 21

XML Publisher Questions With Answers

Jul 06, 2018

Download

Documents

Sumit Kasana
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/17/2019 XML Publisher Questions With Answers

    1/21

    XML Publisher Questions with Answers

    Overview: Oracle XML Publisher is a template-based publishing solution delivered with theOracle E-Business Suite. It provides a new approach to report design and publishing bintegrating !amiliar des"top word processing tools with e#isting E-Business Suite data reporting.$t runtime% XML Publisher merges the custom templates with the concurrent re&uest datae#tracts to generate output in P'(% )*ML% +*(% EX,EL )*ML% or even *EX* !or use withE(* and E'I transmissions

    Basic /eed !or XML0 ,onsider the !ollowing scenarios

    1e have a +'( report with tabular laout which prints in English

     /ew +e&uirements0

    2. 3ser2 wants the same +eport needs to be printed in Spanish

    4. 3ser4 wants the Same +eport needs to be printed in chart !ormat

    5. 3ser5 wants the Same +eport output in E#cel

    6. 3ser6 wants the Same +eport output to be published on intranet or internet

    7. 3ser7 wants the Same +eport output eliminating !ew columns and adding !ew other 

    $ new +'( needs to be created !or each re&uirement stated above or an e#isting +'( needs to

     be modi!ied with huge amount o! e!!ort but whereas with XML Publisher it can be done vereasil.

    XML Publisher separates a reports data% laout and translation components into threemanageable pieces at design time8 at runtime all the three pieces are brought bac" together bXML Publisher to generate the !inal !ormatted% translated outputs li"e P'(% )*ML% XLS and+*(. In !uture% i! an there is an change in laout we 9ust need to add:modi! the Laout !ile

    Data Logic: 'ata e#tracted !rom database and converted into an XML string.

    Layout: *he laout templates to be used !or the !inal output are stored and managed in the*emplate Manager.

    Translation: *he translation handler will manage the translation that is re&uired at runtime

    In brie! the steps are as !ollows0-a. ,reate a procedure and register it as ,oncurrent Program so that we write XML tags intooutput !ile. b. Build a 'ata 'e!inition ; XML *emplate using XML Publisher.c. ,reate a relation between XML *emplate ; ,oncurrent Program and run the concurrent program

    +e&uirements !or XML 'ata Ob9ect +eports

  • 8/17/2019 XML Publisher Questions With Answers

    2/21

    2. Oracle XML Publisher +elease 7.7 patch 642

    4. *emplate Builder 7.7

    *emplate builder is used to create template:laout !or our report. 3suall *emplate builder 7.7

    is available in Oracle XML Publisher patch itsel! but ou can also download it !romhttp0::edeliver.oracle.com. (irst select Oracle $pplication Server Products then select our plat!orm and then locate the Oracle XML Publisher +elease 7.=.4 Media Pac" v2 !or Microso!t1indows% as below0

    'ownload the 'es"top edition !rom the below0

    1hen ou download the XML Publisher 'es"top edition ou get a ?ip !ile containing setup !orXML Publisher 'es"top Install Shield% this installs some components into Microso!t 1ord.

    $!ter installing% the 1ord $dd-Ins is attached to the menu bar !or the word document. *his menulets ou attach an XML data source document% add the XML data to our template% set pre!erences and preview the output.

    In detail along with screenshots0-

    $ concurrent program is written that spit out an XML !ile as output such concurrent program can be o! tpe S@L or PL:S@L or Oracle +eport or an other supportable tpe% provided it can produce a XML output.

    2. )ere I have a ver simple PL:S@L procedure% which !etch the records !rom $+ tables andwrite the output in #ml tags.

    CREATE OR REPLACE PROCEDURE APPS.Demo_XML_Publisher (errbuf VARCHAR2re!"o#e$UM%ER&_"us!omer_i# VARCHAR2'AS

    )Cursor !o fe!"h Cus!omer Re"or#s)CURSOR *ml_+,re-!SSELECT "us!omer_-,me "us!omer_i#/ROM r,_"us!omers0HERE "us!omer_i# 1 !o_-umber(&_"us!omer_i#'

    )Cursor !o fe!"h "us!omer i-&oi"e re"or#s)CURSOR *ml_#e!,il(+_"us!omer_i#3 $UM%ER'SSELECT r,."us!omer_!r*_i# "us!omer_!r*_i# r,.shi+_!o_"us!omer_i#shi+_!o_"us!omer_i# r,.!r*_-umber !r*_-umber,+s.,mou-!_#ue_ori4i-,l ,ms/ROM r,_"us!omer_!r*_,ll r, ,r_+,5me-!_s"he#ules_,ll ,+s0HERE r,.shi+_!o_"us!omer_i# 1 +_"us!omer_i#3

    A$D ,+s."us!omer_!r*_i# 1 r,."us!omer_!r*_i#A$D RO0$UM67

    %E8$)/irs! li-e of XML #,!, shoul# be 69*ml &ersio-1:3.;:9

  • 8/17/2019 XML Publisher Questions With Answers

    3/21

    )/or e,"h re"or# "re,!e , 4rou+ !,4 6P_CUSTOMER< ,! !he s!,r!)/$D_/LE.PUT_L$E(/$D_/LE.OUTPUT=6P_CUSTOMER

  • 8/17/2019 XML Publisher Questions With Answers

    4/21

    PRO8RAM_SHORT_$AME 1F:$MO3/*A'3EAO+II/$LC

    F:PAI/DOI,ESC

    - FPAI/DOI,ESC

    F,3S*OME+A*+XAI'C>

  • 8/17/2019 XML Publisher Questions With Answers

    5/21

    F,3S*OME+AI'C222KF:,3S*OME+AI'C

    FI/DOI,EA/3MBE+C464255F:I/DOI,EA/3MBE+C

    F$MO3/*A'3EAO+II/$LC=27.K=F:$MO3/*A'3EAO+II/$LC

    F:PAI/DOI,ESC

    F:PA,3S*OME+C

    F:,3S*OME+I/(OC

    . Save the above code as SampleXml+eport.#ml

     /ote0 Be!ore saving the XML string in notepad remove the dashes  

    >. ,reate *emplate:Laout !or the report using *emplate Builder. )ere is a sample template.

     /ote the !ollowing0

    *he data !ields that are de!ined on the template

    (or e#ample0 ,ustomer /ame% ,ustomer Id

    *he elements o! the template that will repeat when the report is run.(or e#ample% ,ustomer tr# id % Invoice /umber and Original $mount 'ue. $ll these !ields on thetemplate will repeat !or each Emploee that is reported.

    K. Mar" up our template laout.

    Li"e a mail-merge document theres placeholders !or the data oure going to add% and then oucan add whatever !ormatting ou li"e.

    2

  • 8/17/2019 XML Publisher Questions With Answers

    6/21

    In this step we do 4 processes% registering concurrent program as 'ata 'e!inition in templatemanager 

    $nd register the template using the data de!inition created.

    o to XML Publisher $dministrator-C'ata 'e!initions-C,reate 'ata de!inition.

    )ere we !ill all the details to create data de!inition /O*E0 Ma"e sure the code o! the data de!inition must be the same as the short name o! the,oncurrent Program we registered !or the procedure. So that the concurrent manager can retrievethe templates associated with the concurrent program

    1e can add our #ml !ile SampleXml+eport.#ml in data de!inition here0

    2=. /ow create the template with the help o! template manager 

    $t the runtime the concurrent managers re&uest inter!ace will present the list o! availabletemplates with respect to the data de!inition registered. 1e will upload the rt! template !ilecreated here. 1e will select the language and territor.

    1e can upload di!!erent templates !or di!!erent languages and territories.

    2. /ow run the concurrent program to get the desired output.

    (rom the receivables responsibilit% use the submit re&uest !orm to run the concurrent re&uest.

    *he de!ault laout is displaed which we can change as per the re&uirement. (or changing thetemplate clic" on options to loo" !or all templates register with that concurrent program.

    )ere in the above e#ample m template is SampleXml+eport which is displaed in laout !ield.

    $nd once the re&uest is submitted we will get the output in P'( as

    *his is the !inal output as desired in the P'( !ormat.

    Dynamic Content using Sub Temlates

    !y Tim De"ter#Oracle on Dec $%& '$%%

    I have written about sub templates in the past on a !ew occasions8 the principle behind them is prett simple. I! ou have common report components that can be shared across reports8 be the bloc"s o! te#t li"e standard contract clauses or mabe some common calculation or !unction%drop them into a sub template and share the love. 'evelop once% use everwhere$ colleague was recentl tas"ed with conditionall bringing into a report output% paragraphs o!static te#t based on some user pre!erences. *hats an ideal candidate !or a sub template approach8drop all o! the paragraphs in to an +*( subtemplate and then 9ust conditionall pull them in based on some boolean e#pressions.

    ou might% &uite naturall thin" about conditionall importing a series o! sub templates ratherthan de!ining one% with all the content. )owever% XSL does not allow the conditional import o!sub templates so ou must ta"e the single template approach. ou can o! course% import multiplesub templates i! ou have a lot o! content to bring in but in most cases I would e#pect a singlesub template will su!!ice.

    BIP does need to "now what those paragraphs need to be !or each user whether thats as a set o! parameter values or a data element in the incoming data set. (or this e#ample I have used both

  • 8/17/2019 XML Publisher Questions With Answers

    7/21

    approaches and the wor" all !lavors o! BIP. Implementation o! the sub template onto the serversis going to be a little di!!erent but the main principle is the same. I have mercilessl ripped out anice graphic !rom Leslies doc writer e#traordinaire documentation.

    *his is !or the 22g version that supports loading sub templates into the report catalog as ob9ects.*he can then be re!erenced in our main template using the import statement0

    FGimport0#do#sl0:::subtemplate!older:subtemplatename.#sbGC

    *he subtemplate !older is going to be !rom the :Shared(olders or :M (olders root. (or instance%I have a sub template Qparagraphs loaded into a Qtest !older under Shared (olders. *he importstatement in m main template is QFGimport0#do#sl0:::*est:ParaSub*emplate.#sbGC

    3pdate !rom Leslie

    (or those o! ou testing using our own M (older area. *he sn ta# isFGimport0#do#sl0:::Rusername:path to subtemplate.#sbGC where username is our user name. (or e#ample0 FGimport0#do#sl0:::Rtde#ter:Subtemplates:*emplate2.#sbGC

    +ecommend ou move them into the shared !older area in production.

    (or 2

  • 8/17/2019 XML Publisher Questions With Answers

    8/21

     paragraph in!ormation to be in the main dataset02. 3sing parameters to allow the user to select the appropriate paragraphs to be brought in. *hismeans creating the parameters and ensuring that ou have set the propert on the data model toinclude the parameter values in the XML result set.

    Once thats done its 9ust a simple case o! using id statements to chec" i! a given paragraph should be included0

    69if?.PARA31=3=9 3&%!r0ea#h,G_in4!i#e_n!&>  ********..3&en$ %!r ea#h&>

    5.  h!" t! $esi(n sub te)plates in rt% la6!ut & Ans> usin( %!ll!"in( ta(s..

  • 8/17/2019 XML Publisher Questions With Answers

    9/21

      3&te)plate,te)plate_na)e&>  This is Last Pa(e  3&en$ te)plate&>

    7.  h!" t! #all a hea$er !r %!!ter &  Ans> usin( this ta( 3all,hea$er&> and FGcall0!ooterGC  We ha4e t! use hea$er se#ti!n an$ %!!ter se#ti!n !% the pa(e.

    8.  9!" t! brea+ the pa(e in spe#i%i# #!n$iti!n & Ans> 3&split0b60pa(e0brea+,&>

    :.  9!" t! use se#ti!n brea+ & Ans> 3&%!r0ea#h;se#ti!n,G_

  • 8/17/2019 XML Publisher Questions With Answers

    10/21

    3&start;last0pa(e0%irst,b!$6&> FGend bodGC

    )!re uesti!ns i "ill up$ate s!!n........."e ha4e an6 $!ubts !n this please (i4e the #!))ent.... i "ill resp!n$...u r #!))ent

    1hat is BI PublisherG  $. It is a reporting tool !or generating the reports. More than tool it is an engine that can be  integrated with sstems supporting the business.

      Is BI Publisher integrated with Oracle $ppsG  es% it is tightl integrated with Oracle $pps !or reporting needs. In 22.7.2< instances #ml publisher was used% in +24 we can it BI Publisher 

      1hat is the di!!erence between #ml publisher and BI PublisherG  /ame is the di!!erence% initiall it was released on the name o! #ml publisher the initial patchset% later on the have added more !eatures and called it Business Intelligence Publisher. In

    BI b de!ault we have integration with 'atade!initions in +24 instance. Both these names can beused interchangeabl

      1hat are the various components re&uired !or developing a BI publisher reportG  'ata *emplate% Laout template and the integration with ,oncurrent Manager.

      )ow does the concurrent program submitted b the user "nows about the datatemplate orlaout template it should be using !or generating the outputG  *he concurrent program Qshortname will be mapped to the Qcode o! the 'atatemplate.Laout template is attached to the datatemplate% this !orms the mapping between all the three.

      1hat is a datatemplateG  'atatemplate is an #ml structure which contains the &ueries to be run against the databaseso that desired output in #ml !ormat is generated% this generated #ml output is then applied on tothe laout template !or the !inal output

      1hat is a laout templateG  Laout template de!ines how the user views the output% basicall it can be developed usingMicroso!t word document in r!t rich te#t !ormat or $dobe pd! !ormat. *he data output in #ml!ormat !rom 'ata template will be loaded in laout template at run time and the re&uired !inaloutput !ile is generated.

      1hat are the output !ormats supported b laout templateG  #ls% html% pd!% e*e#t etc are supported based on the business need.

      'o ou need to write multiple laout templates !or each output tpe li"e html:pd!G  /o% onl laout template will be created% BI Publisher generates desired output !ormat whenthe re&uest is run

      1hat is the de!ault output !ormat o! the reportG

  • 8/17/2019 XML Publisher Questions With Answers

    11/21

      *he de!ault output !ormat de!ined during the laout template creation will be used togenerate the output% the same can be modi!ied during the re&uest submission and it will overwritethe one de!ined at laout template

      ,an ou have multiple laout templates !or a singe data templateG

      es% multiple laouts can be de!ined% user has a choice here to use one among them at runtime during conc re&uest submission

      1here do ou register data and laout templatesG  Laout template will be registered under #ml publisher administratorresponsibilitC*emplates tab.  'ata template will be registered under #ml publisher admininstrator responsibilitC 'ata'e!initions

      I want to create a report output in 2< languages% do I have to create 2< laout templatesG

      /o% BI Publisher provides the re&uired translation !or our templates% based on the numbero! languages installed in our oracle apps environment re&uires outputs are provided

      1hat is the re&uired installation !or using BI Pub reportG  BI Publisher des"op tool has be installed. 3sing this tool ou can preview or test the report be!ore deploing the same on to the instance.

      )ow do ou move our laout or data template across instancesG  #doloader is the utilit that will be used.

    1hat is the tool to map re&uired data output and laout templates so that the can be tested inlocal machineG  *emplate viewer will be used !or the same.

      1hich component is responsible !or generating the output in #ml !ormat be!ore appling it tolaout templateG  'ataEngine will ta"e 'ata*emplate as the input and the output will be generated in #ml!ormat which will then be applied on laout template

      ,an BI publisher reports be used in O$( pagesG  X'O template utilit helper 9ava classes are provided !or the same.

      /ame some business use cases !or BI reportsG  Ban" E(*% customer documents% shipping documents% internal analsis documents or antransactional documents

      )ow do ou pass parameters to our reportG  ,oncurrent program parameters should be passed% ensure that the parameter name:to"en aresame as in the conc prog de!n and the data template

  • 8/17/2019 XML Publisher Questions With Answers

    12/21

      1hat are the various sections in the data templateG  Parameter section  *rigger Section  S&l stmt section  'ata Structure section

      Le#ical Section

      1hat does le#ical section containG  *he re&uired le#ical clause o! Ue (le# !ield or 'escriptive (( are created under thissection

      1hat triggers are supported in 'ata templateG  Be!ore report and $!ter report are supported

      1here is the trigger code writtenG  *he code is written in the pls&l pac"age which is given under Qde!aultpac"age tag o! data

    template.

      what is the !ile supporting the translation !or a laout templateG$. #li!! is the !ile that supports the translation% ou can modi! the same as re&uired.

      @. )ow do ou displa the compan logo on the report outputG$. ,op and paste the logo .gi!. or an !ormat on the header section o! .rt! !ile . Ensure ouresiVe per the compan standards.

    *T+ Temlate : ,or-ing with variables

    Lets see how we can use the variables to store temporar data or use !or calculation. *his isachieved using N#do#slt0 !unction. *hese are the BI Publisher e#tension o! standard #slt!unctions.

    3se #do#slt0setAvariable !unction to set :initialiVe the variable and #do#slt0getAvariable!unction to get the variable value. WAX'O,*X is the Sstem variables to set the X'O ,onte#t.

    :initialiVe a variables:

    FG#do#slt0setAvariableWAX'O,*X% Qcounter%

  • 8/17/2019 XML Publisher Questions With Answers

    13/21

    :1or"ing in a loop:

    FG#do#slt0setAvariableWAX'O,*X% Qcounter%

  • 8/17/2019 XML Publisher Questions With Answers

    14/21

    1e can use X'OLoader utilit to migrate both data template and laout. Below is the e#ample0

    Data Template:

      9ava oracle.apps.#do.oa.util.X'OLoader 3PLO$' T

      -'BA3SE+/$ME W[appsAuser\ T  -'BAP$SS1O+' W[appsApwd\ T  -'B,A,O//E,*IO/ W[*/SAS*+I/\ T  -LOBA*PE '$*$A*EMPL$*E T  -$PPSAS)O+*A/$ME XX,3S* T  -LOBA,O'E XXA'*A+EPO+* T  -L$/3$E en T  -*E++I*O+ 3S T  -X'OA(ILEA*PE XML T  -/LSAL$/ W[/LSAL$/\ T  -(ILEA,O/*E/*A*PE Qte#t:html T

      -(ILEA/$ME XXA'*EMPL$*E.#ml T  -LOA(ILE XXA'*EMPL$*E.#ml.log T  -,3S*OMAMO'E (O+,E

    (I/AS*$*3SHWG

    Layout:

      9ava oracle.apps.#do.oa.util.X'OLoader 3PLO$' T  -'BA3SE+/$ME W[appsAuser\ T  -'BAP$SS1O+' W[appsApwd\ T

      -'B,A,O//E,*IO/ W[*/SAS*+I/\ T  -LOBA*PE *EMPL$*EASO3+,E T  -$PPSAS)O+*A/$ME XX,3S* T  -LOBA,O'E XXA'*A+EPO+* T  -L$/3$E en T  -*E++I*O+ 3S T  -X'OA(ILEA*PE +*( T  -/LSAL$/ W[/LSAL$/\ T  -(ILEA,O/*E/*A*PE Qapplication:rt! T  -(ILEA/$ME XXAL$O3*.rt! T  -LOA(ILE XXAL$O3*.rt!.log T  -,3S*OMAMO'E (O+,E

    Do we nee) to create multile layout temlates 0or rinting

    reort in multile languages.

    1e can achieve multi language report b two was

  • 8/17/2019 XML Publisher Questions With Answers

    15/21

    2. 'i!!erent laout template !or di!!erent languages *his approach can be chosen i! thelaout is also di!!erent !rom language to language.

      4. enerate XLI(( template !or each language

      XLI(( XML LocaliVation Interchange (ile (ormat 0 !ormat !or e#changing localiVationdata. XML based !ormat that enables translators to concentrate on the te#t to be translated. 1euse this option when we want to use the same laout and appl speci!ic translation.

    Can you have multile layout temlates 0or a singe )ata

    temlate.

    es Multiple laouts can be attached% so that user will have a choice here to use one amongthem at the time o! concurrent program submission

    /ow to get a outut o0 a XMLP reort in )i00erent 0ormatsli-e PD+& DOC& XLS& TXT .

    1hile submitting the concurrent program ou select the output !ormat in options !orm o! N3p on,ompletions selection.

    ,hat is Data Temlate an) Layout Temlate.

    Data Template:'atatemplate is an #ml structure which contains the &ueries to be run against the database so that

    desired output in #ml !ormat is generated% this generated #ml output is then applied on to thelaout template !or the !inal output

    Layout Template:Laout template de!ines how the user views the output% basicall it can be developed usingMicroso!t word document in r!t rich te#t !ormat or $dobe pd! !ormat. *he data output in #ml!ormat !rom 'ata template will be loaded in laout template at run time and the re&uired !inaloutput !ile is generated.

    /ow )oes the concurrent re1uest relate both )ata temlate

    an) layout temlate it shoul) be using 0or generating theoutut.

    *he concurrent program Qshort name will be mapped to the Qcode o! the 'ata template. Laouttemplate is attached to the data template% this !orms the mapping between all the three.

  • 8/17/2019 XML Publisher Questions With Answers

    16/21

    ,hat are the various comonents re1uire) 0or )eveloing a

    !( ublisher reort.

    2. 'ata *emplate

    4. Laout template

    5. Integration with Oracle ,oncurrent Manager 

    ,hat is the )i00erence between XML ublisher an) !(

    Publisher.

     /ame is the di!!erence% XML Publisher toda is onl !ound within E-Business Suite. Prior torelease 24% it was added in via a patch. In +24% it comes pre-installed. Both these names can be

    used interchangeabl.XML Pub operates entirel within EBS and can onl be used within EBS. BIP can be installed asa standalone version running o!! o! several O,6 compliant engines% such as $pplication Serverand *omcat. BIP can be pointed anwhere% so ou could do reports out o! an OL*P or warehousedatabase% MSS@L and even within EBS.

    Licensing is alread included in EBS% and the standalone costs whatever plus maintenance.

    BI Publisher is based on O,6% which is a 4EE compliant engine% which !or all practical purposes% is a 1eb server. ou see O,6 in lots o! other Oracle products which tpicall haveone thing in common0 the e#pose their application to the user via a 1eb inter!ace. XMLP is also based on this because EBS runs o!! o! $pplication Server.

    Both include a des"top component% which is an add-in to 1ord% and the wor" there is the sameregardless o! which !lavor oure using. ou can create templates and publish them% there being aslight di!!erence in how each version does that.

    ,hat triggers are suorte) in Data temlate.

    *here are two di!!erent triggers supported b 'ata *emplate0

    2. Be!ore *rigger 

    4. $!ter *rigger 

    ,hat are the main XML Publisher )atabase Tables.

    )ere are the !ew important tables o! XMLP0X'OA'SA'E(I/I*IO/SABX'OA'SA'E(I/I*IO/SA*LX'OA'SA'E(I/I*IO/SADL

  • 8/17/2019 XML Publisher Questions With Answers

    17/21

    X'OALOBSX'OA*EMPL$*ESABX'OA*EMPL$*ESA*LX'OA*EMPL$*ESADLX'OA*EMPL$*EA(IEL'S

    X'OA*+$/SA3/I*SX'OA*+$/SA3/I*AP+OPSX'OA*+$/SA3/I*AD$L3ES

    ,here an) ,hat is the co)e written in the Data Temlate

    Trigger.

    *he code is written in the pls&l pac"age which is mentioned under Qde!aultpac"age tag o! datatemplate.

    what is the 0ile suorting the translation 0or a layouttemlate.

    XLI(( is the !ile that supports the translation% we have one XLI(( !ile !or each language.

    /ow to )o Looing in XMLP.

    ou can use the below snta# !or looping0 

    FG!or-each0loopingAnodeAnameGC...FGend !or-eachGC 

    /ow to create sub temlates in rt0 Temlate.

    /ere is the Sub Temlate tag:

    FGtemplate0header GC

    ]sub template design:tags]FGend templateGC

    )ere Qheader is the sub template name.

    $!ter that ou call Qheader sub template an where in the rt! with below snta#0FGcall0header GC

  • 8/17/2019 XML Publisher Questions With Answers

    18/21

    /ow )o you agebrea-s a0ter seci0ic rows.

    ,e can use below tag 0or age brea-:

    !ut to use this con)itionally we can use below synta":

    2.i0:osition34 mo) 56$ .7

      2.slit#by#age#brea- :.7

    2.en) i0.7

    Note: we shoul) not use split-by-page-break  in atable layout8

    /ow to create a con)itional Layout in XMLP.

    )ere is the snta# !or creating di!!erent laouts based on condition0

    FGchoose0GC

      FGwhen0,(A,)OI,EHDE/'O+GC  ..design our Laout here..  FGend whenGC

      FGwhen0,(A,)OI,EHI/DOI,EGC  ..design our Laout here..  FGend whenGC

      FGwhen0,(A,)OI,EH+E,EIP*GC  ..design our Laout here..  FGend whenGC

    FGend chooseGC

    /ow to restrict rows in a 9rou base) on some con)ition inXMLP.

    1e can use below snta# to restricting the rows in the roup based on condition0

    Synta":

    FG!or-each0roupA/ame^.:(ieldAname with ,ondition_GC

  • 8/17/2019 XML Publisher Questions With Answers

    19/21

    "amle:

    FG!or-each0EMPA'E*$ILS^EMPA$''+ESSH_GC

    In this e#amples it will !ilter the +ecords with EMPA$''+ESS is not /ull and 'isplas in the+eport.

    /ow to han)le ;

  • 8/17/2019 XML Publisher Questions With Answers

    20/21

    *his adds 7 to variable + and displas itFG#do#slt0setAvariableWAX'O,*X% Q+% #do#slt0getAvariableWAX'O,*X% Q+Y7GC

    *his subtracting 4 to varaible + and displas itFG#do#slt0setAvariableWAX'O,*X% Q+% #do#slt0getAvariableWAX'O,*X% Q+-4GC

    Similarl 3 can use an mathematical Operation to the variable +.

    /ow to Sort Data in the XMLP.

    Synta":#

    ,ase 20-FGsort0(ieldA/ameGCFG(ieldA/ameGCIt sorts the data in $scending order b 'e!ault.i! Order B is not mentioned

    ,ase 40-

    FGsort0(ieldA/ame8Order bQGCIt sorts the data based on Order B mentioned here li"e $scending Or 'escending

    ,ase 50-FGsort0(ieldA/ame8Order bQ8data-tpeHte#tGCIt sorts the String 'ata based on Order B mentioned here li"e $scending Or 'escending

    "amles:#

    ,ase 20-FG!or-each0EMPA'E*$ILSGC

    FGsort0EMPA/OGCFGEMPA/$MEGCFGend !or-eachGC,ase 40-FG!or-each0EMPA'E*$ILSGCFGsort0EMPA/O8descendingQGCFGEMPA/$MEGCFGend !or-eachGC

    ,ase 50-FG!or-each0EMPA'E*$ILSGCFGsort0EMPA/$ME8ascendingQ8data-tpeHte#tGCFGEMPA/$MEGCFGend !or-eachGC

    /ow to reeat the /ea)er o0 the temlate on each an) every

    age o0 the outut in XMLP.

    Use 6b

  • 8/17/2019 XML Publisher Questions With Answers

    21/21

    ,hat are the )i00erent ways to show>insert an image on

    XMLP layout.

    *here are 6 di!!erent was to insert:show an image in rt!0

    2. Insert an image directl on rt! 9ust b using MS word standard !eature

    4. 3sing O$AME'I$0 storing on server and giving phsical path o! the image

    5. 3sing 3+L o! a image hosted on some website

    6. +etrieving the image store in a database as BLOB tpe

    Can XML ublisher reorts be use) in OA+ ages.

    1e can use XDO temlate utility helper 9ava classes to embed XMLP report on O$ Pages

    ,hich comonent is resonsible 0or generating the outut in

    XML 0ormat be0ore alying it to layout temlate.

    'ataEngine will ta"e 'ata*emplate as the input and the output will be generated in #ml !ormatwhich will then be applied on laout templateMore in!ormation0 http0::oracleappsdna.com:4