Open PDF in self service using oaf

Hello,
Can someone brief me how to open a rtf file created in xml publisher directly in selfservice instead of opening using a pdf editor externally? Can we have an option to enter some extra information in that opened rtf document and can we save that document in a custom table?
Thanks in advance
KPK

Hi,
I think this can be done there is one common region called document viwer that may help, please refer http://www.apps2fusion.com/at/ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
Regards,
Reetesh Sharma

Similar Messages

  • OAF : Could not open PDF from Self Service Page or Jdeveloper.

    Hi Friends,
    We are on R12 Applications.
    Appreciate any help.
    Requirement :
    1. Open the PDF from Self Service Page.
    Error :
    Adobe Reader Could Not Open the PDF because it is either not a supported file type or the file is damaged.
    Below is my Controller and AM code
    ======================
    Controller Code
    ==========
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package XXX.oracle.apps.ak.xml.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.xml.parser.v2.XMLNode;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransactionImpl;
    import oracle.apps.xdo.XDOException;
    import oracle.apps.xdo.oa.schema.server.TemplateHelper;
    import oracle.cabo.ui.data.DataObject;
    import oracle.jbo.XMLInterface;
    * Controller for ...
    public class XMLIntegrationCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    public static final int DEPTH = 4;
    public static final int APP_ID = 20003;
    public static final String APP_NAME = "XBOL";
    public static final String TEMPLATE_CODE ="Emp_Template";
    public static final int BUFFER_SIZE = 32000;
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    am.invokeMethod("initEmpVO");
    am.invokeMethod("getEmpDataXML");
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    System.out.println("XXX : Event "+event);
    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 {
    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(),
    APP_NAME,
    TEMPLATE_CODE,
    ((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(true);
    AM CODE
    ======
    package subba.oracle.apps.ak.xml.server;
    import java.io.ByteArrayOutputStream;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.test.inputscanner.server.EmpVOImpl;
    import oracle.help.common.xml.*;
    import oracle.jbo.XMLInterface;
    import oracle.xml.parser.v2.XMLDocument;
    import oracle.xml.parser.v2.XMLElement;
    import oracle.xml.parser.v2.XMLNode;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class testXMLAMImpl extends OAApplicationModuleImpl {
    /**This is the default constructor (do not remove)
    public testXMLAMImpl() {
    /**Sample main for debugging Business Components code using the tester.
    public static void main(String[] args) {
    launchTester("XXX.oracle.apps.ak.xml.server", /* package name */
    "testXMLAMLocal" /* Configuration Name */);
    public void initEmpVO()
    EmployeeVOImpl vo = getEmployeeVO1();
    if(vo == null)
    MessageToken errTokens[] = {
    new MessageToken("OBJECT_NAME", "EmployeeVO1")
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else
    vo.executeQuery();
    public void getEmpDataXML()
    try {
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    OAViewObject vo = (OAViewObject)findViewObject("EmployeeVO1");
    ((XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
    System.out.println(outputStream.toString());
    catch(Exception e)
    throw new OAException (e.getMessage());
    /**Container's getter for EmployeeVO1
    public EmployeeVOImpl getEmployeeVO1() {
    return (EmployeeVOImpl)findViewObject("EmployeeVO1");
    }

    Try the OA Framework Forum

  • Unable to open PDF directly if user use Acrobat 8

    Unable to open PDF directly if user use Acrobat 8.
    We are facing some problems in our production site. When user click PDF icon, "FileDownload" windows pops up, but it only has "Save" or "Cancel" button, so user needs to download and save the file to open.
    I tested the following scenario using
    We have facing problem with this visions IE 6.0 – Acrobat 8.0 and IE7.0 – Acrobat 8.0.
    Mozilla 2.0 – acrobat 8.0 working fine. The pdf contents are embedding fine the browser window
    Does anyone have any experience with something of this nature?

    I must have missed the announcement - when did these forums change from Java language to IE/Adobe/Mozilla forums?

  • SSO to SAP EP6 (for Employee Self Service) using WebSEAL

    Hi SDN friends,
    We are about to embark on a SSO implementation using IBM WebSEAL for SAP EP6 ESS (Employee Self Service) connecting through to an SAP R/3 4.7 server.  Since the ESS solution for 4.7 still uses ITS services, this means that we have ITS iViews in the EP6 portal.
    We have managed to look through the whitepaper 'IBM Tivoli Access Manager - Single Sign On for SAP NetWeaver - September 2005' described at https://www.sdn.sap.com/irj/sdn/developerareas/ibm
    We have the following queries, if anybody has a simple answer to these:
    -  Is it absolutely necessary to configure an SNC connection between ITS/EP6 and R/3 server to achieve SSO for the portal?
    -  Given that SAP EP6 references ITS IAC iviews, is it necessary for us to configure both ITS and EP6 for SSO, or can we simply configure EP6 for SSO?  If so, is it also necessary to configure both for SSL?
    -  Otherwise, how easy is it to set up SSO in this scenario without SSL (for demo purposes)?
    Any thoughts would be greatly appreciated.
    Cheers
    John Moy

    Hello John,
    regarding your questions:
    ad 1) no. SNC is only mandatory if you use X.509-based SSO to R/3. You can also use SAP logon ticket-based SSO from EP to R/3 or usermapping that do both not require SNC.
    ad 2) yes, you have to configure both EP and ITS at WebSeal.
    ad 3) you can always omit SSL. However for production use, it is recommended.
    Regards
    Michael

  • How to open pdf files in browser using flex

    hi,
    my project is having a Document explorer wchich contains pdf
    files,iwant to open it in the browser.can any one tell me how to
    open pdf documents using flex programming(i tried with different
    thing like swf's but my client wants only pdf formatt).

    Another option is by calling a JSP page. This example will
    open a pdf file into a new browser without displaying the download
    "save" prompt.
    Function to call the JSP:
    private function downloadFlyer(event:Event):void {
    var jspLink:URLRequest = new
    URLRequest("jsp/downloadpdf.jsp?fileName=Fundraiser_flyer_2008.pdf");
    navigateToURL( jspLink, "_blank" );
    JSP code:
    <%@ page errorPage="error.jsp" %>
    <%@ page import="java.io.*" %>
    <%
    //Get the parameters
    String downloadFileName=request.getParameter("fileName");
    String fileName = application.getRealPath("/downloads/" +
    downloadFileName);
    File file = new File(fileName);
    if (!file.exists()) {
    throw new IOException("File does not exist.");
    // Get the size of the file
    long length = file.length();
    // You cannot create an array using a long type.
    // It needs to be an int type.
    // Before converting to an int type, check
    // to ensure that file is not larger than Integer.MAX_VALUE.
    if (length > Integer.MAX_VALUE) {
    throw new IOException("File too big.");
    response.reset();
    response.resetBuffer();
    response.setContentType( "application/pdf" );
    response.setHeader ("Content-Disposition", "filename=" +
    downloadFileName);
    //Prevent the Java error: "getOutputStream() has already
    been called for this response"
    out.clear();
    out = pageContext.pushBody();
    InputStream in = new FileInputStream(file);
    OutputStream output = response.getOutputStream();
    try {
    int curByte=-1;
    while( (curByte=in.read()) !=-1){
    output.write(curByte);
    } catch (IOException ioe) {
    ioe.printStackTrace(System.out);
    } finally{
    output.flush();
    in.close();
    response.flushBuffer();
    %>

  • Unable to open PDF file in browser using Reader 9 with IE8

    I just updated to IE8 and when trying to open a PDF file on the browser, I received a message stating to use Adobe Reader 8 or 9.  I downloaded AR9 and still receive the same message and cannot open PDF files in browser window.  It defaults to my Adobe Acrobat 6.0 which will not open the file.  I have Windows XP.  I do not have a problem opening a PDF file in Yahoo mail with AR9.  I have tried many different ideas on the web to no avail.  Appreciate any help to be able to default to open PDF files in the browser using AR9 which is apparently required by IE8.

    Fixed problem by taking to a computer store to find that my hard drive storage was maxed out.  I had the hard drive repaced with a larger amount of storage.   Problem resulted from inadequate amount of storage space which prevented me from downloading and installing Adobe Reader 9.
    Thanks to al that responded.  

  • Open PDF file in linux using java

    Hi..
    How can I open a PDF file in linux using java.
    I am able to open PDF in windows and mac using this code
    in Windows
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + path_of_PDF);
    in mac
    Runtime.getRuntime().exec("open " + path_of_PDF);
    But nothing is working with linux.
    Please help
    Thanks

    appi wrote:
    Hi.. I found the JDIC binary files. There are different binaries for all the plateform. Is there any solution which is independent of plateform.Yes, and we already told you: Use JDK6, which has those libraries built into the standard class library.
    How can I use these binaries in my existing project. does it work, If I place them at same place where other .class files are kept.Read the documentation of the JDIC project. I'm sure they answer this question in their FAQ.

  • Firefox won't open PDF's (unless I use Private Browsing)

    For some reason, since this morning, Firefox will no longer open PDFs in tabs on my Mac. I'll click on the link (or right-click 'open in new tab'), the page will open, display the pdf interface at the top, but won't load. Occasionally the grey loading bar will move across slightly and stop, although usually nothing will happen at all. If I click on the Document Properties section at the end, it gives me no PDF or file information whatsoever. The most confusing thing is that if I click on the PDF link and select 'open in new private window,' it will open the PDF as per usual - although I don't want lots of new windows open and would rather be able to stick to using tabs. I work through a lot of PDF's at once and having them all together is fairly important.
    I've double checked updating Adobe, I've double checked updating Firefox. I've checked on the preferences menu to ensure that PDFs are set to 'Preview in Firefox.' All of these are fine. I've also cleared my cache and restarted everything a few times (just incase). I've also used Chrome and IE just to make sure it's not a file problem, and as expected, these load the PDFs fine. Does anyone have any idea why this has suddenly started happening?

    I am not sure why this started happening, however please update to version 32.0.3 when its available.
    The places we can troubleshoot is in the Applications menu under preferences.
    *[[Set how Firefox handles different types of files]]
    If you set it to pdf.js viewer as default does it not show up?

  • I cannot open pdf files with Firefox using a Mac 10.5.8 OSX

    The new version of Firefox does not support opening pdf files using a Mac 1.5.8 OSX with an Intel processor. Anything I can do?

    ios 6 requires itunes 10.6.3 or higher which requires Mac OS 10.6.8 or higher

  • Can't open PDFs from website. Use OS X 6.8 & Firefox 24

    When I click on the link, I get a blank screen. If I switch to Safari I can open PDFs, but not with Firefox. Can you help?

    Can you check your PDF viewer setting? This article describes how to switch it: [[View PDF files in Firefox without downloading them]] (skip to the section "Using a PDF reader plugin"). If your current setting doesn't work, does another one of the options work?

  • EIT Multiple Rows in Self Service using Personalization

    The EIT is set up in core HRMS as multiple rows descriptive flexfield having segments each with value set and default values.
    Multiple rows meaning, user can enter multiple records as extra information as compared to DFF which only allow one record..
    The requirement is to attach this EIT in iRecruitment (self service, HTML) using personalization.
    My Question ?
    1. Can I add this EIT as flex item ?
    2. do I have to create EO, VO and AM for this EIT table or this is provided by oracle when EIT is created ?
    3. is the EIT displayed as table in page with add, update delete button.
    4. is there any document which describes steps to add EIT with multiple rows to self service apps.
    Help Appreciated
    Thanks

    I am still facing issue in displaying the restricted record in self service.
    Setup tried:
    1. My original value set has the total set of values (no validation).
    2. My new value set is a wrapper over the original and uses a Table validation with a WHERE condition like:
    WHERE flex_value_set_id = <original value set id>
    AND
    (FND_PROFILE.VALUE('RESP_ID') = <MSS resp id> and flex_value
    <> "<restricted values>")
    or
    (FND_PROFILE.VALUE('RESP_ID')= <PUI> and 1=1)
    Result:
    SS lov shows only filtered values, I cannot select it in new record.
    But I get error when the already created record gets displayed as it seems to validate against new value set.
    error:
    ID <restricted value> for the flexfield segment SEGMENT1 does not exist in the value set NEW VALUE SET.
    Is there any possibility to add a table filter in MSS to restrict the record that is displayed in the EIT table in SS. I tried a lot but the filter do not bring the table columns for adding the filter clause.
    Or is there a way that I can attach different value set for PUI through Forms Personalization?
    Thanks for your suggestions.

  • Opening .pdf files from forms using OLE

    Hi,
    I want to open, print , save and save as pdf files from forms using OLE . Please help me with the same.
    Thanks
    Vidya

    If you are in client/server mode, you can put an OLE container component on your form. However, be warned that this method does not work when you convert to the forms server web enabled mode. If you anticipate moving your application to the web anytime soon, my advice would be to web-enable first and then add in the feature to view .pdf (or other) files. In our client/server app, I went to a lot of trouble to add in OLE features such as you describe, and now I have to completely re-write those features for the web.

  • Could not open PDF Files with Safari using Lion - Solution

    Two for one solution:
    After installing Lion on my Macbook Pro, I could not open PDF files on line via Safari and iPhoto 11 kept crashing.
    Well, the solution for bothy problems was to remove the "3ivx" file. 
    The easiest way to do so is go to Applications > 3ivx folder > run Remove 3ivx app.
    OR:
    Finder > Library folder > Application Support folder > drag "3ivx" folder to trash and trash.

    Does Safari - Help - Installed Plug-ins show anything for pdf other than WebKit built-in PDF ?

  • Opening PDF file in Acrobat using SWF???

    I spent the whole day figuring out the floating SWF menu on
    top of Adobe Acrobat. Unfortunately, on some computers (I can't
    figure out why) when I click on one of the items in the SWF menu
    (in this case a .PDF file), the PDF file opens in its native
    application (err: Adobe Acrobat). However in some computers which
    has almost identical programs installed (Winxp, acrobat 7, etc),
    Acrobat opens up in Internet Explorer.
    Is there a way such as an action script to where the link
    will ALWAYS open PDF in Acrobat and not in Internet Explorer?
    Thank you very much in advance.

    Post your question in the forum for Adobe Reader.

  • Cannot open PDFs on my Mac using Safari

    I downloaded Adobe Reader for my Mac and still cannot read PDF docs on Safari.  I continue to receive this message that I need to sign the licensing agreement and relaunch my browser.  I read that by installing Adobe Reader you are automatically signing the agreement.  I've also relaunched my browser and I still cannot open PDFs.  Any help or suggestions would be appreciated?

    No, installing does not accept the licensing agreement.
    You need to launch Adobe Reader. Not launch the browser.
    Adobe Reader is launched from Applications like other Mac apps.

Maybe you are looking for

  • CS5 is not seeing existing, custom icc profiles. howto?

    Briefly: Mac Pro running Snow Leopard. Upgraded from CS4 to CS5 and my existing, custom icc profiles appear but are unavailable (grayed out) The profiles are in the usual places: /Library/ColorSync/Profiles AND /Library/Application Support/Adobe/Colo

  • Lightroom not opening... suddenly

    When I go to open my Lightroom that I have opened hundreds of times before I get this error code. This application is unable to start. 0xc000007b Any help on this would be appreciated.

  • Fatal error in jre

    hi guys i am having a problem which i would appreciate it so much if you could help me with. the problem is this.. every time i start my computer i get a message saying " fatal error JRE could not be loaded" i have tried uninstalling and reinstalling

  • Adobe Flash Pop-ups. They're so small, I can hardly read them. Virus or not?

    I'm just trying to view the tutorials, but these pop-ups are continuous and annoying. They seem to want permission to load something on my computer. Is anyone familiar with this and how should I handle it?

  • Time Refresh Groups take to finish

    Hi all, I've been searching this thing for a lot of time, but came out with nothing. I have 104 Refresh Groups going during the night. Since I am adding to all the RGs various tables to replicate, I need to know how much time does the refresh group t