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

Similar Messages

  • XML publisher multiple templates in a single report

    Hello
    We are currently implementing PeopleSoft benefits where the user will have an option to select a benefit template from multiple selections and create a report form based from the combination of template he selected.
    My question would be based from the multiple templates, is it possible if the templates be printed out into just one report using xml publisher?
    thank you!

    Yes. This is possible by using sub templates.
    You can declare sub templates in the beginning and then call the sub template.
    You will need to register the sub templates in "Content Library" (Reporting Tools > XML Publisher> Content Library) to be able to call thses from another template.

  • Blank page with multiple group page breaks

    Hi There,
    I have a report with 3 groups. I have a page break after the footers for groups 1 and 3. I use the "Not OnLastRecord" to prevent the report generating a blank page. This work absolutely fine if we are dealing with a single group, but as there are multiple groups it seems impossible to get rid of this superfluous blank page.
    Been struggling on this one for a couple of days so any help would be hugely appreciated.
    Best regards
    Stuart

    Ok I managed to fix this in the end.
    Solution: I suppressed much of the grouping functionality which was primarily used for aggregating totals, and instead used running total farmulai.
    This appears to have done the trick.
    Regards
    Stuart

  • XML Publisher Integration: OAF Page in invalid after PDF creation

    Hello,
    after days of googling and trying out various code changes in vain I hope to find help in this forum.
    The requirement is to extend the shipment page PosAsnMainPage in iSupplier Portal, adding the creation and download of PDF shipping documents for the orders selected in the table. These documents can be created for multiple shipments at once, always resulting in exactly one PDF file.
    To achieve this, I have added a button to the page that triggers the event "XxpoPrintShippingDocuments". In the controller class that extends the standard iSupplier Portal Controller, I have extended processFormRequest as follows:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(strEvent.equals("XxpoPrintShippingDocuments") && ("Y").equals(pageContext.getProfile("XXPO_DROPSHIPDOCUMENTS_SECURITY")))
    outputDropshipDocuments();
    }//end processFormRequest
    private void outputDropshipDocuments()
    * on the view object, compose a list of PoHeaderId, PoLineId, LineLocationId from the rows that were selected
    OAViewObject vo = (OAViewObject) am.findViewObject("PosShipmentsVO");
    * Create PDF and a pop-up window for download
    //file info
    String fileName = pageContext.getMessage("XXPO", "XXPO_SD_FILENAME", null);
    String fileType = "PDF";
    boolean appendDate = true;
    //template info
    String appName = getApplicationName(vendorSiteId);
    String templKey = getTemplateKey(vendorSiteId);
    //user info
    Integer userId = new Integer(pageContext.getUserId());
    try
    XxpoShippingDocumentsOut out = new XxpoShippingDocumentsOut(pageContext, webBean);
    * Save the printed status
    * This is supposed to be done here instead of during xml generation.
    * If any uncaught exception occurs before, the printed status remains unchanged.
    Class printClasses[] = {Map.class, Integer.class};
    Serializable printParams[] = {selectedOrders, userId};
    am.invokeMethod("savePrintStatus", printParams, printClasses);
    out.setFileInfo(fileName, fileType, appendDate);
    out.outputFile(xmlDoc, templKey, appName);
    } catch (Exception e)
    throw new OAException(e.getMessage(), OAException.WARNING);
    Finally, in XxpoShippingDocumentsOut.outputFile there is the following code:
    public void outputFile(XMLDocument xmlDoc, String templateKey, String appName)
    try {
    ServletOutputStream os = response.getOutputStream();
    response.setHeader("Content-Disposition", contentDisposition);
    response.setContentType(contentType);
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlDoc.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream File = new ByteArrayOutputStream();
    OADBTransactionImpl transaction = (OADBTransactionImpl) am.getOADBTransaction();
    TemplateHelper.processTemplate(
    transaction.getAppsContext(),
    appName,
    templateKey,
    transaction.getUserLocale().getLanguage(),
    transaction.getUserLocale().getCountry(),
    inputStream,
    outputType.byteValue(),
    null,
    File);
    * write the output to the HttpServletResponse object and flush -
    * this creates the pop-up window
    byte[] b = File.toByteArray();
    response.setStatus(HttpServletResponse.SC_OK);
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    } catch (Exception e) {
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    Most of this works just fine - I select some orders on the standard iSP page, press the button and download the PDF file. But after that, the page is not "valid" any longer: the selections made are still visible but when a button is pressed (for instance the Create Shipment Notice or my own button), I get an error stating that items must be selected first.
    If I deactivate the lines in outputFile that set the response or flush the output stream, I can further use the previously made selections and everything works fine - except I don't get the PDF I need, obviously.
    Does anyone have an idea of what is missing here to reload the page or anything? Is there any workaround (i.e. opening the file downlad in a separate browser tab)?
    I'd be grateful for any advice on this. If you wish any further information, please let me know.
    Best regards,
    Michelle
    Edited by: 968905 on 01.11.2012 06:09
    Edited by: 968905 on 12.11.2012 03:02

    Hello,
    after days of googling and trying out various code changes in vain I hope to find help in this forum.
    The requirement is to extend the shipment page PosAsnMainPage in iSupplier Portal, adding the creation and download of PDF shipping documents for the orders selected in the table. These documents can be created for multiple shipments at once, always resulting in exactly one PDF file.
    To achieve this, I have added a button to the page that triggers the event "XxpoPrintShippingDocuments". In the controller class that extends the standard iSupplier Portal Controller, I have extended processFormRequest as follows:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(strEvent.equals("XxpoPrintShippingDocuments") && ("Y").equals(pageContext.getProfile("XXPO_DROPSHIPDOCUMENTS_SECURITY")))
    outputDropshipDocuments();
    }//end processFormRequest
    private void outputDropshipDocuments()
    * on the view object, compose a list of PoHeaderId, PoLineId, LineLocationId from the rows that were selected
    OAViewObject vo = (OAViewObject) am.findViewObject("PosShipmentsVO");
    * Create PDF and a pop-up window for download
    //file info
    String fileName = pageContext.getMessage("XXPO", "XXPO_SD_FILENAME", null);
    String fileType = "PDF";
    boolean appendDate = true;
    //template info
    String appName = getApplicationName(vendorSiteId);
    String templKey = getTemplateKey(vendorSiteId);
    //user info
    Integer userId = new Integer(pageContext.getUserId());
    try
    XxpoShippingDocumentsOut out = new XxpoShippingDocumentsOut(pageContext, webBean);
    * Save the printed status
    * This is supposed to be done here instead of during xml generation.
    * If any uncaught exception occurs before, the printed status remains unchanged.
    Class printClasses[] = {Map.class, Integer.class};
    Serializable printParams[] = {selectedOrders, userId};
    am.invokeMethod("savePrintStatus", printParams, printClasses);
    out.setFileInfo(fileName, fileType, appendDate);
    out.outputFile(xmlDoc, templKey, appName);
    } catch (Exception e)
    throw new OAException(e.getMessage(), OAException.WARNING);
    Finally, in XxpoShippingDocumentsOut.outputFile there is the following code:
    public void outputFile(XMLDocument xmlDoc, String templateKey, String appName)
    try {
    ServletOutputStream os = response.getOutputStream();
    response.setHeader("Content-Disposition", contentDisposition);
    response.setContentType(contentType);
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlDoc.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream File = new ByteArrayOutputStream();
    OADBTransactionImpl transaction = (OADBTransactionImpl) am.getOADBTransaction();
    TemplateHelper.processTemplate(
    transaction.getAppsContext(),
    appName,
    templateKey,
    transaction.getUserLocale().getLanguage(),
    transaction.getUserLocale().getCountry(),
    inputStream,
    outputType.byteValue(),
    null,
    File);
    * write the output to the HttpServletResponse object and flush -
    * this creates the pop-up window
    byte[] b = File.toByteArray();
    response.setStatus(HttpServletResponse.SC_OK);
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    } catch (Exception e) {
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    Most of this works just fine - I select some orders on the standard iSP page, press the button and download the PDF file. But after that, the page is not "valid" any longer: the selections made are still visible but when a button is pressed (for instance the Create Shipment Notice or my own button), I get an error stating that items must be selected first.
    If I deactivate the lines in outputFile that set the response or flush the output stream, I can further use the previously made selections and everything works fine - except I don't get the PDF I need, obviously.
    Does anyone have an idea of what is missing here to reload the page or anything? Is there any workaround (i.e. opening the file downlad in a separate browser tab)?
    I'd be grateful for any advice on this. If you wish any further information, please let me know.
    Best regards,
    Michelle
    Edited by: 968905 on 01.11.2012 06:09
    Edited by: 968905 on 12.11.2012 03:02

  • Xml newbie - multiple loops for children in xml?

    Hi all,
    I am hoping someone can help me with this!
    I have what I guess is a pretty basic xml that I need to parse and insert in a table. I have the basic code where I loop through the node list and assign values in the table type, and then insert into the table.
    However, I have multiple levels of data that I plan to insert in one de-normailized table. So, for example:
    <POHDR>
    .. some fields...
    <POLINE>... several fields of info ...
    <PODISTLINE> ... more pieces of info ...
    </PODISTLINE>
    </POLINE>
    <POLINE>... several fields of info ...
    <PODISTLINE> ... more pieces of info ...
    </PODISTLINE>
    <PODISTLINE> ... more pieces of info ...
    </PODISTLINE>
    </POLINE>
    .. multiple such lines
    <POHDR>
    <POHDR>
    <POLINE>... several fields of info ...
    <PODISTLINE> ... more pieces of info ...
    </PODISTLINE>
    </POLINE>
    <POLINE>... several fields of info ...
    <PODISTLINE> ... more pieces of info ...
    </PODISTLINE>
    <PODISTLINE> ... more pieces of info ...
    </PODISTLINE>
    </POLINE>
    .. multiple such lines
    <POHDR>
    All this would go in one staging table with multiple lines of po_header, po_lines and distribution lines information.
    I have the pretty basic generic code, where I do the loop and assign values:
    v_parser := xmlparser.newParser;
    xmlparser.parseclob (v_parser, p_po_clob_file);
    v_doc := xmlparser.getDocument (v_parser);
    xmlparser.freeparser (v_parser);
    v_po_nl := xslprocessor.selectNodes(xml.makeNode(v_doc), 'POFILE');
    FOR i in 0.. sys.xmldom.getLength(v_po_nl)-1 LOOP
    v_po_n := sys.xmldom.item(v_po_nl, i)
    v_po_rec.extend;
    v_po_rec(v_po_rec.last).ponum := sys.xslprocessor.valueOf(v_po_n, 'PONUM');
    ...... etc.
    ... and then the insert.
    But I don't know what to do about getting the PO line and PO Distribution line child items. I guess I could do :
    v_po_rec(v_po_rec.last).polinnum := sys.xslprocessor.valueOf(v_po_n, 'POLINNUM');
    but wouldn't I need to do another loop to find the child line items - and then another to get line distributions?
    Please help!
    Thanks a lot!

    Thanks - and yes, understood.
    However, my XMLType data is not in a XMLType table (just a column of a regular table), so I cannot use the extract functions.
    I am not using XML Schemas - right now that is not in the works. We may look into that later.
    I did try using xmlsave - but again, that just saves the data in top rowset (PO Header, and does not insert any line items in the table)
    Isn't there a way to do this with just a loop? I tried looking at your child example Re: How to use PL/SQL to read and manipulate data from a xml file , but that does not loop to go through multiple children..
    Is there a way to do this with a loop using xmldom? Or a way to do it using xmlsave (but also saving the child rowsets?
    Again, any help will be most appreciated - if you can tell me there isn't then I will look into one of the other options.
    Thanks again!

  • How to give Page break in XML

    Can we give an page break instructions through XML file.
    I have an xml file which i am importing and generating pdf.Is there any tag or paragrapg style that can be applied to xml element to indicate page break.

    Hi Nishatry,
    You cannot add the Page break as a symbol in XML. Instead you can add element or attribute as "PageBreak".
    In InDesign scripting you can find the "PageBreak" elements and insert the pagebreaks by using the following code.
    var myDoc = app.activeDocument;
    PageBreaking(myDoc);
    alert("Page Break Inserted");
    function PageBreaking(elm){
        for (var i = 0; i < elm.xmlElements.length; i++){
            try{
                XMLelementName=elm.xmlElements[i].markupTag.name.toString();
                elm.xmlElements[i].select();
                if(XMLelementName=="PageBreak"){
                    elm.xmlElements[i].contents = SpecialCharacters.frameBreak;
            }catch(e){}
            PageBreaking(elm.xmlElements[i]);
    I think this is usefull for your requirement.
    Regards,
    Ramkumar .P

  • 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

  • How to put a solid bottom border for table at page break - XML Publisher

    Hi There,
    In XML Publisher Invoice report template, I have table with hidden lines. It repeat for each invoice item.
    However I need to close the table with a solid line at the page break, when the table is extended to multiple pages.
    How can we know if its a page break. I think we can use an if condition if we know the tag for page break( for example like this <?if:@page-break="true"?> ).
    Thanks in Advance.
    Vishnu.

    You can declare two variables, to hold the previous and current LOCATION values and break the page when it differs.
    Or just before your end-for-each, have this code.
    <?if:position()!=1 and position()!=last() and LOCATION!=following::LOCATION[1]?><xsl:attribute name="break-before">page</xsl:attribute><?end if?>
    Ensure that its placed in a form field.
    This will have a page break when LOCATION changes.

  • 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

  • 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

  • To find total number of pages in XML publisher

    1. Is there any method to find the total number of pages in BI or XML publisher.
    2. Is there any method to to repeat the column(Not rows) on every page.For eg you have table with two columns say "A" and "B" .I want to repeat this B in every page . And A should print only in first page.
    3. Is there any method to print a text say "ABC" only on first page footer based on condition.
    Thanks
    Wazid

    Exactly what my requirement is- In my template i have set header and footer page setup as "different first page'" and also printing the user text at the bottom of the last page using <?start@last-page-first:body?> <?end body?>.When i run the template, for multiple pages output user text is displaying at the bottom of the last page that is working fine but for single page output user text is not displaying at the bottom of the page because of the ""different first page'" header and footer.If you have any idea please suggest.

  • Multiple Thread of a xml publisher report - messed up fonts in the PDF out

    We are running 60000 invoices at a given time. In order to get the job done faster, the xml publisher report is set up to run mulitple threads. Each thread running unique set of invoices.
    I am seeing this issue, randomly.
    The pdf output of the invoice is having the fonts messed up. font 10 shows up as 14 and the invoice looks very bad.
    When i rerun the same set of invoices it looks absolutely normal.
    Also if I retrieve the xml output of the bad pdf and view it through the xmlpub desktop, it looks perfectly fine.
    Two times we saw this issue
    PRODUCTION
    - when i run 8 threads, i saw this issue in one of the thread and affected one invoice. (Production- 1 concurrent processing node+ 5 OPP processes and 5 threads + MEMORY is J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx3072m )
    TEST INSTANCE
    - when i ran with 16 threads, one of the thread running xml pub report affected all the invoices (UAT environment-1 concurrent processing node+ 7 OPP processes and 1 threads + MEMORY is J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx3072m )
    Looks like it is happening when running multiple threads.
    The formatting command or information is getting lost somewhere and the report is all messed up.
    Please advise.
    Thanks
    SJ

    Really appreciate your response. Can you pls give little more details.
    1] Are there any standard API's which I can use to submit XML publisher report from the JSP pages
    2]Is there any sample code snippet for any of the options that I can refer to..or pls let me know the API's, I will check on them
    Appreciate any help

  • Extra Blank page in XML Publisher report

    Hi,
    I am getting extra blank page in XML publisher report.
    The RTF has two pages and each page has one table.These two tables will be populated with data based on some if condtion.
    eg:
    In RTF:
    for each Header
    if PMA='Y' THEN
    Table1 data in 1st page
    end if;
    pageBreak
    IF OTC='Y' then
    Table2 data in 2nd page
    END IF;
    end for each
    And also another issue is: The data is starting from the same page instead of new page.
    Please help me in solving the issue.
    Thanks,
    Srinivas

    Hi,
    Thanks for reply.
    I am using <xsl:attribute name="break-before">page</xsl:attribute> page break.
    I tried split-by-page-break also,but still its not resolved.
    Today I have noticed one thing: When generating this report locally,then there is no blank page coming.But when generating from APPS then blank page is coming.
    Please help me to resolve this issue.
    Thanks,
    Srinivas

  • OAF page with XML Publisher report

    Hi All,
    I am trying to create a OAF page with an XML Publisher report. I am not able to create a 'defaultSingleColumn' region which extends '/oracle/apps/xdo/oa/common/webui/DocumentViewerRn.MainRegion', getting a Confirm message and Validation error and they are:
    Confirm message:
    Component "/oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion" cannot be referenced from
    "/xx/oracle/apps/xxbsk/payslip/webui/PaySlipViewPG.region1" because it violates scope restrictions.
    Are you sure you want to use component "/oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion"?
    Validation Error:
    The value "oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion"
    set on the "Extends" property for component
    "/xx/oracle/apps/xxbsk/payslip/webui/PaySlipViewPG" contains multiple naming separators.
    I am trying to develop this page for R12.1.3 and using correct version of JDev (Patch 9879989).
    I am following the below link for embedding the XML PO into my page:
    http://oracle-hack.blogspot.co.uk/2012/04/launching-xml-publisher-from-oa.html
    Could you please help why I am getting error while extending region.
    Thank you,
    Ramu

    Hi. Could you please tell me how did you make it work. I read and try the same document at ttp://oracle-hack.blogspot.co.uk/2012/04/launching-xml-publisher-from-oa.html
    But I got null point exception at one of xdo package which is Oracles own class. I think something is wrong or forgotten in this document.
    Berkay

  • XML Publisher Report Output from OAF Page

    Hi,
    I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
    Please see the below code.
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
    String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
    System.out.println("s1 = " + s1);
    String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
    System.out.println("s2 = " + s2);
    String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
    CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
    System.out.println("s3 = " + s3);
    if(requestId != 0)
    try
    Number number = new Number(requestId);
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, number.intValue());
    callablestatement.setString(3, s2);
    callablestatement.setString(4, s1);
    callablestatement.execute();
    String s4 = callablestatement.getString(1);
    System.out.println("Before S4 if statement");
    if(s4 == null || s4.equals(""))
    // throw new RuntimeException();
    System.out.println("URL is null");
    System.out.println(" print ouput url - " + s4 );
    // throw OAException.wrapperException(exception);
    oadbtransactionimpl.putValue("OutputURL", s4);
    System.out.println(" print ouput url - " + s4 );
    }

    Look at the links AJ gave.
    Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
    All of these things are in the XML Publisher documentation and Javadocs.

Maybe you are looking for

  • Custom combobox problem

    Hi, With the help of JDC i am able to finish the work of creating the customized comobo but I'm stuck at the edge. I have a customized comobobox, which can show multiple columns in its combo popup, but only one item of column should be shown as selec

  • EBS R11 items/tax relationship

    Hi all, can somebody tell me where to configure in the application or the related tables about the relationship between items and taxes- I've read about it in R12 but can't seem to find anything in R11- thanks all p-

  • Dynamically create popup

    hi, i hv 2 views in my appln. the 1st 1 is the default view which has a btn "to". nw i want to see my 2nd view as a popup when i click on "to". and i want to create it DYNAMICALLY. plz help. are there any pdfs for dynmic creation of popup menus? than

  • Restoring lost datebook data

    I recently opened my handheld and the datebook data entered over the past month or so had been deleted. How do I restore these datebook data? I see a DAT and BAK file on the C: drive, but can't see what data are in these files/ Any ideas?? Post relat

  • BADi for saving email addressin SU01

    Hi all I have enhanced the PA0006 with email address field and now need to update this email address to su01, when ever user changes his work email address in transaction  PA30 infotype 0006 it should get saved in PA0006 and  then check with  the ema