Opening a Report form an OAF page

Hi!
How to submit a concurrent program from OAF.
Jdev version 9i. Instance 11i
And how to view the output of the report in the front end after report execution is complete
thanks
Souri

Hi ,
Please try this ,
http://prasanna-adf.blogspot.in/2008/11/call-concurrent-program-from-oa.html
Keerthi

Similar Messages

  • Calling Oracle Standard Form from OAF page - Need to hide the find screen.

    Hi all,
    i have a requirement where i need to call a oracle standard form(D2K form) from OAF page and need to pass parameter. Now i can able to call a form from page on button click using the following syntax,
    "form:AR:US_AR_SUPER_USER:STANDARD:AR_ARXCWMAI_AGE"
    My query here is, When i call this form its open with find Form and after values are entered it goes the main form.
    I need to hide this find screen which is avaiable in standard and need to call directly the main form with out find form.
    Please help me out to reach this.
    Thanks in advance.
    Regards,
    Renu

    You need to pass the parameter to the actual form to display the results something like "form:AR:US_AR_SUPER_USER:STANDARD:AR_ARXCWMAI_AGE&P_PARAM=123", assuming P_PARAM is the actual parameter defined in the form. Open the form and check which parameters are available and pass the values accordingly.
    Thanks
    Shree

  • UTIL-PARAM STRING ERROR when calling a form from OAF Page

    Dear Experts,
    Can you please suggest, as we are getting the below error when we are calling a form from OAF page.
    "UTIL-PARAM STRING ERROR"
    We have created a button to call the same and the syntax used is as below.
    form:PA:OLNG_MOC_PROJECTS_ENGINEER:STANDARD:PA_PAXCARVW:PROJECT_NUMBER={@ProjectNumber}
    Thanks in advance,
    Satish

    Hi all,
    I have a Personalized Button, my button call a customized form (with a parameter named TAINV_PARAM). Function of customized Form is TAINV_FORM
    In OAF page, I have a text, it's values is 'TAINV', it's ID is VALUES_ATTRIBUTE (you can show source code in browser).
    In Destination URL of Personalized Button, fill code to call Customized Form:
    *javascript: var v_get_value=document.GetElementById(VALUES_ATTRIBUTE).innerHTML;openWindow(top, 'OA.jsp?OAFunc=TAINV_FORM&TAINV_PARAM'+v_get_value,null, {width:750, height:550},false, 'dialog', null);void(0);*
    Regards,
    TAINV

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

  • Calling a form from OAF Page

    One of my client is currently trying the following based on the instructions on page 331 of the "Oracle Application Framework Developer’s Guide Release 11.5.10 RUP4 July 2006".
    To open a D2K form from an OA Framework page ->
    Trying to pass a parameter to the form. When they use a hardcode value like:
    form:CSS:CUST_SUPPORT_US1_USER_ERGO:STANDARD:XX_XXTRFRMA:P_INCIDENT_ID=162498
    The form opens correctly and there are no errors. But when the client passes a value from a field on the OAF page like:
    form:CSS:CUST_SUPPORT_US1_USER_ERGO:STANDARD:XX_XXTRFRMA:P_INCIDENT_ID={@IncidentId}
    They get the UTIL-PARAM STRING ERROR
    Forms currently being used is 6.0.8.28.0 with PATCH 8888184

    Hi all,
    I have a Personalized Button, my button call a customized form (with a parameter named TAINV_PARAM). Function of customized Form is TAINV_FORM
    In OAF page, I have a text, it's values is 'TAINV', it's ID is VALUES_ATTRIBUTE (you can show source code in browser).
    In Destination URL of Personalized Button, fill code to call Customized Form:
    *javascript: var v_get_value=document.GetElementById(VALUES_ATTRIBUTE).innerHTML;openWindow(top, 'OA.jsp?OAFunc=TAINV_FORM&TAINV_PARAM'+v_get_value,null, {width:750, height:550},false, 'dialog', null);void(0);*
    Regards,
    TAINV

  • Opening a word file from oaf page

    Hello all,
    we have a word file which we need to open from OAF page. Is it possible to achieve this using personalization? If yes, please give me the steps. If not, we we need to go for customization to achieve this, whichis the approach on that?
    Thank You in advance. Your suggestion is very valuable for me.
    Regards
    KK

    Hi there,
    Yes you can do this using personalization. Simply go to the page where you want it and add a new item type LINK. The text property is the text the user will see for the link and the URI is the hyperlink to the file. Say for instance you had a word document named test.doc and you want to put it into the OA_MEDIA directory.
    The URI would be /OA_MEDIA/test.doc. Non local based files would be of the form http:// etc.
    If you set the destination frame to blank (literally enter the word blank), then it will open in a new window.
    Hope this helps.
    Kristofer Cruz
    Edited by: Kristofer Cruz on Nov 7, 2011 2:06 PM

  • Can we call an oracle form from OAF Page

    Hi,
    I have a requirement , wherein I should add a field to an existing OAF Page and when the user clicks on the field the oracle forms should open and after filling the details in the oracle form user will close the from and return to the OAF page.
    I would like to get some inputs on how this can be acheived.
    Please do help .

    Use this as an example.
    int orgId = pageContext.getOrgId();
    String destination = "form:SQLAP:DAV_PAYABLES_MGR:STANDARD:AP_APXINWKB_BATCH_SUMMARY_VIEW:INVOICE_ID=" invoiceId " ORG_ID="+orgId+" G_QUERY_FIND='FLASE'";
    pageContext.forwardImmediatelyToForm(destination);
    DAV_PAYABLES_MGR is the responsibility Key that you wanted to use and the user has that responsibility
    AP_APXINWKB_BATCH_SUMMARY_VIEW is the name of form. This is not the name of FMB but the form definition name
    Regards,
    Ravi.

  • 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

  • Creating an XML Report from OAF page

    Hi All,
    I have a requirement to create a PDF report from an OAF page. From the below code , I was able to print the XML with the values.
    I know i should map this XML to RTF by creating the Data defiition through XML publisher responsibility.
    My understanding :
    1. Generate the XML from Conttroller
    2. Load the XML to RTF and map the fields
    3. Register as Data Definition and RTF
    4. Output seen
    MY QUESTION IS : If i load the values from the below XML to the RTF and register in the data definition , i will get the same values every time it is right . From my understanding, if the data has to change in the report, ,there should be a way which will directly send the generated xml from the controller to the RTF (Without step2)
    I DEFINITELY BELIEVE, THAT I AM MISSING SOME THING HERE . PLEASE HELP ME
    public void processRequest(OAPageContext pageContext,
    OAWebBean webBean) {
    super.processRequest(pageContext, webBean);
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("colorVO1");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    //(XMLNode)vo.writeXML(4,"")
    try {
    ((XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
    } catch (IOException e) {
    // TODO
    throw new OAException("The value of VO is " + vo,
    OAException.CONFIRMATION);
    System.out.println(outputStream.toString());
    Generated XML :
    <colorVOEx3Row>
    <UserName>abc</UserName>
    <UserId>33102</UserId>
    <CreatedBy>27241</CreatedBy>
    <Clr1>0</Clr1>
    </colorVOEx3Row>
    <colorVOEx3Row>
    <UserName>deg</UserName>
    <UserId>33604</UserId>
    <CreatedBy>1135</CreatedBy>
    <Clr1>0</Clr1>
    </colorVOEx3Row>
    <colorVOEx3Row>
    <UserName>****mno</UserName>
    <UserId>33643</UserId>
    <CreatedBy>24587</CreatedBy>
    <Clr1>2</Clr1>
    </colorVOEx3Row>
    </colorVOEx3
    Please let me know what should me my next steps to generate the report. if i load the XML above to the RTF , irresepscive of my data from teh page, i will always get the 3 rows.i..e..(abc,def,*** mno).
    Hope i am clear.

    Hi Anand,
    Thanks for your reply. I have gone through the link you provided . It gave me excellent information. But just one clarification , when we create the data definition, dont we have to add any of the files like 'XML Schema','Data Template','Preview Data','Bursting Control File'.
    The reason, i am asking this question is, when i proviously worked with XML reports in 11.10.2, we used to attach a .xml file to the Data Template of the data definition ,which would populate the RTF.
    Now here, if i dont attach that file in the data definition, will the XML data direclty mapped from contrlloer ?. I assume ,The only thing i need to do is to MAP the XML tags to RTF before registering ..
    Please let me know if i am missing some thing
    Thanks
    Sunny

  • Calling OAF Page from Oracle forms

    Hi All,
    Is it possible to call an Oracle Forms from OAF page?
    I need to call a OAF page EAM material cost screen from oracle form using personalization.
    Please any one put on some lights on this issue.
    Thanks in Advance,
    Ramesh reddy
    Edited by: user642447 on May 13, 2011 4:33 AM

    Ramesh,
    yes, its possible to call oaf page from oracle forms.
    This has been specified step by step in Developer Guide. Refer it for more.
    Regards,
    Gyan

  • How can i call the xml report from oaf page

    Dear all
    i have oaf page in that page i need to call xml report from that oaf page
    how is posible.
    Regards
    Sreekanth

    refer this link http://apps2fusion.com/at/ps/260-integrating-xml-publisher-and-oa-framework
    --Prasanna                                                                                                                                                                                                                       

  • Issue while opening SSRS Report with Oracle as Datasource in Report Manager

    I deployed SSRS report in Report Manager but I am unable to generate that report. Am getting following error.
    Is it problem with datasource in report manager? I am not able to change the Data source type to Oracle. It is showing Microsoft SQL Server. How can I change it, no other options are coming except Microsoft SQL Server. Please help.
    An
    error has occurred during report processing. (rsProcessingAborted)
    Cannot
    create a connection to data source 'TEST_DS'. (rsErrorOpeningConnection)
    For
    more information about this error navigate to the report server on the local
    server machine, or enable remote errors

     When I deploy them in localhost, and try to run report in report manager, it is not showing any data source type in drop down list except MS SQL Server. I do not know why it is showing in BIDS and not in report manager!!!
    Hello,
    Based on my test, I can specify the data source type as Oracle after deploy the report to Report Manager and open the report Data source propertity page. If the report use the shared data source, you should check the specify data source at the Data Source
    folder. Please refer to the following screen shot:
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Who columns for OAF pages

    IS there anything equivalent to Forms' "Help -> Record History" in OAF Pages for end users to find the current records' Who column values?

    Niranjan,
    Forms and OAF pages belong to different techstack and therefore there are many technical differences in the two. Here you can view the vo query using about this page or use diagnostics mode to see existing logs of OAF pages.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • The edit Link on my report form opens the page to create a new record.

    For some reason my applications edit link on the report form is opening a new blank entry instead of pulling the data that needs edited from that row. I just have a basic report and form. Where can I check this Edit button to see if it is linking to the existing data?

    I found my problem my select statement had the primary key column removed some how.

Maybe you are looking for

  • ITunes 10.6.1.7: "iTunes cannot run because some of its required files are missing. Please reinstall iTunes." ?

    Fakt: iTunes 10.6.1.7 Fehlermeldung: "iTunes cannot run because some of its required files are missing. Please reinstall iTunes." Jeder Versuch iTunes zu starten war bisher vergeblich: unter anderem auch das Vorgehen nach Artikel HT1925 der knowledge

  • Can I use 64-bit Windows 7 on an Early 2008 iMac?

    According to the official support page, 32-bit Windows 7 is supported, but I have seen listings elsewhere that this machine meets Microsoft's specs for 64-bit Windows 7 "with the correct drivers" and that people hve successfully installed and run 64-

  • How do i get my file back when it seems to have been lost or replaced?

    My Mac froze and then shut down so i started it up again to find my indesign file had been replaced with a much older file with practically no work on. I closed the document and tried opening it again but it now will just open as a much older file. I

  • Explain plan for running query

    Hi everyone, I come to know how to generate explain plan for a given query by giving Explain plan for select * fro emp; Consider a query running for 5 hrs in a session and i want to genrate explain plan for that current query in its 4th hour i dont k

  • VWLC with AP1602 + VMware Workstation Multiple IP

    Hello, I have configured a new vWLC system with AP1602's. I have followed the manual and used FlexConnect. Everything is working fine but when I connect the VM's on my laptop they don't get a DHCP address. If I assign a static IP it works. I'm not ab