XML Publisher Looping

Hello everyone,
I have an Invoice XML source which has the following grouping structure:
- <TMP002>
- <LIST_G_ORDER_BY>
- <G_ORDER_BY>
<ORDER_BY>111</ORDER_BY>
- <LIST_G_INVOICE>
- <G_INVOICE>
<BILL_CUST_NAME>Name 1</BILL_CUST_NAME>
<BILL_ADDRESS1>Addr 1</BILL_ADDRESS1>
<BILL_ADDRESS2>Addr 11</BILL_ADDRESS2>
- <LIST_G_INV_TERM>
- <G_INV_TERM>
- <LIST_G_LINE_TOTAL>
- <G_LINE_TOTAL>
- <LIST_G_LINES>
- <G_LINES>
<LINE_NUMBER>1</LINE_NUMBER>
<LINE_TYPE>LINE</LINE_TYPE>
<ITEM_DESCRIPTION>ITEM_1</ITEM_DESCRIPTION>
<TRX_NUMBER>11</TRX_NUMBER>
</G_LINES>
</LIST_G_LINES>
</G_LINE_TOTAL>
</LIST_G_LINE_TOTAL>
</G_INV_TERM>
</LIST_G_INV_TERM>
</G_INVOICE>
</LIST_G_INVOICE>
</ORDER_BY>
- <G_ORDER_BY>
<ORDER_BY>222</ORDER_BY>
- <LIST_G_INVOICE>
- <G_INVOICE>
<BILL_CUST_NAME>Name 2</BILL_CUST_NAME>
<BILL_ADDRESS1>Addr 2</BILL_ADDRESS1>
<BILL_ADDRESS2>Addr 22</BILL_ADDRESS2>
- <LIST_G_INV_TERM>
- <G_INV_TERM>
- <LIST_G_LINE_TOTAL>
- <G_LINE_TOTAL>
- <LIST_G_LINES>
- <G_LINES>
<LINE_NUMBER>1</LINE_NUMBER>
<LINE_TYPE>LINE</LINE_TYPE>
<ITEM_DESCRIPTION>ITEM_2</ITEM_DESCRIPTION>
<TRX_NUMBER>22</TRX_NUMBER>
</G_LINES>
</LIST_G_LINES>
</G_LINE_TOTAL>
</LIST_G_LINE_TOTAL>
</G_INV_TERM>
</LIST_G_INV_TERM>
</G_INVOICE>
</LIST_G_INVOICE>
</ORDER_BY>
</G_ORDER_BY>
</LIST_G_ORDER_BY>
</TMP002>
I am using the following looping structure within my template:
Following code has been used behind the form feilds.
Company Logo INVOICE
Header Section:
(Starting for loop for each transaction number)
<?for-each@SECTION:G_INVOICE?><?sort:TRX_NUMBER;'ascending';data-type='text'?>
(Starting for loop for each invoice term (this is used if an invoice is being paid in multiple installments. That way, each installment will be printed as saperate invoice stub))
<?for-each@SECTION:G_INV_TERM?><?sort:TERM_SEQUENCE_NUMBER;'ascending';data-type='number'?>
Customer Name: <?/TMP002/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE/G_INVOICE/BILL_CUST_NAME?>
Address Line 1: <?/TMP002/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE/G_INVOICE/BILL_ADDRESS1?>
Address Line 2: <?/TMP002/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE/G_INVOICE/BILL_ADDRESS2?>
(Starting for loop for each invoice line)
<?for-each:G_LINES?>
Line Number: <?LINE_NUMBER?>
Line Type: <?LINE_TYPE?>
Trx Number: <?TRX_NUMBER?>
Item Desc: <?ITEM_DESCRIPTION?>
(Ending loop 1)
<?end for-each-group?>
(Ending loop 2)
<?end for-each-group?>
(Ending loop 3)
<?end for-each-group?>
Now, here starts the problem:
Previewing the report gives me an output like this.
Invoice 1:
Company Name Logo
Customer Name: Name 1
Address Line 1: Addr 1
Address Line 2: Addr 11
Line Number: 1
Line Type: LINE
Trx Number: 11
Item: Item_1
Invoice 2:
Company Name Logo
Customer Name: Name 1
Address Line 1: Addr 1
Address Line 2: Addr 11
Line Number: 1
Line Type: LINE
Trx Number: 22
Item: Item_2
Invoice 2 should be printing the "Customer Name", "Address Line 1" and "Address Line 2" as "Name 2", "Addr 2" and "Addr 22"respectively, where as it still prints those credentials belonging to Invoice 1.
Any suggestions would be of a great help.
Thanks.

Hello,
Try this:
<?for-each@SECTION:G_INVOICE?><?sort:TRX_NUMBER;'ascending';data-type='text'?>
<?for-each@SECTION:G_INV_TERM?><?sort:TERM_SEQUENCE_NUMBER;'ascending';data-type='number'?>
Customer Name: <?../../BILL_CUST_NAME?>
Address Line 1: <?../../ BILL_ADDRESS1?>
Address Line 2: <?../../ BILL_ADDRESS2?>
<?for-each:G_LINES?>
Line Number: <?LINE_NUMBER?>
Line Type: <?LINE_TYPE?>
Trx Number: <?TRX_NUMBER?>
Item Desc: <?ITEM_DESCRIPTION?>
<?end for-each-group?>
<?end for-each-group?>
<?end for-each-group?>
Hope that helps!

Similar Messages

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • Looping in XML publisher

    For this problem I went through
    following links
    Re: FOR loop in XML Publisher
    Re: How do you iterate through a string?
    Re: How can print blank rows for XML output report..
    Based on the information I created one template
    as follow
    <?for-each:xdoxslt:foreach_number($_XDOCTX,1,3,1)?>
    <?for-each:/ROWSET?>
    <?for-each:ROW?> DEPT ---it (DEPT)is a XML tag generated with desktop tool
    <?end for-each?>
    <?end for-each?>
    <?end for-each?>
    XML is
    - <ROWSET>
    <PAR>2</PAR>
    - <ROW>
    <DEPT>Z1</DEPT>
    <DATA>2112</DATA>
    </ROW>
    - <ROW>
    <DEPT>A1</DEPT>
    <DATA>7985</DATA>
    </ROW>
    - <ROW>
    <DEPT>B1</DEPT>
    <DATA>8452</DATA>
    </ROW>
    - <ROW>
    <DEPT>B2</DEPT>
    <DATA>2159</DATA>
    </ROW>
    </ROWSET>
    I am now successful in repeating the record sets but not individual records.
    Suppose XML contains single record for
    Z1
    A1
    B1
    B2
    This is the record set.
    Now what I am getting is
    Z1
    A1
    B1
    B2
    Z1
    A1
    B1
    B2
    Z1
    A1
    B1
    B2
    But I want it in the form
    Z1
    Z1
    Z1
    .A1
    A1
    A1
    B1
    B1
    B1
    C1
    C1
    Please help me in the issue.
    Thanks in advance
    C1

    Hiii,
    Sorry about the @row. I was in a bit of a hurry. But you're right. The @row is the row of the table.
    try just to use the position() and last().
    <?if:position()!=last()?>
    <!-- Add page break -->
    <?end if?>
    br Kenneth

  • XML Publisher Multiple loops page break

    In my XML Publisher template i am haveing nested loops. The tag <?split-by-page-break:?> is working fine for all but the last iteration. Is there a tag for page break which work always irrespective of the iteration.
    I cannot use ctrl+enter in the template as the whole page is a table whose headers are repeating and on inserting the ctrl+enter the table break.
    Is there any other way to achieve the functionality of ctrl+enter through the xml tag.

    Hi,
    Yes, i was abe to do this, i moved the Customer name filed above the Invoice group and added extra conditin in the rtf.
    Regards,
    RR

  • Xml publisher report problem

    I have a xml publisher report which list job names. After submitting concurrent program, I am getting below error
    A semi colon character was expected. Error processing resource
    some of the Jobs have special character '&'. below is code
    CREATE OR REPLACE PACKAGE BODY XML_RPT AS
        FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
        l_ret_str VARCHAR2(5000);
        BEGIN
            l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
            RETURN l_ret_str;
        END XML_TAG;
         PROCEDURE JOBS(errbuf          OUT  VARCHAR2,
                         retcode         OUT  NUMBER) IS
        CURSOR inv_Cur  IS
            select name          
            from per_jobs pv;        
         xmldata            varchar2(1000);
         l_sqlstr           varchar2(1000);
         l_seqnum           varchar2(3);
         l_job_name      varchar2(100);
        BEGIN
          xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
          xmldata :=xmldata|| '<JOB>';
          xmldata := xmldata||' <LIST_JOB>';
          fnd_file.put_line(fnd_file.output,xmldata);    
          FOR rpt_rec IN inv_Cur LOOP
              xmldata := '<JOB_REC>';
              l_job_name := replace(rpt_rec.JOB_NAME,'&','&amp');         
              xmldata := xmldata || XXMCG_XML_TAG('JOB_NAME',L_JOB_NAME);
              xmldata :=xmldata|| '</JOB_REC>';
              fnd_file.put_line(fnd_file.output,xmldata);
          END LOOP;
          xmldata := '</LIST_JOB>';
          xmldata := xmldata||'</JOB>';
         fnd_file.put_line(fnd_file.output,xmldata);
        EXCEPTION
        WHEN OTHERS THEN
             fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
        END JOBS;
    END XML_RPT;

    I resolved the problem. I have to put ; in the special character.

  • Parse Error in XML Publisher .rtf template during "preview"

    I've created a template based upon a working one with a few tweaks, but it does not work. It validates okay in XML PUblisher but the preview fails with this error:
    Caused by: oracle.xdo.parser.v2.XMLParseException: Attribute 'select' not found in 'xsl:for-each'.
    at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
    at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
    ... 14 more
    Since I don't have explicitly "xsl" anywhere, the actual problem is unclear to me. I have attached the template. I'd appreciate any sugestions. All I need to do is
    1. Loop through all Campus Community checklist items
    2. Loop through all STDNT_TEST_COMP rows
    As I cannot attach the template or sample data, I"m pasting below the relevant portion of the template, even though it may look odd in plain text.
    <?for-each-group:row_CHECKLIST_ITEMS;./fld_CHECKLIST_CD?>
    APP Materials     Associated ID
    <?for-each:current-group()?><?sort:fld_CHKLST_ITEM_CD;'ascending';data-type='text'?> <?if:fld_ITEM_STATUS='I'?> fld_CHKLST_ITM_DESCR
    fld_NAME
    fld_ASSOC_ID_DESCR
    <?end if?><?end for-each?>
    <?end for-each-group?>
    <?for-each:row_APU_AD_UG_EXT_TEST_SCORES?>
    TEST     COMPONENTS     SCORE     TEST DATE     DATE RECD
    <?B.TEST_ID?>     <?B.TEST_COMPONENT?>     <?B.SCORE?>     <?format-date:B.TEST_DT;'MM-DD-YYYY'?>     <?format-date:B.DATE_LOADED;'MM-DD-YYYY'?>
    <?end for-each?>
    Thanks.
    Ken

    Pl post details of OS, database and EBS versions.
    Have you checked the XML Publisher Developer Guide and Designer Guide ?
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdoig.pdf
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdorg.pdf
    HTH
    Srini

  • Not able to reset the page number in XML Publisher based on each PO

    Not able to reset the page number in XML Publisher based on PO
    Hi,
    I have created a custom purchase report and rtf template. In the rtf template, I have added the page number feature (i.e. Page 1 of 5) from Word in the template. When I run the report for a range of POs, I expect the results as follows:
    I have given 3 POs on single request. (PO#1 has 3 pages, PO#2 has 2 pages and PO#3 has 4 pages), the page number on each PO should look like as follows:
    PO#1 page 1 of 3, page 2 of 3, page 3 of 3
    PO#2 page 1 of 2 page 2 of 2
    PO#3 page 1 of 4, page 2 of 4, page 3 of 4 and page 4 of 4
    But the page number displays on each PO as follows:
    PO#1 page 1 of 9, page 2 of 9, page 3 of 9
    PO#2 page 4 of 9 page 5 of 9
    PO#3 page 6 of 9, page 7 of 9, page 8 of 9 and page 9 of 9
    Here I have to reset the page number based on each PO. If anyone done this already, can you please share with me.
    Thanks,
    Ram.

    Hi
    One clarification please.
    Are you putting Page # of ## in the for-loop section? I mean it should be within For-each@section block.
    Even if this doesn;t work, then try using Insert->Page Break after every PO.
    Regards
    Varun

  • Basic  XML Publisher Question: How to access tags in the higher levels?

    Hi All,
    We have a basic question in XML Publisher.
    We have a xml hierarchy like below:
    <CD_CATALOG>
    <CATALOG>
    <CAT_NAME> CATALOG 1</CAT_NAME>
    <CD>
    <TITLE>TITLE1 </TITLE>
    <ARTIST>ARTIST1 </ARTIST>
    </CD>
    <CD>
    <TITLE> TITLE2</TITLE>
    <ARTIST>ARTIST2 </ARTIST>
    </CD>
    </CATALOG>
    <CATALOG>
    <CAT_NAME> CATALOG 2</CAT_NAME>
    <CD>
    <TITLE>TITLE3 </TITLE>
    <ARTIST>ARTIST3 </ARTIST>
    </CD>
    <CD>
    <TITLE> TITLE4</TITLE>
    <ARTIST>ARTIST4 </ARTIST>
    </CD>
    </CATALOG>
    </CD_CATALOG>
    We need to create a report like below:
    CATALOG_NAME     CD_TITLE     CD_ARTISTCATALOG 1     TITLE1     ARTIST1
    CATALOG 1     TITLE2     ARTIST2
    CATALOG 2     TITLE3     ARTIST3
    CATALOG 2     TITLE4     ARTIST4
    So we have to loop at the level of <CD> using for-each CD. But when we are inside this loop, we cannot access the value of CAT_NAME which is at a higher level.
    How can we solve this?
    Right now, we are using the work-around of set_variable and get_Variable. We are setting the value of CAT_NAME inside an outer loop, and using it inside the inner loop using get_variable.
    Is this the proper way to do this or are there better ways to do this? We are running into troubles when the data is inside tables.

    you can use
    <?../CAT_NAME?>copy past to your template
    <?for-each:CD?> <?../CAT_NAME?> <?TITLE?> <?ARTIST?> <?end for-each?>

  • Xml publisher reprot - special character problem

    I invoice report through xml publisher. I have '&' special character in vendor list. I am getting below error
    A semi colon character was expected. Error processing resource.
    Below is the code
    CREATE OR REPLACE PACKAGE BODY XML_RPT AS
        FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
        l_ret_str VARCHAR2(5000);
        BEGIN
            l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
            RETURN l_ret_str;
        END XML_TAG;
         PROCEDURE VENDOR(errbuf          OUT  VARCHAR2,
                         retcode         OUT  NUMBER) IS
        CURSOR inv_Cur  IS
            select pv.vendor_name          
            from po_vendors pv;        
         xmldata            varchar2(1000);
         l_sqlstr           varchar2(1000);
         l_seqnum           varchar2(3);
         l_vendor_name      varchar2(100);
        BEGIN
          xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
          xmldata :=xmldata|| '<VENDOR>';
          xmldata := xmldata||' <LIST_VENDOR>';
          fnd_file.put_line(fnd_file.output,xmldata);    
          FOR rpt_rec IN inv_Cur LOOP
              xmldata := '<VENDOR_REC>';
              l_vendor_name := replace(rpt_rec.VENDOR_NAME,'&','&amp');         
              xmldata := xmldata || XXMCG_XML_TAG('VENDOR_NAME',L_VENDOR_NAME);
              xmldata :=xmldata|| '</VENDOR_REC>';
              fnd_file.put_line(fnd_file.output,xmldata);
          END LOOP;
          xmldata := '</LIST_VENDOR>';
          xmldata := xmldata||'</VENDOR>';
         fnd_file.put_line(fnd_file.output,xmldata);
        EXCEPTION
        WHEN OTHERS THEN
             fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
        END VENDOR;
    END XML_RPT;can any one advice.

    Duplicate post ? xml publisher report problem
    Srini

  • URGENT please !!! Problem with XML Publisher , OAF Integration

    Hi,
    I am trying to integrate an XML Publisher Report into OA Framework but running into issues.
    If you could help me or give any pointers I would greatly appreciate it.
    When run the report through Concurrent Manager, it runs without any problem. But, when I run
    it from OAF, nullpointer exception is raised at this statement i.e. datatemplate.processData();
    I did go through many threads related to this topic, but couldn't get any help.
    This is what I have done
    ========================
    1. Wrote a PLSQL package to generate XML output.
    BEGIN
    open c_person;
    fetch c_person into v_last_name;
    close c_person;
    fnd_file.put_line(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8"?>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<QUALIFICATION_REPORT>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<CANDIDATE>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<CANDIDATE_NAME>'||v_last_name||'</CANDIDATE_NAME>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<QUALIFICATIONS_LIST>');
    FOR c1_Rec IN c_qual LOOP
    fnd_file.put_line(FND_FILE.OUTPUT , '<QUALIFICATION>');
    WritetoXMLForRTF('NAME' , c1_rec.name);
    WritetoXMLForRTF('CATEGORY' , c1_rec.category);
    WritetoXMLForRTF('START_DATE' , c1_rec.start_date);
    WritetoXMLForRTF('END_DATE' , c1_rec.end_date);
    WritetoXMLForRTF('SUBJECT' , c1_rec.subject_meaning);
    WritetoXMLForRTF('GRADE_ATTAINED' , c1_rec.grade_attained);
    WritetoXMLForRTF('HQ_STATUS' , c1_rec.hq_status);
    fnd_file.put_line(FND_FILE.OUTPUT , '</QUALIFICATION>');
    END LOOP;
    fnd_file.put_line(FND_FILE.OUTPUT,'</QUALIFICATIONS_LIST>');
    fnd_file.put_line(FND_FILE.OUTPUT,'</CANDIDATE>');
    fnd_file.put_line(FND_FILE.OUTPUT,'</QUALIFICATION_REPORT>');
    retcode := 0;
    END;
    2. Defined a concurrent program to call this PLSQL package/procedure.
    3. Defined a RTF template.
    4. Registered both the data definition and report template using XML Publisher Admin.
    5. Within OA Framework, I have coded as follows.
    Controller
    Process Form Request
    Added a button to invoke the report.
    if (pageContext.getParameter("AddlQualRptBtn") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String p1 = "17965";
    String TemplateApplicationShortName = "CPC";
    String TemplateCode = "CPC_QUAL_RPT" ;
    BlobDomain result = (BlobDomain) getXMLData(p1,pageContext,webBean);
    Properties prop = new Properties();
    prop.put("html-image-dir",pageContext.getTemporaryImageLocation());
    prop.put("html-image-base-uri",pageContext.getTemporaryImageLocation());
    try {
    DocumentHelper.exportDocument( pageContext,
    TemplateApplicationShortName,
    TemplateCode,
    "en" , //Language
    "US" , //Territory
    result.getInputStream(),
    Template.TEMPLATE_TYPE_RTF, //OutputType,
    prop);
    } catch (Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    getXMLData
    public BlobDomain getXMLData(String pPersonId, OAPageContext pageContext, OAWebBean webBean)
    BlobDomain blobDomain = new BlobDomain();
    OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
    OADBTransaction oadbtransaction = oaapplicationmodule.getOADBTransaction();
    try
    String dataDefCode = "CPC_IREC_QUALIFICATION_RPT" ;
    String dataDefApp = "CPC";
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)oaapplicationmodule.getOADBTransaction()).getAppsContext(), dataDefApp,dataDefCode );
    Hashtable parameters = new Hashtable();
    parameters.put("p_person_id",pPersonId);
    datatemplate.setParameters(parameters);
    datatemplate.setOutput(blobDomain.getBinaryOutputStream());
    datatemplate.processData();
    catch(SQLException e)
    throw new OAException("SQL Error=" + e.getMessage(),OAException.ERROR);
    catch (XDOException e)
    throw new OAException("XDOException" + e.getMessage(),OAException.ERROR);
    catch(Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    return blobDomain;
    6. When I run the report from OAF the statement "datatemplate.processData();" generates Null Pointer Exception error.

    Hi TyskJohan,
    Thanks a lot for your reply, I appreciate it !!
    Here is the full error stack. I added many debug statements and identified that it exactly fails at datatemplate.processData();
    I did run the PLSQL procedure and it does creates the XML output properly. Also, the report works fine if I run it through Concurrent Manager. Is there any other way I can check from within OA Framework?
    Thanks again.
    [031108_031818343][][EXCEPTION] java.lang.NullPointerException
         at oracle.apps.xdo.dataengine.DataTemplateParser.GetNodeNumChildren(DataTemplateParser.java:345)
         at oracle.apps.xdo.dataengine.DataTemplateParser.templateParser(DataTemplateParser.java:277)
         at oracle.apps.xdo.dataengine.XMLPGEN.setDataTemplate(XMLPGEN.java:599)
         at oracle.apps.xdo.dataengine.DataProcessor.setDataTemplate(DataProcessor.java:193)
         at oracle.apps.xdo.oa.util.DataTemplate.<init>(DataTemplate.java:136)
         at pgcps.oracle.apps.per.irc.selfservice.webui.pgcpsIrcAddlQualRptCO.getXMLData(pgcpsIrcAddlQualRptCO.java:114)
         at pgcps.oracle.apps.per.irc.selfservice.webui.pgcpsIrcAddlQualRptCO.processFormRequest(pgcpsIrcAddlQualRptCO.java:81)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:408)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at OA.jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    --------------------------------------------------------------------------------------------------------------------

  • Unable to view image if the size is more than 3KB using XML Publisher.

    Hello,
    We are printing PO approver signature using xml publisher (rtf) on a pdf.
    If the size of the image is 3KB or less, the image gets printed.
    But, if the size is more than 3KB the image does not get printed.
    Additional Info:
    1. The signature is stored as jpg image in fnd_lobs table.
    2. On following code is mentioned in the rtf
    <fo:instream-foreign-object content-type="image/jpg">
    <xsl:value-of select="IMG_SIGNATURE"/>
    </fo:instream-foreign-object>
    3. We are using the following function that converts BLOB to CLOB.
    CREATE OR REPLACE FUNCTION XX_BLOBTOBASE64
    b IN BLOB
    RETURN CLOB
    IS
    sizeb PLS_INTEGER := 4080 ;
    buffer RAW(4080);
    offset PLS_INTEGER DEFAULT 1;
    RESULT CLOB;
    BEGIN
    -- dbms_lob.createtemporary
    -- lob_loc => RESULT
    -- , cache => FALSE
    -- , dur => dbms_lob.CALL
    -- LOOP
    -- BEGIN
    -- dbms_lob.READ
    -- ( lob_loc => b
    -- , amount => sizeb
    -- , offset => offset
    -- , buffer => buffer
    -- EXCEPTION
    -- WHEN no_data_found
    -- THEN
    -- EXIT;
    -- END;
    -- offset := offset + sizeb;
    -- dbms_lob.append
    -- ( dest_lob => RESULT
    -- , src_lob => to_clob(utl_raw.cast_to_varchar2(utl_encode.base64_encode(buffer)))
    -- END LOOP;
    DBMS_LOB.createtemporary(lob_loc => RESULT, CACHE => FALSE, dur => 0);
    Wf_Mail_Util.EncodeBLOB ( b, RESULT );
    RETURN RESULT;
    END;
    Requesting any of you to let us know if there is any method to resolve this issue.
    Thanks,
    Angelica.

    Hi,
    Are you using Outlook.com to send/receive emails? Based on my research, we can only add an image/ picture in your e-mail signature that’s Web based (picture that is available in existing websites or stored in an online storage). See:
    http://answers.microsoft.com/en-us/outlook_com/forum/osettings-oemailset/add-logo-to-outlookcom-signature/4455facf-0926-42a6-aad7-756de662a865
    Since this forum is for general questions and feedback related to Outlook desktop application, if you are using Outlook.com, I'd recommend you post your question in the Outlook.com forum:
    http://answers.microsoft.com/en-us/outlook_com/forum?tab=Threads
    The reason why we recommend posting appropriately is you will get the most
    qualified pool
    of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Creating a Pivot Table in a XML publishe

    When creating a Pivot Table in a XML publisher in Word, is there a way for a Pivot table to respect the fact that it's inside of a group function? I'm looping over site , and within each site I want to create a Pivot Table that has Months going across and SUB inventories going down, but only for that site.

    Hello,
    create one column in criteria and change it's fx to case when 1=0 then Products."Prod Name" else 'Tota Loanl' end
    Now go to pivot and drag this column to Columns block of pivot. But keep this column up of Measure Labels and Now, go to column Format values.
    Mention cell horizontal alignment to Center
    see the following screenshot, Header is the column i created with the above functionality.
    !http://i852.photobucket.com/albums/ab83/kishorg86/Header.jpg!

  • How to go one level up in xml publisher reports

    Hi Experts,
    I am working in XML Publisher reports; I am working Invoice report (standard report), below is my requirement.
    Template sample:
    <?for-each:G_INVOICE?>
    <?trx_number?> <?trx_type?>
    <?for-each:G_LINES?>
    <?LINE_NUMBER?> <?COMMODITY_CODE?> <?QUANTITY?>
    <?end for-each:G_LINES?>
    <?end for-each:G_INVOICE?>
    Requiremet: If 'trx_type' is INV i want to print commodity_code as COMMODITY_CODE else null.
    I tried like this. It's didn't work out.
    <?for-each:G_INVOICE?>
    <?trx_number?> <?trx_type?>
    <?for-each:G_LINES?>
    <?LINE_NUMBER?> *<?xdofx:if TRX_TYPE='INV' then COMMODITY_CODE else CF_BID_ITEM end if?>* <?QUANTITY?>
    <?end for-each:G_LINES?>
    <?end for-each:G_INVOICE?>
    Here, actually trx_type is in upper loop, it's not checking the TRX_TYPE='INV' condition, it's always going to else part. So I tried like below to go one level up.
    *<?xdofx:if ../TRX_TYPE='INV' then COMMODITY_CODE else CF_BID_ITEM end if?>*
    Still this is also not working. Is there any solutions, where we can use the upper level group field in line level to check the if condition.
    Any suggetion is appreciated.
    Kindly help.
    Thanks in advance.

    To go one level up from current,
    you have to use ../ELEMENT_NAME Since you are trying to access a field in G_LINES context.
    you have to open the xml and see, how may levels are there from G_LINES to G_INVOICE
    if its 2 level up, then use ../../ELEMENT_NAME and likewise.

  • Having to display only one record using XML tags in XML Publisher

    Hello,
    I have a query which returns two rows for one particular contract number. Output contains in the following style.
    ID | Contract_No | Item_Desc | Item_Num | colA | colB | Term_Dur
    1 ABC1 Item1 12 Y Y 20
    2 ABC1 Item2 13 Y Y 20
    the rows returned are having a column called 'Term_Duration' which is same and I'm using the for-each loop mean for every different Item_Desc column, corresponding terms are being displayed in the RTF document. Here I want the report to display the contract details only once if the 'Term_Dur' value is the same when queried up for a contract number.
    However the current RTF template is displaying both the two rows when the 'Term_Dur' is having a same value.
    P.S: I am a novice in using the XML Publisher and please provide your suggestions on the above requuirement.
    Thanks in advance,
    Uday

    Seshu,
    Do u want to display the inserted row...
    Regards,
    Gyan
    www.gyanoracleapps.blogspot.com
    www.querenttech.com

  • Font problems in resulting XML Publisher document (from PeopleSoft)

    Hi all,
    we're creating documents using XML Publisher under PeopleSoft, designing the template in Word 2007.
    We see strange things hapening to the resulting documents: even though the majority of the template is created in a Times New Roman 11pt font, we find that in the resulting document, empty paragraphs and empty table cells are formatted as Arial 12 pt. So where we put an empty line between paragraphs in the text in the template, and set all the text to Times New Roman, the empty lines are Arial. Same thing with the tables. There's a table with a for-each loop in the rows. The XML with the data always contains 10 entries, but possibly with empty values, so that the table in the resulting document always has 10 rows (plus a header row). However, the empty rows are Arial 12, and the filled-in rows are TNR 11. This results in a different heigth for the table depending on how many rows are filled in, causing the positioning of the rest of the document to be off.
    The template contains NO Arial 12 at all...
    I hope my problem is clear. Any ideas or pointers where to look are really appreciated...
    Spiffo

    Hello Deepz,
    Thank you for your answer. I am not sure I understand your answer: I stated, this is occurring in XML Publisher from PeopleSoft, so not in BI Publisher. Furthermore, there is one section in the document where I do need Arial, but at pt 11, not 12.
    I hope you or other forum members can help me further.
    Regards,
    Spiffo

Maybe you are looking for