Friday 5 October 2012

XML Publisher Interview Questions and Answers


1.     What are the XML publisher tables.
Ans>PER_GB_XDO_TEMPLATES
XDO_DS_DEFINITIONS_B
XDO_DS_DEFINITIONS_TL
XDO_DS_DEFINITIONS_VL
XDO_LOBS
XDO_TEMPLATES_B
XDO_TEMPLATES_TL
XDO_TEMPLATES_VL
XDO_TEMPLATE_FIELDS
XDO_TRANS_UNITS
XDO_TRANS_UNIT_PROPS
XDO_TRANS_UNIT_VALUES
2.     how to create report with out .rdf?
Ans> Using Data template…..see below link
3.     how to write a loop in rtf template design ?
Ans> <?for-each:G_invoice_no?>
     ……………………..<?end for each?>
4.     how to design  sub templates in rtf layout ?
Ans> using following tags..
                <?template:template_name?>
                      This is Last Page
                               <?end template?>
5.     how to call a header or footer ?
          Ans> using this tag <?call:header?> and <?call:footer?>
                We have to use header section and footer section of the page.

6.     How to break the page in specific condition ?
Ans>  <?split-by-page-break:?>
7.     How to use section break ?
Ans>  <?for-each@section:G_CUSTOMER(This is group name)?>
8.     How to create multi layouts in XMLP ?
        Ans>  using below conditions
               <?choose:?>
               <?when:CF_CHOICE=’VENDOR’?>
            Your template….
               <?end when?>
                   <?when:CF_CHOICE=’INVOICE’?>
                Your template….
              <?end when?>
                           <?when:CF_CHOICE=’RECEIPT’?>
                              Your template….
                    <?end when?>
                                              <?end choose?>
9.     How to calculate the running total in XMLP?
Ans>           <?xdoxslt:set_variable($_XDOCTX, 'RTotVar', xdoxslt:get_variable($_XDOCTX, 'RTotVar') + ACCTD_AMT(This is                                                column name) )?><?xdoxslt:get_variable($_XDOCTX, 'RTotVar')?>
10.   How to submit a layout in the backend ?
       Ans>  we have to write a procedure for this using the below code
                              fnd_request.add_layout
                             (template_appl_name      => 'application name',
                              template_code           => 'your template code',
                              template_language       => 'En',
                              template_territory      => 'US',
                              output_format           => 'PDF'
                             );
11.   How to display the images in XMLP?
        Ans> url:{'http://image location'}
                 For example, enter:
                   url:{'http://www.oracle.com/images/ora_log.gif'}
                      url:{'${OA_MEDIA}/image name'}
12.   How to pass the page numbers in rtf layout?
Ans>  <REPORT>
<PAGESTART>200<\PAGESTART>
....
</REPORT>
Enter the following in your template:
<?initial-page-number:PAGESTART?>

13.How to display  last page is differently in XML Publisher Reports.

Ans> what you want to dispay the test anything write in last of page

last page header 

<?start@last-page-first:body?>    <?end body?>

more questions i will update soon......... 
 we have any doubts on this please give the comment....i will respond...u r comment



13 comments:



  1. When i am submitting layout in the backend, Its showing database error message.



    Invoice template

    ReplyDelete
  2. Hi Ruby..
    what error message you got ?


    Thanks,
    koteswar

    ReplyDelete
  3. Good stuff You gave from these questions
    Thanks a lot

    ReplyDelete
  4. i was asked in an interview while making an xml publisher report with rdf why do we need data template when we are already using datamodel for fetching the data ?

    ReplyDelete
    Replies
    1. Hi Richa, when we are using the rdf at that time data template not required . the data template concept is coming from BI Publisher reports. when the client is asked to do report with out rdf now data template is required.




      Thanks,
      Koteswar.

      Delete
    2. Hi Koteswar,

      I have One doubt, could u tel me the how to create report without rdf ? pls explain with detail..



      Thanks,
      Kishore

      Delete

    3. Hi Kishore,

      you can create the report with out .rdf how it is please follow below steps.

      step1: instead of rdf we need to create the Data Template.
      how to create a data template please look at this post
      http://appstechnical01.blogspot.com/2012/08/using-multiple-quires-data-template-code.html

      after that save it as .xml file

      step2: go to XML Publisher Administrator
      click on home ==> click on data definition
      in the data defination you have to upload the data template(what ever previously saved one .xml file).

      STEP3: submit the CP through SRS window once the concurrent program completed normal you will get XML output
      the output .xml

      STEP4. open ms word doc upload the .xml data and create the rtf layout

      STEP5. go to XML Publisher Administrator
      click on template
      pass the cp short name as code in data definition and template and upload u r rtf layout here

      STEP6. again submit cp through srs window you will the see the layout in submition window.

      STEP7. once program is completed normal click on view output u will the output.


      if have any doubts on this please drop me the comments...i will help you on this....


      Thanks,
      Koteswar

      Delete
    4. Hi Koteswar Good stuff...it is very helpful
      I have one question while creating report with out rdf following the above processes in step 2 datadefinition we have to give the code as mandatory so what cp short name we have to given at that time and can you please explain step3 which cp we have to submit if we create what is the executable.

      Delete
  5. After completion of data template creation with out rdf how to save it as .xml file

    ReplyDelete
  6. just file-->save after that file_name.xml and select the file path as .XML


    Thanks,
    Koteswar

    ReplyDelete
  7. Hi Koteswar ,

    Appreciate for u r answer !!!

    After attaching datatemplate in datadefination .. we can run cp through srs window..so we will get output in xml format... So here my question is that how and where we can use that xml tags generated file ?

    Thanks ,
    Chandu

    ReplyDelete
  8. Hi Koteswara,

    How to Avoid Junk Characters While Running the XML publisher report in Multiple languages
    Busireddy

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete

Note: only a member of this blog may post a comment.