Problem with RTF Report Generation From OAF Page

Hi,
I have a requirement where from OAF page, on a button click, a RTF report should be generated. Template has been already defined for the same. If I want to generate report in .xls or pdf, it is working fine but in case of RTF it is showing that "Word cannot start the converter mswrd632" and then onclick of ok, it is displaying some junk data in word doc.
Below is the code written in PFR-
else if((outputType != null) && (outputType.equalsIgnoreCase("RTF")))
       outputType = "application/vnd.msword";//"application/vnd.ms-word.document";//"application/vnd.ms-word";
       ext = ".doc";
if ((outputType != null) && (outputType.equalsIgnoreCase("RTF")))
      TemplateHelper.processTemplate(txn.getAppsContext(), "XXCUST", templateName, txn.getUserLocale().getLanguage(), txn.getUserLocale().getCountry(), in, TemplateHelper.OUTPUT_TYPE_RTF, null, pdfout);
else
      TemplateHelper.processTemplate(txn.getAppsContext(), "XXCUST", templateName, txn.getUserLocale().getLanguage(), txn.getUserLocale().getCountry(), in, (byte)btype, null, pdfout);
Please help urgently by sharing your ideas about solving this problem.
Thanks,
Annie

hi Annie,
Please check the links may be it will help you:
https://forums.oracle.com/thread/2185528
https://forums.oracle.com/thread/2545516
https://forums.oracle.com/thread/2543842
https://forums.oracle.com/thread/2342141
if you get the right solution please mention here, it will help others.
Regards
Mahesh

Similar Messages

  • Problem in XML Publisher Report submission from OAF Pages

    Hi,
    I am trying to submit Concurrent Program from OAF Page which is an XML Publisher Report.
    The request is Submitting and Completing successfully but when we open to view the out put we are able to view the HTML tags.
    We checked the same Concurrent program by submitting from the SRS window After completing if we click on view output the rtf file is getting opened correctly.
    I tested with normal rdf report it is working fine with standard Concurrent program used in OAF
    So my doubt is
    Does the Standard Concurrent program used in OAF supports the rtf reports.
    Please suggest if any modifications to be done in the Concurrent program
    Krishna

    Krishna
    Modified your code a little bit.Use this
        public int submitCPRequest(String shipmentId) {
        System.out.println("into submitCPRequest");
            OAPageContext pageContext;
            OAWebBean webBean;
        try {
    OAApplicationModule am =pageContext.getApplicationModule(webBean);
        OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
        java.sql.Connection pConncection = tx.getJdbcConnection();
        ConcurrentRequest cr = new ConcurrentRequest(pConncection);
        String applnName = new String("XXAPL"); //Application that contains the concurrent program
        System.out.println("ApplName"+ applnName);
        String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
        System.out.println("Concc Name"+ cpName);
        String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
        // Pass the Arguments using vector
        // Here i have added my parameter headerId to the vector and passed the
        //vector to the concurrent program
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        System.out.println("Args"+ cpArgs);
        // Calling the Concurrent Program
        int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
        cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
        System.out.println("Req Id"+ requestId);
        tx.commit();
        return requestId;
            catch (RequestSubmissionException e) {
            System.out.println("Into Exception");
            OAException oe = new OAException(e.getMessage());
            oe.setApplicationModule(this);
            throw oe;
            catch(Exception exception)
            throw OAException.wrapperException(exception);
        }Thanks
    AJ

  • Problem with access to SipFactory from jsp-pages in JBoss environment

    Hello!
    I have an installation of the OCMS 10.1.3.3. deployed into a JBoss (jboss-4.0.5.GA) environment. Unfortunately I have a problem with accessing the SipFactory from a jps-page. Encouraged by the "messagesender" example I tried to get an instance of SipFactory from my jsp-page simply by calling:
    SipFactory sipFactory = (SipFactory) application.getAttribute(SipServlet.SIP_FACTORY);
    But unfortunately there seems to be no attribute "SipServlet.SIP_FACTORY" and I only get a null pointer. I have also tried running that code in the orignal messagesender example but it didn't work either. So I wonder if this should definetely work in a JBoss environment or if this might be a known problem. Is there anything that I could check/do regarding this problem? I suppose there must be an oracle module which should take care of making the SipFactory availabe after it is deployed. Perhaps something went wrong during the deployment?!
    Best regards,
    Tim

    Hi
    On JBoss, OCMS does not support converge applications.
    I.e the SipFactory can be retrieved from the servlet context when running on OC4J.
    Instead the SipFactory can be found in JNDI as described in the Developer's Guide:
    "External Access to SIP Servlets
    To enable convergent applications between SIP and HTTP, the OCMS Container allows you to get access to the javax.servlet.sip.SipFactory by looking it up through JNDI. The SIP Factory will be registered under the same name as the display name of your SIP servlet as illustrated in Example 2–12. The <display-name> in the sip.xml in this case must be "My sip app".
    Example 2–12 Accessing the Data for a SIP Session through JNDI
    InitialContext ic = new InitialContext();
    SipFactory sipFactory = (SipFactory)ic.lookup("sip/My sip app");"
    Cheers
    Lucas Persson

  • 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.

  • Problem with crystal reports get from All in One Best Practice package

    Hi,
    I tried to use Financial Statements crystal report download from All in One Best Practice package but encounter the below errors. I followed the guide in Manual Steps for Additional Datasource Creation to set up the additional data source. When i try to preview the report, I tried to set all the value to Null but the error message still appear. I believe this has something to do with the infoset but i not sure how to resolve this. Those report which connect to infoset doesnt seem to work for me.
    Errors:
    Failed to retrive data from database. (then i press OK)
    database connector error: 'no item structure data' (then i press OK)
    database connector error: 'RFC_Closed'
    Please advice
    Thank you

    Hi Afzal,
    I think you misunderstood. The crystal report i am talking about is the 23 crystal report template i get from All in One Best Practice package. All i need to do is follow the "Quick Guide to impletement SAP Best Practices for Business Intelligence V4.31" to make those template works. For those template that connect to Database type: SAP Table, Cluster or Function, i can make those work. The problem i facing now are those template (example: Financial Statements) that connect to Database type: SAP Info sets. The error i receive are stated in my first post.
    Please advice

  • Problem with opening PDF files from JSF page using SDO

    Hi all,
    I'm new with JSF and was attempting to read a PDF file from a Database using SDO and JSF. The code below throws an exception when casting from DataObject to Blob. The getLcDoc() method was created by WSAD when I dragged an SDO relational record onto the JSF page. This method returns an DataObject type which I tried casting to a Blob type before using it further. However, an exception is thrown.
    Any feedback is appreciated.
    Arv
    try {
                   FacesContext faces = FacesContext.getCurrentInstance();
                   HttpServletResponse response =(HttpServletResponse) faces.getExternalContext().getResponse();
                   Blob file= (Blob)getLcDoc().get("ATTACH");
                   int iLength = (int)(file.length());
                   response.setHeader("Content-type", "application/pdf");
                   response.setHeader("Content-Disposition", "inline; filename=Attachment");
                   response.setHeader("Expires","0");
                   response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
                   response.setHeader("Pragma","public");
                   response.setContentLength(iLength);
                   ServletOutputStream os = response.getOutputStream();
                   InputStream in = null;
                   in = file.getBinaryStream();
                   byte buff[] = new byte[1024];
                   while (true) {
                   int i = in.read(buff);
                   if (i<0) break;
                   os.write(buff,0,i);
                   os.flush();
                   os.close();
         } catch(Exception ex){
              System.out.println("Error while reading file : " + ex.getMessage());
         }

    Hi...I found out that there is actually no need to use a Blob object at all. You can simply call the OutputStreams write() method and pass the DataObject.getBytes() method that returns a byte[] array. The revised code is shown at the end of this posting.
    However, a few other teething problems exist:
    1. This works well only if I specify the content type in response.setHeader() method. What if my users upload different types of files, is there a way that the browser opens according to the file type without setting the content type?
    2. I still have a problem opening PDF files, even if I specify - response.setHeader("Content-type", "application/pdf");
    I get the message - The file is damaged and could not be repaired
    3. I would also like this to open the attachment in a new window and using target="_blank" doesn't seem to work as seen below:
    <h:commandLink
                                                 styleClass="commandLink" id="link1" action="#{pc_DocumentDetailsRead.doLink1Action}" target="_blank">
                                                 <h:outputText id="text5" styleClass="outputText"
                                                      value="Click Here"></h:outputText>
                                            </h:commandLink>
    ------------------------Revised code-----------------------------------------
    FacesContext faces = FacesContext.getCurrentInstance();
                   HttpServletResponse response =(HttpServletResponse) faces.getExternalContext().getResponse();
                   response.setHeader("Content-type", "application/msword");
                   response.setHeader("Content-Disposition", "inline; filename=Attachment");
                   response.setHeader("Expires","0");
                   response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
                   response.setHeader("Pragma","public");
                   ServletOutputStream os = response.getOutputStream();
                   os.write(getLcDoc().getBytes("ATTACH"));
                   os.flush();
                   os.close();

  • Problems with PDF report generation on WEB application

    Hi friends.
    I have the following problem.
    I heve many reports running on a client/server system. But we decide to move one by one, the menu options of the system to the WEB, using iAS. Most of the reports works just fine, but some of them works wrong.
    But I am not talking about the data or something like that, I am talking about the layout format. All of them out a grey rectangle in all the pages of the PDF reports. The report doesn't have any color inside, but when we move the file, to the UNIX server and test it, it is generated not in a white normal report but grey and white colors.
    anyone have an idea what is it happend?
    thank you folks....
    abdel.

    hi shivanjali..
    the problem may be due to your local system settings..
    try this..
    open internet explorer.-> click on tools menu-> click on internet options-> select connections tab-> press lan settings-> uncheck the proxy address if you have any and press ok....
    now try your web report.. hope it will help your concern..

  • OAF: passing parameters to report from OAF page and running concurrent prog

    Hi Everyone,
    i have an OAF page with 10 fields after filling those fields i need to press "Submit" button.
    On pressing Submit button 5 parameters i have to pass to the xml publisher report to run the concurrent program and display the output in pdf format.(Out of 10 fields on the page the first 5 fields will be passed as parameters)
    How can i pass parameters from OAF page to the report(concurrent program)?
    and how can i call concurrent program?
    and how can display the output of the report in pdf format after calling the concurrent program?
    Any answers will be really useful...
    Thanks in advance.
    Thanks.

    Hi kumar ,
    XML report will generate output in PDF format , first you need to try generating report separately , manually submit
    the concurrent program and make sure every thing goes well .
    Once the above step is done you can try to submit the concurrent from controller class . The submitRequest method
    will return the request ID of the concurrent program .
    Now with the help of this request ID you can redirect the page to Oracle standards Request Page( you can monitor
    the status of concurrent program and view output ) this can be done with the following piece of code
    String url = "OA.jsp";
    parameters.put("akRegionApplicationId", "0");
    parameters.put("akRegionCode","FNDCPREQUESTVIEWPAGE");
    String id = "" + return_reqId + "";
    parameters.put("requestMode","DEFERRED");
    parameters.put("requestId", id);
    pageContext.setForwardURL(url,null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,parameters,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO ,OAWebBeanConstants.IGNORE_MESSAGES);
    Keerthi

  • Report viewer "Go To Next Page" button always load Page2 with Crystal Reports Runtime version 10.0.10. No problem with Crystal Reports Runtime version 10.0.5

    Report viewer "Go To Next Page" button always load Page2 with Crystal Reports Runtime version 10.0.10. No problem with Crystal Reports Runtime version 10.0.5.
    NOTE: I did not check other Crystal Runtime versions.
    Any solution?

    Visual Studio Premium 2012.
    It is a web application.
    It was working fine with Crystal Report version 13.0.5. Only change is uninstall Crystal Report version 13.0.5 and install Crystal Report version 13.0.10
    Entering page number works fine to view that page Request.Form parameters sample for that (change page from page 3 to page 5):
    __CRYSTALSTATEviewer:{"0":{"rptViewLabel":"Ana Rapor", "gpTreeCurrentExpandedPaths":{}, "vCtxt":"/wEXAwUVSXNMYXN0UGFnZU51bWJlcktub3duZwUOTGFzdFBhZ2VOdW1iZXICBQUKUGFnZU51bWJlcgIC", "pageNum":2}, "common":{"width":"100%", "Height":"100%", "enableDrillDown":true, "drillDownTarget":"_self", "printMode":"Pdf", "displayToolbar":true, "pageToTreeRatio":6, "pdfOCP":true, "promptingType":"html", "viewerState":"/wEXBAUkU3lzdGVtLldlYi5VSS5XZWJDb250cm9scy5XZWJDb250cm9sDxYGHgVXaWR0aBsAAAAAAABZQAcAAAAeBkhlaWdodBsAAAAAAABZQAcAAAAeBF8hU0ICgANkBQJodAUGX2JsYW5rBQ9SZXBvcnRWaWV3U3RhdGUXCAUDZHBpAngFB0lMT0lVSVNoBQdGYWN0b3J5BZYBQ3J5c3RhbERlY2lzaW9ucy5SZXBvcnRTb3VyY2UuUmVwb3J0U291cmNlRmFjdG9yeSxDcnlzdGFsRGVjaXNpb25zLlJlcG9ydFNvdXJjZSwgVmVyc2lvbj0xMy4wLjIwMDAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj02OTJmYmVhNTUyMWUxMzA0BQlSZXBvcnRVUkkFSkQ6XFBSSi5ORVRcV2ViUmVwb3J0czIwXFdlYlJlcG9ydHMuREFMXFJlcG9ydHNcVzJfNDMzN19SRVNfQllfQ1JFQVRJT04ucnB0BQpEZXNpZ25Nb2RlaAUHUmVmcmVzaGgFElBhZ2VSZXF1ZXN0Q29udGV4dBcEBRVJc0xhc3RQYWdlTnVtYmVyS25vd25nBQ5MYXN0UGFnZU51bWJlcgIFBQpQYWdlTnVtYmVyAgIFFEludGVyYWN0aXZlU29ydEluZm9zFClYU3lzdGVtLkJ5dGUsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OY0BAzwDPwN4A20DbAMgA3YDZQNyA3MDaQNvA24DPQMiAzEDLgMwAyIDPwM+Aw0DCgM8A0EDcgNyA2EDeQNPA2YDUwNvA3IDdANJA24DZgNvAyADeANtA2wDbgNzAzoDeANzA2kDPQMiA2gDdAN0A3ADOgMvAy8DdwN3A3cDLgN3AzMDLgNvA3IDZwMvAzIDMAMwAzEDLwNYA00DTANTA2MDaANlA20DYQMtA2kDbgNzA3QDYQNuA2MDZQMiAyADeANtA2wDbgNzAzoDeANzA2QDPQMiA2gDdAN0A3ADOgMvAy8DdwN3A3cDLgN3AzMDLgNvA3IDZwMvAzIDMAMwAzEDLwNYA00DTANTA2MDaANlA20DYQMiAyADLwM+BQlScHRTb3VyY2UFN0NyeXN0YWxEZWNpc2lvbnMuUmVwb3J0U291cmNlLk5vbkhUVFBDYWNoZWRSZXBvcnRTb3VyY2UFA2Nzc2U=", "rptAlbumOrder":["0"], "toolPanelType":"GroupTree", "toolPanelWidth":200, "toolPanelWidthUnit":"px", "iactParams":[{"paramName":"pFromDate", "description":"From Date", "valueDataType":"d", "value":[{"d":9, "m":4, "y":2014, "h":0, "min":0, "s":0, "ms":0}], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}, {"paramName":"pToDate", "description":"To Date", "valueDataType":"d", "value":[{"d":9, "m":6, "y":2014, "h":0, "min":0, "s":0, "ms":0}], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}, {"paramName":"pGroupBy", "description":"Group by", "valueDataType":"n", "value":[2], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":1, "desc":"Boardtype"}, {"value":2, "desc":"Room type"}, {"value":3, "desc":"Rate Room type"}, {"value":4, "desc":"Rate code"}, {"value":5, "desc":"Guarantee code"}, {"value":6, "desc":"Adults"}, {"value":7, "desc":"Children"}, {"value":8, "desc":"Market code"}, {"value":9, "desc":"Source code"}, {"value":10, "desc":"Channel code"}, {"value":11, "desc":"Country"}, {"value":12, "desc":"Nationality"}, {"value":13, "desc":"Created by"}, {"value":14, "desc":"Adult+Child"}, {"value":15, "desc":"Agency"}, {"value":16, "desc":"Company"}, {"value":17, "desc":"Source"}, {"value":18, "desc":"Group"}, {"value":19, "desc":"Micros Discount"}, {"value":-1, "desc":"None"}], "defaultDisplayType":1}, {"paramName":"pDistributionBy", "description":"Distribution by", "valueDataType":"n", "value":[1], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":1, "desc":"RN"}, {"value":2, "desc":"ARR"}], "defaultDisplayType":1}, {"paramName":"pShowDetails", "description":"Show details", "valueDataType":"b", "value":[true], "allowCustomValue":false, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":true}, {"value":false}], "defaultDisplayType":1}, {"paramName":"pSubGroupBy", "description":"Sub Group", "valueDataType":"n", "value":[-1], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":1, "desc":"Boardtype"}, {"value":2, "desc":"Room type"}, {"value":3, "desc":"Rate Room type"}, {"value":4, "desc":"Rate code"}, {"value":5, "desc":"Guarantee code"}, {"value":6, "desc":"Adults"}, {"value":7, "desc":"Children"}, {"value":8, "desc":"Market code"}, {"value":9, "desc":"Source code"}, {"value":10, "desc":"Channel code"}, {"value":11, "desc":"Country"}, {"value":12, "desc":"Nationality"}, {"value":13, "desc":"Created by"}, {"value":14, "desc":"Adult+Child"}, {"value":15, "desc":"Agency"}, {"value":16, "desc":"Company"}, {"value":17, "desc":"Source"}, {"value":18, "desc":"Group"}, {"value":19, "desc":"Micros Discount"}, {"value":-1, "desc":"None"}], "defaultDisplayType":1}, {"paramName":"pIncludeDayUse", "description":"Include Day Use", "valueDataType":"b", "value":[true], "allowCustomValue":false, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":true}, {"value":false}], "defaultDisplayType":1}, {"paramName":"pDateType", "description":"Date Type", "valueDataType":"n", "value":[1], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}, {"paramName":"pCompHuse", "description":"Comp-Huse", "valueDataType":"n", "value":[0, 1, 2], "allowCustomValue":true, "allowMultiValue":true, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}, {"paramName":"pOrderBy", "description":"Order By", "valueDataType":"n", "value":[2], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}], "paramOpts":{"numberFormat":{"groupSeperator":".", "decimalSeperator":","}, "dateFormat":"d.M.yyyy", "timeFormat":"H:mm:ss", "dateTimeFormat":"d.M.yyyy H:mm:ss", "booleanFormat":{"true":"True", "false":"False"}, "maxNumParameterDefaultValues":"200", "canOpenAdvancedDialog":true}, "zoom":100, "zoomFromUI":false, "lastRefresh":"9.7.2014 17:47:04"}, "curViewId":"0"}
    viewer_toptoolbar_search_textField:Bul...
    text_viewer_toptoolbar_selectPg:5
    text_viewer_toptoolbar_zoom:100%
    __CALLBACKID:viewer
    __CALLBACKPARAM:{"tb":"gototext", "text":"5"}
    Try to view New Page does not work. Request.Form parameters sample for that (try change page from page 2 to page 3):
    __CRYSTALSTATEviewer:{"0":{"rptViewLabel":"Ana Rapor", "gpTreeCurrentExpandedPaths":{}, "vCtxt":"/wEXAwUVSXNMYXN0UGFnZU51bWJlcktub3duZwUOTGFzdFBhZ2VOdW1iZXICBQUKUGFnZU51bWJlcgIC", "pageNum":2}, "common":{"width":"100%", "Height":"100%", "enableDrillDown":true, "drillDownTarget":"_self", "printMode":"Pdf", "displayToolbar":true, "pageToTreeRatio":6, "pdfOCP":true, "promptingType":"html", "viewerState":"/wEXBAUkU3lzdGVtLldlYi5VSS5XZWJDb250cm9scy5XZWJDb250cm9sDxYGHgVXaWR0aBsAAAAAAABZQAcAAAAeBkhlaWdodBsAAAAAAABZQAcAAAAeBF8hU0ICgANkBQJodAUGX2JsYW5rBQ9SZXBvcnRWaWV3U3RhdGUXCAUDZHBpAngFB0lMT0lVSVNoBQdGYWN0b3J5BZYBQ3J5c3RhbERlY2lzaW9ucy5SZXBvcnRTb3VyY2UuUmVwb3J0U291cmNlRmFjdG9yeSxDcnlzdGFsRGVjaXNpb25zLlJlcG9ydFNvdXJjZSwgVmVyc2lvbj0xMy4wLjIwMDAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj02OTJmYmVhNTUyMWUxMzA0BQlSZXBvcnRVUkkFSkQ6XFBSSi5ORVRcV2ViUmVwb3J0czIwXFdlYlJlcG9ydHMuREFMXFJlcG9ydHNcVzJfNDMzN19SRVNfQllfQ1JFQVRJT04ucnB0BQpEZXNpZ25Nb2RlaAUHUmVmcmVzaGgFElBhZ2VSZXF1ZXN0Q29udGV4dBcEBRVJc0xhc3RQYWdlTnVtYmVyS25vd25nBQ5MYXN0UGFnZU51bWJlcgIFBQpQYWdlTnVtYmVyAgIFFEludGVyYWN0aXZlU29ydEluZm9zFClYU3lzdGVtLkJ5dGUsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OY0BAzwDPwN4A20DbAMgA3YDZQNyA3MDaQNvA24DPQMiAzEDLgMwAyIDPwM+Aw0DCgM8A0EDcgNyA2EDeQNPA2YDUwNvA3IDdANJA24DZgNvAyADeANtA2wDbgNzAzoDeANzA2kDPQMiA2gDdAN0A3ADOgMvAy8DdwN3A3cDLgN3AzMDLgNvA3IDZwMvAzIDMAMwAzEDLwNYA00DTANTA2MDaANlA20DYQMtA2kDbgNzA3QDYQNuA2MDZQMiAyADeANtA2wDbgNzAzoDeANzA2QDPQMiA2gDdAN0A3ADOgMvAy8DdwN3A3cDLgN3AzMDLgNvA3IDZwMvAzIDMAMwAzEDLwNYA00DTANTA2MDaANlA20DYQMiAyADLwM+BQlScHRTb3VyY2UFN0NyeXN0YWxEZWNpc2lvbnMuUmVwb3J0U291cmNlLk5vbkhUVFBDYWNoZWRSZXBvcnRTb3VyY2UFA2Nzc2U=", "rptAlbumOrder":["0"], "toolPanelType":"GroupTree", "toolPanelWidth":200, "toolPanelWidthUnit":"px", "iactParams":[{"paramName":"pFromDate", "description":"From Date", "valueDataType":"d", "value":[{"d":9, "m":4, "y":2014, "h":0, "min":0, "s":0, "ms":0}], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}, {"paramName":"pToDate", "description":"To Date", "valueDataType":"d", "value":[{"d":9, "m":6, "y":2014, "h":0, "min":0, "s":0, "ms":0}], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}, {"paramName":"pGroupBy", "description":"Group by", "valueDataType":"n", "value":[2], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":1, "desc":"Boardtype"}, {"value":2, "desc":"Room type"}, {"value":3, "desc":"Rate Room type"}, {"value":4, "desc":"Rate code"}, {"value":5, "desc":"Guarantee code"}, {"value":6, "desc":"Adults"}, {"value":7, "desc":"Children"}, {"value":8, "desc":"Market code"}, {"value":9, "desc":"Source code"}, {"value":10, "desc":"Channel code"}, {"value":11, "desc":"Country"}, {"value":12, "desc":"Nationality"}, {"value":13, "desc":"Created by"}, {"value":14, "desc":"Adult+Child"}, {"value":15, "desc":"Agency"}, {"value":16, "desc":"Company"}, {"value":17, "desc":"Source"}, {"value":18, "desc":"Group"}, {"value":19, "desc":"Micros Discount"}, {"value":-1, "desc":"None"}], "defaultDisplayType":1}, {"paramName":"pDistributionBy", "description":"Distribution by", "valueDataType":"n", "value":[1], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":1, "desc":"RN"}, {"value":2, "desc":"ARR"}], "defaultDisplayType":1}, {"paramName":"pShowDetails", "description":"Show details", "valueDataType":"b", "value":[true], "allowCustomValue":false, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":true}, {"value":false}], "defaultDisplayType":1}, {"paramName":"pSubGroupBy", "description":"Sub Group", "valueDataType":"n", "value":[-1], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":1, "desc":"Boardtype"}, {"value":2, "desc":"Room type"}, {"value":3, "desc":"Rate Room type"}, {"value":4, "desc":"Rate code"}, {"value":5, "desc":"Guarantee code"}, {"value":6, "desc":"Adults"}, {"value":7, "desc":"Children"}, {"value":8, "desc":"Market code"}, {"value":9, "desc":"Source code"}, {"value":10, "desc":"Channel code"}, {"value":11, "desc":"Country"}, {"value":12, "desc":"Nationality"}, {"value":13, "desc":"Created by"}, {"value":14, "desc":"Adult+Child"}, {"value":15, "desc":"Agency"}, {"value":16, "desc":"Company"}, {"value":17, "desc":"Source"}, {"value":18, "desc":"Group"}, {"value":19, "desc":"Micros Discount"}, {"value":-1, "desc":"None"}], "defaultDisplayType":1}, {"paramName":"pIncludeDayUse", "description":"Include Day Use", "valueDataType":"b", "value":[true], "allowCustomValue":false, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[{"value":true}, {"value":false}], "defaultDisplayType":1}, {"paramName":"pDateType", "description":"Date Type", "valueDataType":"n", "value":[1], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}, {"paramName":"pCompHuse", "description":"Comp-Huse", "valueDataType":"n", "value":[0, 1, 2], "allowCustomValue":true, "allowMultiValue":true, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}, {"paramName":"pOrderBy", "description":"Order By", "valueDataType":"n", "value":[2], "allowCustomValue":true, "allowMultiValue":false, "allowRangeValue":false, "allowDiscreteValue":true, "isEditable":true, "usage":25, "isDataFetching":false, "attributes":{"IsDCP":false}, "isOptionalPrompt":false, "allowNullValue":false, "defaultValues":[], "defaultDisplayType":1}], "paramOpts":{"numberFormat":{"groupSeperator":".", "decimalSeperator":","}, "dateFormat":"d.M.yyyy", "timeFormat":"H:mm:ss", "dateTimeFormat":"d.M.yyyy H:mm:ss", "booleanFormat":{"true":"True", "false":"False"}, "maxNumParameterDefaultValues":"200", "canOpenAdvancedDialog":true}, "zoom":100, "zoomFromUI":false, "lastRefresh":"9.7.2014 17:47:04"}, "curViewId":"0"}
    viewer_toptoolbar_search_textField:Bul...
    text_viewer_toptoolbar_selectPg:2 / 5
    text_viewer_toptoolbar_zoom:100%
    __CALLBACKID:viewer
    __CALLBACKPARAM:{"tb":"next"}

  • How do I use page numbering and a text block in a footer in Word with the Report Generation Toolkit?

    I am creating a Word document with the Report Generation Toolkit, and LabVIEW 8.2.1. In the report I am using a template that has page numbering enabled in the center. When I try to add a text block to the left side footer, it eliminates the page numbering and adds my text on the left side. I found "Set Report Footer Text" and "Word Set Page Numbering" vi's that may be the clue to this. When I use these two vi's I either get Page 1 of 456789-001 on the left side, or if I reverse the order I get only 456789-001(text) in the left side with nothing in the center. What I would like to achieve is 456789-001(text) on the left footer, and Page 1 of 2 in the center. Is this possible and if it is, then how can I do it?

    Hi SciManStev,
    I have attached a vi where you can see how they can be made to work together. You have to design it such that one follows the other. If you don't design it that way, it results in a race condition and only one of them get executed.
    Good Luck!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer
    Attachments:
    SciMan1.vi ‏14 KB

  • Getting the error while calling the report from oaf page

    Dear all
    when i am calling the report from oaf page
    if (pageContext.getParameter("PrintPDF") != null)
    DataObject sessionDictionary =
    (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response =
    (HttpServletResponse)sessionDictionary.selectValue("HttpServletResponse");
    try
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition", contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream =
    new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    "XXCRM", "XXCRM_EMP",
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF, null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    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);
    pageContext.setDocumentRendered(false);
    i am getting the error java.classcastexception at this line
    DataObject sessionDictionary =
    (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    regards
    Sreekanth

    check if you have import oracle.cabo.ui.data.DataObject; in your import statement.
    --Prasanna                                                                                                                                                                                               

  • Error while calling xml report from oaf page

    hi all
    i am calling xml(pdf) report from oaf page the back end jdeveloper console this error message is coming
    when i am caling report empty out put is coming
    any one help me regarding this issue
    123109_073025194][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
    [123109_073025194][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_COOKIE_NAME]:[DEV]
    [123109_073025194][][EXCEPTION] [DEBUG] [JDBC:processEscapes]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
    [123109_073025194][][EXCEPTION] [DEBUG] [APPL_SERVER_ID]:[07910A4CBEF04DE395C782218C44D60710897045366671209174079915214149]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[100]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_SESSION_COOKIE_VALUE]:[iDQBc8141owULp9woYLCe7wm:S]
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_TRANSACTION_ID]:[-1]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RRRR]
    [123109_073025194][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[20023]
    [123109_073025194][][EXCEPTION] [DEBUG] [LOGIN_ID]:[113493]
    [123109_073025194][][EXCEPTION] [DEBUG] [DB_PORT]:[1521]
    [123109_073025194][][EXCEPTION] [DEBUG] [USER_ID]:[1251]
    [123109_073025194][][EXCEPTION] [DEBUG] [DISPLAY_LANGUAGE]:[US]
    [123109_073025194][][EXCEPTION] [DEBUG] [APPLICATION_ID]:[crm.oracle.apps.xxcrm.crmmgmt.quotationmgmt.server.xxcrmquotationmgmtAM]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
    [123109_073025194][][EXCEPTION] [DEBUG] [GUEST_USER_PWD]:[GUEST/ORACLE]
    [123109_073025194][][EXCEPTION] [DEBUG] [RESP_ID]:[50722]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_PROFILE_VALIDATION_ENABLED]:[null]
    [123109_073025194][][EXCEPTION] [DEBUG] [FUNCTION_ID]:[-1]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_PV_SESSION_MODE]:[115P]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_LANG]:[null]
    [123109_073025194][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=data02.utsco.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DEV)))]
    [123109_073025194][][EXCEPTION] [DEBUG] [FNDNAM]:[APPS]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_PROXY_USER]:[null]
    [123109_073025194][][EXCEPTION] [DEBUG] [TWO_TASK]:[DEV]
    [123109_073025194][][EXCEPTION] [DEBUG] [APPS_JDBC_DRIVER_TYPE]:[THIN]
    [123109_073025194][][EXCEPTION] [DEBUG] [DB_HOST]:[data02.utsco.com]
    [123109_073025194][][EXCEPTION] [DEBUG] [DBC_FILE_PATH]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
    [123109_073025194][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
    [123109_073025194][][EXCEPTION] [DEBUG] [LANG_CODE]:[US]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
    [123109_073025194][][EXCEPTION] [DEBUG] [USER_NAME]:[CRMUSER]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[5]
    [123109_073025194][][EXCEPTION] [DEBUG] [DB_NAME]:[DEV]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[AL32UTF8]
    [123109_073025194][][EXCEPTION] [DEBUG] [ORG_ID]:[82]
    [123109_073025194][][EXCEPTION] [DEBUG] [DB_ID]:[DEV]
    [123109_073025194][][EXCEPTION] [DEBUG] [GWYUID]:[APPLSYSPUB/PUB]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[UNITED ARAB EMIRATES]
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_SESSION_ID]:[848565270]
    [123109_073025194][][EXCEPTION] [DEBUG] [JDBC:oracle.jdbc.maxCachedBufferSize]:[358400]
    [123109_073025194][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
    [123109_073025194][][EXCEPTION] [DEBUG] [ajp.connection.listener.state]:[down]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Client Compiler]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.container.version]:[10.1.3.3.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [os.name]:[Windows XP]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[C:\OAF\jdevbin\jdk\jre\lib\rt.jar;C:\OAF\jdevbin\jdk\jre\lib\i18n.jar;C:\OAF\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\OAF\jdevbin\jdk\jre\lib\jsse.jar;C:\OAF\jdevbin\jdk\jre\lib\jce.jar;C:\OAF\jdevbin\jdk\jre\lib\charsets.jar;C:\OAF\jdevbin\jdk\jre\classes]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.desktop]:[windows]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0_05-b05]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.trusted.clients]:[*]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.security.jazn.config]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.name]:[utsguest]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.language]:[en]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.naming.factory.initial]:[com.evermind.server.ApplicationInitialContextFactory]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[C:\OAF\jdevbin\jdk\jre\bin]
    [123109_073025194][][EXCEPTION] [DEBUG] [oc4j.jms.usePersistenceLockFiles]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.version]:[1.5.0_05]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.util.logging.manager]:[oracle.classloader.util.ApplicationLogManager]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.timezone]:[GMT+04:00]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.net.preferIPv4Stack]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
    [123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.UtilClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.Util]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[C:\OAF\jdevbin\jdk\jre\lib\endorsed]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[Cp1252]
    [123109_073025194][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
    [123109_073025194][][EXCEPTION] [DEBUG] [DBCFILE]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
    [123109_073025194][][EXCEPTION] [DEBUG] [file.separator]:[\]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.country]:[US]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.home]:[C:\OAF\jdevbin\jdk\jre]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
    [123109_073025194][][EXCEPTION] [DEBUG] [os.version]:[5.1]
    [123109_073025194][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBSingletonClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
    [123109_073025194][][EXCEPTION] [DEBUG] [path.separator]:[;]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0_05-b05]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.variant]:[]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.protocol.handler.pkgs]:[oracle.apps.xdo.common.net.protocol|com.evermind.protocol]
    [123109_073025194][][EXCEPTION] [DEBUG] [checkForUpdates]:[adminClientOnly]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.awt.windows.WPrinterJob]
    [123109_073025194][][EXCEPTION] [DEBUG] [RUN_FROM_JDEV]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.sun.jts.pi.INTEROP_MODE]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [awt.toolkit]:[sun.awt.windows.WToolkit]
    [123109_073025194][][EXCEPTION] [DEBUG] [MetaObjectContext]:[oracle.adf.mds.jbo.JBODefManager]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_TOP]:[C:\OAF\jdevhome\jdev\dbc_files\]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.http.socket.timeout]:[500]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.port]:[5656]
    [123109_073025194][][EXCEPTION] [DEBUG] [JRAD_ELEMENT_LIST_PATH]:[C:\OAF\jdevhome\jdev\myhtml\OA_HTML\jrad\]
    [123109_073025194][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.sun.CORBA.POA.ORBServerId]:[1000000]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.naming.factory.url.pkgs]:[oracle.oc4j.naming.url]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.home]:[C:\Documents and Settings\utsguest]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.home]:[C:\OAF\jdevbin]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.dms.sensors]:[5]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.library.path]:[C:\OAF\jdevbin\jdk\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\DevSuiteHome_1\jdk\jre\bin\classic;C:\DevSuiteHome_1\jdk\jre\bin;C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\apps\product\11.1.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsPowerShell\v1.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
    [123109_073025194][][EXCEPTION] [DEBUG] [XDO_TOP]:[E:\oracle\apps\apps_st\appl\xdo\12.0.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.StubClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.dont.use.memory.archive]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.class.path]:[C:\OAF\jdevbin\jdk\jre\lib\rt.jar;C:\OAF\jdevbin\jdk\jre\lib\jsse.jar;C:\OAF\jdevbin\jdk\jre\lib\jce.jar;C:\OAF\jdevbin\jdk\jre\lib\charsets.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\dnsns.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\localedata.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\sunjce_provider.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\sunpkcs11.jar;C:\OAF\jdevbin\j2ee\home\oc4j-api.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-unsupported-api.jar;C:\OAF\jdevbin\j2ee\home\lib\activation.jar;C:\OAF\jdevbin\j2ee\home\lib\mail.jar;C:\OAF\jdevbin\j2ee\home\lib\persistence.jar;C:\OAF\jdevbin\j2ee\home\lib\ejb30.jar;C:\OAF\jdevbin\j2ee\home\lib\ejb.jar;C:\OAF\jdevbin\j2ee\home\lib\javax77.jar;C:\OAF\jdevbin\j2ee\home\lib\javax88.jar;C:\OAF\jdevbin\j2ee\home\lib\servlet.jar;C:\OAF\jdevbin\j2ee\home\lib\jms.jar;C:\OAF\jdevbin\j2ee\home\lib\jta.jar;C:\OAF\jdevbin\j2ee\home\lib\jacc-api.jar;C:\OAF\jdevbin\j2ee\home\lib\connector.jar;C:\OAF\jdevbin\j2ee\home\lib\jmx_remote_api.jar;C:\OAF\jdevbin\j2ee\home\lib\jax-qname-namespace.jar;C:\OAF\jdevbin\webservices\lib\jaxr-api.jar;C:\OAF\jdevbin\webservices\lib\jaxrpc-api.jar;C:\OAF\jdevbin\webservices\lib\saaj-api.jar;C:\OAF\jdevbin\webservices\lib\jws-api.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-internal.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-oc4j.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-client.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-server.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-schemas.jar;C:\OAF\jdevbin\j2ee\home\lib\ojsp.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j_orb.jar;C:\OAF\jdevbin\j2ee\home\lib\iiop_support.jar;C:\OAF\jdevbin\j2ee\home\lib\orbbase.jar;C:\OAF\jdevbin\j2ee\home\iiop_gen_bin.jar;C:\OAF\jdevbin\j2ee\home\lib\jmxcluster.jar;C:\OAF\jdevbin\j2ee\home\jaccprovider.jar;C:\OAF\jdevbin\javavm\lib\jasper.zip;C:\OAF\jdevbin\j2ee\home\lib\adminclient.jar;C:\OAF\jdevbin\opmn\lib\optic.jar;C:\OAF\jdevbin\j2ee\home\jacc-spi.jar;C:\OAF\jdevbin\j2ee\home\jazncore.jar;C:\OAF\jdevbin\j2ee\home\jazn.jar;C:\OAF\jdevbin\jlib\ospnego.jar;C:\OAF\jdevbin\jlib\ldapjclnt10.jar;C:\OAF\jdevbin\webservices\lib\wsserver.jar;C:\OAF\jdevbin\webservices\lib\wsif.jar;C:\OAF\jdevbin\webservices\lib\orawsmetadata.jar;C:\OAF\jdevbin\webservices\lib\orajaxr.jar;C:\OAF\jdevbin\jlib\jssl-1_1.jar;C:\OAF\jdevbin\jlib\ojmisc.jar;C:\OAF\jdevbin\toplink\jlib\toplink-oc4j.jar;C:\OAF\jdevbin\diagnostics\lib\ojdl2.jar;C:\OAF\jdevbin\xqs\lib\xqs-api.jar;C:\OAF\jdevbin\xqs\lib\xds.jar;C:\OAF\jdevbin\jdev\lib\jdev-oc4j-embedded.jar;C:\OAF\jdevbin\j2ee\home\lib\pcl.jar;C:\OAF\jdevbin\j2ee\home\lib\ext;C:\OAF\jdevbin\lib\dmsapp.jar;C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\admin_ejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\OAF\jdevbin\jlib\jsp-el-api.jar;C:\OAF\jdevbin\jlib\commons-el.jar;C:\OAF\jdevbin\jlib\oracle-el.jar;C:\OAF\jdevbin\jlib\jewt4.jar;C:\OAF\jdevbin\jdev\appslibrt\regexp.jar;C:\OAF\jdevbin\jdev\appslibrt\share.jar;C:\OAF\jdevbin\jdev\appslibrt\uix2.jar;C:\OAF\jdevbin\oaext\mds\lib\mdsrt.jar;C:\OAF\jdevbin\oaext\lib\mdsdt.jar;C:\OAF\jdevbin\oaext\lib\oamdsdt.jar;C:\OAF\jdevbin\javacache\lib\cache.jar;C:\OAF\jdevbin\lib\xschema.jar;C:\OAF\jdevbin\BC4J\lib;C:\OAF\jdevbin\BC4J\lib\adfbinding.jar;C:\OAF\jdevbin\BC4J\lib\adfcm.jar;C:\OAF\jdevbin\BC4J\lib\adfm.jar;C:\OAF\jdevbin\BC4J\lib\adfmweb.jar;C:\OAF\jdevbin\BC4J\lib\adfs-jazn.jar;C:\OAF\jdevbin\BC4J\lib\adfs.jar;C:\OAF\jdevbin\BC4J\lib\adfshare.jar;C:\OAF\jdevbin\BC4J\lib\bc4jct.jar;C:\OAF\jdevbin\BC4J\lib\bc4jctejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jimdomains.jar;C:\OAF\jdevbin\BC4J\lib\bc4jmt.jar;C:\OAF\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jsyscat.jar;C:\OAF\jdevbin\BC4J\lib\collections.jar;C:\OAF\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\OAF\jdevbin\jdev\appslibrt\fwk.zip;C:\OAF\jdevbin\jdev\appslibrt\atg.zip;C:\OAF\jdevbin\jdev\appslibrt\collections.zip;C:\OAF\jdevbin\jdev\appslibrt\iasjoc.zip;C:\OAF\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\OAF\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\OAF\jdevbin\jdev\appslibrt\svc.zip;C:\OAF\jdevbin\jdev\appslibrt\pat.zip;C:\OAF\jdevbin\jdev\appslibrt\concurrent.zip;C:\OAF\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\OAF\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\OAF\jdevbin\jdev\appslibrt\wsrp-container.jar;C:\OAF\jdevbin\jdev\appslibrt\pdkjava.jar;C:\OAF\jdevbin\jdev\appslibrt\ptlshare.jar;C:\OAF\jdevbin\jdev\appslibrt\xml.jar;C:\OAF\jdevbin\jdev\appslibrt\wsrp-container-types.jar;C:\OAF\jdevbin\jdev\appslibrt\jaxb-impl.jar;C:\OAF\jdevbin\jdev\appslibrt\jaxb-libs.jar;C:\OAF\jdevbin\jdev\appslibrt\jazn.jar;C:\OAF\jdevbin\jdev\appslibrt\jazncore.jar;C:\OAF\jdevbin\bibeans\lib\biamlocal.jar;C:\OAF\jdevbin\bibeans\lib\bipres.jar;C:\OAF\jdevbin\bibeans\lib\bicmn.jar;C:\OAF\jdevbin\bibeans\lib\bidatasvr.jar;C:\OAF\jdevbin\bibeans\lib\bidataclt.jar;C:\OAF\jdevbin\bibeans\lib\bidatacmn.jar;C:\OAF\jdevbin\bibeans\lib\biext.jar;C:\OAF\jdevbin\bibeans\lib\bicmn-nls.zip;C:\OAF\jdevbin\bibeans\lib\bipres-nls.zip;C:\OAF\jdevbin\bibeans\lib\bidata-nls.zip;C:\OAF\jdevbin\oaext\config\oac\oacfilter.jar;C:\OAF\jdevbin\j2ee\home\lib\scheduler.jar;C:\OAF\jdevbin\jdev\lib\jdev-rt.jar;C:\OAF\jdevbin\jdev\lib\ojc.jar;C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\connectors\datasources\datasources\datasources.jar;C:\OAF\jdevbin\diagnostics\lib\ojdl.jar;C:\OAF\jdevbin\lib\dms.jar;C:\OAF\jdevbin\jdbc\lib\ojdbc14dms.jar;C:\OAF\jdevbin\opmn\lib\ons.jar;C:\OAF\jdevbin\jdbc\lib\ocrs12.jar;C:\OAF\jdevbin\rdbms\jlib\aqapi.jar;C:\OAF\jdevbin\j2ee\home\lib\ojms-provider.jar;C:\OAF\jdevbin\jdbc\lib\orai18n.jar;C:\OAF\jdevbin\lib\xmlparserv2.jar;C:\OAF\jdevbin\lib\xml.jar;C:\OAF\jdevbin\lib\xmlmesg.jar;C:\OAF\jdevbin\lib\xsu12.jar;C:\OAF\jdevbin\lib\xquery.jar;C:\OAF\jdevbin\jlib\osdt_core.jar;C:\OAF\jdevbin\jlib\osdt_cert.jar;C:\OAF\jdevbin\jlib\osdt_xmlsec.jar;C:\OAF\jdevbin\jlib\osdt_wss.jar;C:\OAF\jdevbin\jlib\osdt_saml.jar;C:\OAF\jdevbin\jlib\ojpse.jar;C:\OAF\jdevbin\jlib\oraclepki.jar;C:\OAF\jdevbin\toplink\jlib\toplink.jar;C:\OAF\jdevbin\toplink\jlib\antlr.jar;C:\OAF\jdevbin\toplink\jlib\toplink-essentials.jar;C:\OAF\jdevbin\webservices\lib\wsclient.jar;C:\OAF\jdevbin\webservices\lib\orasaaj.jar;C:\OAF\jdevbin\webservices\lib\xsdlib.jar;C:\OAF\jdevbin\webservices\lib\mdds.jar;C:\OAF\jdevbin\webservices\lib\relaxngDatatype.jar;C:\OAF\jdevbin\webservices\lib\soap.jar;C:\OAF\jdevbin\sqlj\lib\runtime12.jar;C:\OAF\jdevbin\sqlj\lib\translator.jar;C:\OAF\jdevbin\webservices\lib\orawsdl.jar;C:\OAF\jdevbin\j2ee\home\applib;C:\OAF\jdevbin\j2ee\home\jsp\lib\taglib;C:\OAF\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\OAF\jdevbin\lib\dsv2.jar;C:\OAF\jdevbin\j2ee\home\lib\http_client.jar;C:\OAF\jdevbin\j2ee\home\lib\jgroups-core.jar;C:\OAF\jdevhome\jdev\myhtml\OA_HTML;C:\OAF\jdevhome\jdev\myclasses;C:\OAF\jdevbin\jlib\jdev-cm.jar;C:\OAF\jdevbin\BC4J\jlib\bc4jhtml.jar;C:\OAF\jdevbin\BC4J\jlib\datatags.jar;C:\OAF\jdevbin\BC4J\jlib\bc4juixtags.jar;C:\OAF\jdevbin\BC4J\jlib\graphtags.jar;C:\OAF\jdevbin\jdev\appslibrt\wsp.zip;C:\OAF\jdevbin\jdev\appslibrt\diagnostics.jar;C:\OAF\jdevbin\jdev\appslibrt\svctester.jar]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.home]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.application.environment]:[development]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
    [123109_073025194][][EXCEPTION] [DEBUG] [JRAD_XML_PATH]:[C:\OAF\jdevhome\jdev\myclasses\JRADXML;C:\OAF\jdevhome\jdev\myprojects;C:\OAF\jdevbin\jdev\oamdsxml\fwk]
    [123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.PortableRemoteObjectClass]:[com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject]
    [123109_073025194][][EXCEPTION] [DEBUG] [org.omg.PortableInterceptor.ORBInitializerClass.oracle.oc4j.corba.iiop.server.IIOPInitializer]:[NO_VALUE]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.container.name]:[Oracle Containers for J2EE 10g (10.1.3.3.0) ]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[Service Pack 3]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[C:\DOCUME~1\utsguest\LOCALS~1\Temp\]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.sun.jts.pi.CLIENT_POLICY_CHECKING]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.mutual.auth.port]:[5657]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[200]
    [123109_073025194][][EXCEPTION] [DEBUG] [os.arch]:[x86]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.Win32GraphicsEnvironment]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.ext.dirs]:[C:\OAF\jdevbin\jdk\jre\lib\ext]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.dir]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config]
    [123109_073025194][][EXCEPTION] [DEBUG] [CACHENODBINIT]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [line.separator]:[
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Client VM]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.sun.CORBA.connection.ORBSocketFactoryClass]:[oracle.oc4j.corba.iiop.IIOPSSLSocketFactory]
    [123109_073025194][][EXCEPTION] [DEBUG] [javax.management.builder.initial]:[oracle.oc4j.admin.jmx.server.Oc4jMBeanServerBuilder]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.use.ssl]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
    [123109_073025194][][EXCEPTION] [DEBUG] [file.encoding]:[Cp1252]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.oc4j.http.socket.sendbuffersize]:[16384]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.specification.version]:[1.5]
    regard
    sreekanth

    Hi Sreekanth;
    Change your output type from PDF to HTML. Then it will give you clear error message in HTML page after fixing it if you able to see/run report fine in HTML then change your output type back to PDF.
    GsrC

  • Out put file is not genrated when calling xml reports from OAF page

    Dear all
    i am calling xml reports from OAF page
    the out put file is not generated
    i am writing this code
    public int tradingrequest(String quoid, String costoder,int orgid)
    try
    OADBTransaction tx = (OADBTransaction)getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    String applnName =
    "XXCRM"; //Application that contains the concurrent program
    String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
    String cpDesc =
    "Trading Costsheet Report XXCRM"; // concurrent Program description
    Number orgid1=new Number(orgid);
    // Pass the Arguments using vector
    Vector cpArgs = new Vector();
    cpArgs.addElement(quoid);
    cpArgs.addElement(costoder);
    cpArgs.addElement(orgid1.toString());
    // Calling the Concurrent Program
    int requestId =
    cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
    tx.commit();
    System.out.println("Request ID is " + requestId);
    return requestId;
    } catch (RequestSubmissionException e)
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule(this);
    throw oe;
    in controller i am writing this code
    OAMessageStyledTextBean y =
    (OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
    OAFormValueBean z =
    (OAFormValueBean)webBean.findChildRecursive("costorder");
    String quoid = y.getValue(pageContext).toString();
    String costorder = z.getValue(pageContext).toString();
    System.out.println("The quotation id and costing order are....." + quoid +
    " " + costorder);
    /*if click on run report button to run the report*/
    if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
    if (tsflag.equals("Y"))
    int requestid = am.servicerequest(quoid, costorder, orgid);
    String url =
    "OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
    requestid;
    pageContext.setForwardURL(url, null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
    null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    when i call the report from oaf page the request id is coming
    when i click on view output i am getting this message
    Error
    The concurrent request 7335031 did not create an output file.
    WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
    Regards
    Sreekanth

    java.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
    MY CO code
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    // Hashtable hashtable = new Hashtable(1);
    // hashtable.put("TruckBookingRefNum",trucknum);
    // System.out.println("test"+trucknum);
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/HTML");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    "LFCUST",
    "XXLFCARSUM_TARGET",
    "English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    "US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_HTML,
    null,
    pdfFile);
    // hashtable);
    System.out.println(" TemplateHelper");
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    System.out.println(" byte"+b);
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    pdfFile.flush();
    pdfFile.close();
    catch(Exception e)
    System.out.println(" inside catch");
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(true);
    Edited by: user9367919 on May 13, 2010 10:31 AM

  • Custom report instead of standard standard report "EAMWRREP" from OAF

    Hi All,
    I have a requirement to fire a custom report instead of standard standard report "EAMWRREP" from OAF.
    Screen -> EAM Self Service Maintenance -> Work Orders -> Search Work Orders -> Print Work Order
    Standard page ->WorkOrderRepPG 120.2
    Standard Controller -> WorkOrderRepCO
    I have extended the standard controller to override the call
    as shown below :
    Standard WorkOrderRepCO :
    oapagecontext.putParameter("p_DataSourceCode", "EAMWRREP");
    oapagecontext.putParameter("p_DataSourceAppsShortName", "EAM");
    Extended :WorkOrderTestCO
    oapagecontext.putParameter("p_DataSourceCode", "USS_EAM_WO_OAF");
    oapagecontext.putParameter("p_DataSourceAppsShortName", "XP2P");
    The custom report gets fired with header and footer but with NO DATA.
    The custom report is a simple RDF+XML report (RDF data model + XML template)
    with just query SELECT wip_entity_name from wip_entities where wip_entity_id = : WipEntityId
    Can some one please let me know how to pass parameters to a report likne mine??
    Regards,
    Ambika Ramachandran

    Try the OA Framework Forum

  • Ajax Report Pull from another Page Pagination override

    We are on a time crunch and need to get this application working in a timely manner, any help would greatly be appreciated..
    *[History leading up to problem]*
    We followed the code from this example http://apex.oracle.com/pls/otn/f?p=11933:48:4441142106394445 which pulls a report from another page using AJAX so we could update a report (in this case a tabular form). Since Tabular Forms cannot update past 30-40 records we had to turn on pagination to prevent errors when trying to submit it.
    Since Pagination on the bottom of the report/tabular form links to the other page the report is on, I decided to attempt to override next> href link to instead call a javascript with the url from next> (Report/Tabular Form Pagination) with Jquery the following code {the override is working} {comments added here for clarification}...
    var oldhref =$("a.t20pagination").attr("href"); //get Apex Pagination a href link location
    $("a.t20pagination").attr('href', "javascript:return false"); // change the Apex Pagination a href llink location to do nothing
    $("a.t20pagination").click(function () {   // Create an onclick for Apex Pagination a href that calls a javascript function
    get_report_page(oldhref); // This function is needed because I am grabbing the report from another page, I hope to
    }); // get this javascript working [the reason why I am asking this question here]
    $("a.t20pagination").removeClass("t20pagination"); // Removed the pagination class just in case it was causing issues.
    The function I am working on below... {I figured I have to do the htmldb_get function {I am still new to Apex so I am not totally clear on it, but learning}, to get the report again from the other page, but I need to add pagination.. So I figured I could split the link location based on the : and go through the array for the parts I need to pass in the htmldb_get}, with alerts to help diagnose the problem...
    function get_report_page(curUrl) {
    alert ('Hello how are you today?');
    var temp = new Array();
    temp = curUrl.split(':');
    alert ('I like the number '+temp.length);
    for ( var i=0, len=temp.length; i<len; ++i ){
    alert (i+":"+temp); // Square brackets actually used, changed to squiggly here to show
    var get = new htmldb_Get(null,$x('pFlowId').value,null,205,null, null, temp{4}); // Square brackets actually used, changed to squiggly here to show
    gReturn = get.get(null,'<htmldb:BOX_BODY>','</htmldb:BOX_BODY>');
    get = null;
    $x('ReportDrop').innerHTML = gReturn;
    *[Actual Problem]*
    Since the report is on another page (in this case 205) and is being pulled onto Page 200 where the user is, when the user clicks on the Next> for the report/tabluar form pagination, the user is automatically thrown to page 205 {I want to keep the user on page 200 and pass the pagination, then pull the report/tabular form again}
    I looked at the link http://apex.oracle.com/pls/otn/f?p=11620:63:834860992188521::NO::: but I am not sure where to stick the report pagination{I thought it would be queryString {above you see I am setting temp[4] in the queryString parameter}..
    I know the function is working since I get the alert messages, after that where the report would be it gives the following error...
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /pls/apex/wwv_flow.show HTTP-400 Signature Mismatch or Missing '='
    Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at nysastst.senate.state.ny.us Port 7778
    Can I simply splice the url like I am doing above and pass it to htmldb_get (or is there anyway to pass the report pagination using htmldb_get)?
    If so, what am I doing wrong?
    Also, does this seem like a decent solution or is there a better solution for this issue?
    - Thanks in advance,
    - Brian
    Edited by: brheitner on Dec 10, 2009 8:09 AM
    Edited by: brheitner on Dec 10, 2009 8:11 AM
    Edited by: brheitner on Dec 10, 2009 8:13 AM

    Thanks cb... it worked like a charm..
    but at first, I Could not get it to work because in my report that was being pulled from another page did not have Enable Partial Refresh set to Yes under Report Attributes > Layout and Pagination.. When it was off the a href link of the pagination was showing a standard link. Once Enable Partial Refresh was set to Yes, the pagination then showed a link to javascript:$a_report(...); which meant you can now override it with the javascript function.
    Here is the thread I found it in
    Call Process Through AJAX

Maybe you are looking for

  • Remote app on iphone with Itunes library / Erratic connection problems.

    I have been using Remote app on my Iphone to manage Itunes for months with 100% pleasure and 0 trouble. For a few days, it has some erratic behaviour like having difficulties to connect to my Itunes library. In such case if I touch the Change Library

  • Error While Posting MIGO for a Suncontracting PO ..

    Hi All I have created a Subcontracting PO and then transffered the material to subcon vendor's stock. now while doing MIGO for the same PO i am getting error as : "Account determination for entry EKCA FRN not possible" Please let me know why this err

  • Docks for Internal Hard Drives

    At my workplace, we've started using Thermaltake Blacx dual dock stations. The concept is nice, but we've had trouble with drives not mounting. Sometimes the drives just won't show up at all. I still haven't tracked down the problem yet - but there h

  • How do I remove old music and playlists?

    I tried to remove old music by selecting Sync Music, Selected Playlists etc, And only checked the 3 playlists I wanted. All the playlists got synced. Help!

  • How to determine which adapter to be used in a scenario

    Hi All, I am new to XI and have some very basic knowledge about it. I wish to know if I need to send data from a legacy(system A) to SAp (system B) how do I know what adapter to use. Should I use file, idoc ,JMS etc adapter. Is there a specific guide