Inline XML Publisher PDF rendered using IFRAME in Self Service

Hi,
We have created an XML Publisher Report (PDF) which renders inline in a SelfService Page.
When we click on the Save Icon in the IFRAME, The File Name is really long including the Applications URL, DBC File, File Name etc.
Ex: http___it21.marvell.com_8005_OA_HTML_xdo_doc_display.jsp_dbcName=it21_devt&fileName=MVL_HR_EMP_APPRAISAL_DETAIL-1163094244_out.pdf.pdf&mFileLength=50068&p_output=_devt_prod_prodcomn_html_fwk_t_MVL_HR_EMP_APPRAISAL_DETAIL-1163094244_out.pdf
The requirement is to change the File Name to PerformanceAppraisal.pdf
Below is the code used to render the inline PDF.
- The XMLString has the complete XML generated.
public void renderInlinePDF(OAPageContext pageContext, OAWebBean webBean, OAApplicationModule am, String XMLString, String templateName)
System.out.println("---MVLReviewPerformanceXMLUtil.renderInlinePDF----------------- XMLString "+ XMLString);
System.out.println("---MVLReviewPerformanceXMLUtil.renderInlinePDF----------------- templateName "+ templateName);
BlobDomain xmlData = new BlobDomain(XMLString.getBytes() );
pageContext.writeDiagnostics(pageContext, "------------- xmlData : "+xmlData.toString(), 4);
pageContext.writeDiagnostics(pageContext, "------------------------------------------------------------------- ", 4);
String redirectURL = null;
try
pageContext.writeDiagnostics(pageContext, "------------- redirectURL 1 : "+redirectURL, 4);
redirectURL = DocumentHelper.getOutputURL(
pageContext
,"XXGT"
,templateName
,xmlData.getBinaryStream()
,"PDF"
,null
,"en"
,"US"
pageContext.writeDiagnostics(pageContext, "------------- redirectURL 2 : "+redirectURL, 4);
System.out.println("---MVLReviewPerformanceXMLUtil---------------------------- redirectURL = "+ redirectURL);
catch(Exception e )
throw new OAException("Error in redirect");
OAHTMLWebBean frame=(OAHTMLWebBean)webBean.findChildRecursive("IFRAME");
pageContext.writeDiagnostics(pageContext, "------------- IFRAME is NULL"+frame, 4);
if (frame == null)
pageContext.writeDiagnostics(pageContext, "------------- IFRAME is NULL", 4);
OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean(pageContext,HTML_WEB_BEAN, null, "IFRAME");
outRegion.setHTMLAttributeValue("src",redirectURL);
outRegion.setHTMLAttributeValue("width", "100%");
outRegion.setHTMLAttributeValue("height", "100%");
outRegion.setHTMLAttributeValue("title","PerformanceReview");
outRegion.setHTMLAttributeValue("name","PerformanceReview");
OAWebBean iFramePlaceHolder = (OAWebBean) webBean.findChildRecursive("IFrameRegionPlaceHolder");
iFramePlaceHolder.addIndexedChild(outRegion);
// pageContext.getPageLayoutBean().addIndexedChild(outRegion);
pageContext.writeDiagnostics(pageContext, "------------- IFRAME AddIndexedChild", 4);
XML Publisher version 5.6.3
Any help in this regard will be highly appreciated.
Thanks,
Sujay

Thanks Balusc!!
I have made use of your code to display PDF files in an IFRAME tag too!!! I just dint believe that this would be possible. Please just take a look at my JSP page.
<h:form id="CaseLookUp">
     <%
     String path = request.getContextPath()+"";
     out.print(path);
     %>
<iframe scrolling="auto" src="<%=path%>/imageServlet?file=D:\70-229 V5.pdf" width="80%" height="600" ></iframe>
     </h:form>

Similar Messages

  • XML Publisher report to view as a self service page in EBS R12

    Hi All,
    I would like to show my XML publisher report as a self service page. What are the different methods in which i can show these reports. I would like to just click the function of the responsibility and see the report as a page.
    Your suggestions would be appreciable. Thanks in advance.
    Regards,
    Boris

    Hi All,
    I would like to show my XML publisher report as a self service page. What are the different methods in which i can show these reports. I would like to just click the function of the responsibility and see the report as a page.
    Your suggestions would be appreciable. Thanks in advance.
    Regards,
    Boris

  • CREATE XML PUBLISHER REPORT WITHOUT USING RDF

    Hi Every one ,
    Can anybody share his/her expertise on following issue ?
    "How to create XML Publisher Report without using RDF?"
    Your help is appreciated.

    Hi Swapnesh
    YOu do not need to create the XDODTEXE, its seeded for you. You need to do the following:
    1. Create and test the data template
    2. Load the data template to the template manager against a data definition
    3. Create a concurrent program definition that uses the XDODTEXE as its executable
    4. Create parameters (if required) for the CP and DT that match in name
    You're done
    Regards
    Tim

  • Displaying BLOB of type word doc in XML Publisher pdf output

    Hi all,
    Please guide me relating the Displaying BLOB of type word doc in XML Publisher pdf output with links or pointers.In the following xml column TRADE_LICENSE_COPY is BLOB when queried from toad and if clicked on the ouput word doc is being opened directly.How to show the column value word doc as attachment in pdf output?
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Generated by Oracle Reports version 10.1.2.3.0 -->
    <XXTDIC_SUP_REG>
    <LIST_G_BASIC_QUSNRY>
    <G_BASIC_QUSNRY>
    <RESPONSE_ID>194</RESPONSE_ID>
    <UAE_REGISTRATION>Yes</UAE_REGISTRATION>
    <TRADE_LICENSE_COPY>PK</TRADE_LICENSE_COPY>
    <WEBSITE_DETAILS>com</WEBSITE_DETAILS>
    <AMERICA_2009_2010>Between 81 and 90 %</AMERICA_2009_2010>
    </G_BASIC_QUSNRY>
    </LIST_G_BASIC_QUSNRY>
    <LIST_G_CONTACTS>
    <G_CONTACTS>
    <CONTACT_PERSON>MR.NTF1 NTL1</CONTACT_PERSON>
    <PHONE_NUMBER>0</PHONE_NUMBER>
    <EMAIL_ID>na</EMAIL_ID>
    <FAX_NUMBER>0</FAX_NUMBER>
    </G_CONTACTS>
    <G_CONTACTS>
    <CONTACT_PERSON>MR.NTF1 NTL1</CONTACT_PERSON>
    <PHONE_NUMBER>0</PHONE_NUMBER>
    <EMAIL_ID>na</EMAIL_ID>
    <FAX_NUMBER>-</FAX_NUMBER>
    </G_CONTACTS>
    </LIST_G_CONTACTS>
    <LIST_G_SC_QUSNRY>
    <G_SC_QUSNRY>
    <RESPONSE_ID1>113</RESPONSE_ID1>
    <FY3_PROJTYPE_COMMERCIAL>Between 21 and 30 %</FY3_PROJTYPE_COMMERCIAL>
    <ENG_INSTALL_CAPABILITY></ENG_INSTALL_CAPABILITY>
    <SCM_EXPERIENCE_PARTNERING>Have you had experience of &quot;Partnering&quot;?(i.e with major contracts / employers If so list them.Also please provide details</SCM_EXPERIENCE_PARTNERING>
    </G_SC_QUSNRY>
    </LIST_G_SC_QUSNRY>
    <LIST_G_ADDRESS>
    <G_ADDRESS>
    <OFFICE_ADDRESS>Addres1</OFFICE_ADDRESS>
    <ADDRESS_LINE1>Addre line1</ADDRESS_LINE1>
    <ADDRESS_LINE2>Addre line2</ADDRESS_LINE2>
    <ADDRESS_LINE3>Addre line3</ADDRESS_LINE3>
    <CITY>City1</CITY>
    <STATE>State1</STATE>
    <COUNTRY>US</COUNTRY>
    </G_ADDRESS>
    <G_ADDRESS>
    <OFFICE_ADDRESS>Addres2</OFFICE_ADDRESS>
    <ADDRESS_LINE1>Addre line1</ADDRESS_LINE1>
    <ADDRESS_LINE2>Addre line2</ADDRESS_LINE2>
    <ADDRESS_LINE3>Addre line3</ADDRESS_LINE3>
    <CITY>City2</CITY>
    <STATE>State2</STATE>
    <COUNTRY>IN</COUNTRY>
    </G_ADDRESS>
    </LIST_G_ADDRESS>
    <LIST_G_DSN_QUSNRY>
    </LIST_G_DSN_QUSNRY>
    <LIST_G_PROD_SUB_CODE>
    <G_PROD_SUB_CODE>
    <PROD_SUB_CODE>060.42</PROD_SUB_CODE>
    <PROD_SUB_DESC>Automotive Maintenance Items and Repair/Replacement Parts.Filters: Air, Fuel, Oil, Power Steering, Transmission and Water, and PCV Valves</PROD_SUB_DESC>
    </G_PROD_SUB_CODE>
    <G_PROD_SUB_CODE>
    <PROD_SUB_CODE>060.60</PROD_SUB_CODE>
    <PROD_SUB_DESC>Automotive Maintenance Items and Repair/Replacement Parts.Hose and Hose Fittings: Brake, Heater, Radiator, Vacuum, Washer, Wiper, etc.</PROD_SUB_DESC>
    </G_PROD_SUB_CODE>
    <G_PROD_SUB_CODE>
    <PROD_SUB_CODE>207.37</PROD_SUB_CODE>
    <PROD_SUB_DESC>Computer Accessories and Supplies.CRT Holders, Cases, Glare Screens, Locks, etc.</PROD_SUB_DESC>
    </G_PROD_SUB_CODE>
    <G_PROD_SUB_CODE>
    <PROD_SUB_CODE>207.60</PROD_SUB_CODE>
    <PROD_SUB_DESC>Computer Accessories and Supplies.Keyboard Dust Covers, Key Top Covers, Keyboard Drawers, Wrist Supports, etc.</PROD_SUB_DESC>
    </G_PROD_SUB_CODE>
    </LIST_G_PROD_SUB_CODE>
    <LIST_G_CONT_QUSNRY>
    </LIST_G_CONT_QUSNRY>
    <LIST_G_BUSS_CLASS>
    <G_BUSS_CLASS>
    <BUSS_CLASS>SUPPLY_CHAIN</BUSS_CLASS>
    </G_BUSS_CLASS>
    </LIST_G_BUSS_CLASS>
    <CF_SUPPLIER_NAME>N1</CF_SUPPLIER_NAME>
    <CF_REG_STATUS>Draft</CF_REG_STATUS>
    <CF_BUS_CLASS></CF_BUS_CLASS>
    <CF_PROD_SUBCODE>060.36</CF_PROD_SUBCODE>
    <CF_PROD_SUBCODE_MEAN>Automotive Maintenance Items and Repair/Replacement Parts.Electrical Accessories: Alternators, Ammeters, Coils, Distributors, Generators, Regulators, Starters, etc.</CF_PROD_SUBCODE_MEAN>
    <CF_COUNTRY>India</CF_COUNTRY>
    </XXTDIC_SUP_REG>
    Thanks in advance.
    Best Regards,
    Mahi

    Mahi,
    you can't do that yet.

  • Print stored pdf files to a XML Publisher PDF report

    I want to print PDF attachments to a XML Publisher PDF report. How can I do it?
    For eg. We have an iRecruitment vacancy IRC1309 for which the applicants upload pdf resumes. We want to print applicant resumes to a single PDF file for review.
    Any suggestions?
    Thanks in advance,
    Aakash

    Hi Guru,
    I have requirement to show attachment file in AR invoices which is .pdf files in BI Reports or Oracle Report.. Can ony one guide me please.
    Iam able to read blod data from fnd_lob table and also able to see junk data in xml output. Once rft template is generated then it is coming as blank. It does stream lob data. Can you please provide xsl fo statement to read.
    Thanks
    Simon
    Edited by: user13084103 on Nov 7, 2011 4:49 AM
    Edited by: user13084103 on Nov 7, 2011 4:50 AM

  • How to use 2 vo's in xml publisher pdf genarate report from oaf--urgent

    Hi Guru's,
    i am integrating xml publisher report from oaf. I found one good artical published by prabaker in apps2fusion site and i implemented the same. But it is used onley one view object to generate pdf. But in my case i want to use 4 view objects to generate report as pdf. So, kindly suggest me how to resolve this issue.
    below i mentioned the site name whihc i follwed to implement my requirement.
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework.
    pls help me as i am not getting , how to solve this issue.
    Thanks in advance.
    Keerthana

    Hi,
    When we develop simple XML report also we used to get single data source either generated either from RDF or PL/SQL, in OAF XML data is coming from VO and XML Publisher API’s will process that data.
    This approach works fine if you are having one VO, but if you are having two VOs then it is not possible (As per my understanding and comparing this scenario with simple XML publisher report).
    I also faced same problem few months back, on my form I was having two VOs one for header and other for Lines and I have generate Report to show the data for both Headers and Lines. In my case I created a separate VO that was containing both Header and Line details and I was passing header Id to query that. I used query this VO only when someone clicks on “Print” button and it worked fine for me.
    Regards,
    Mahesh B.

  • Showing the XML publisher report in an iframe..

    Hi all..
    Please help me with this question.
    Before: We had a "http page" and we are showing a XML Publisher report which is also in "http" ,in an iframe of the parent page. Previously it was working fine, as both are http.
    *** Basically we are generating a URL of the report and showing it in a iframe of the web application****
    Now: Recently we configured ssl to the parent page (https), and the report sever is still in "http". Because of this difference, whenever we are calling that report,it is showing a security alert and redirecting to totally wrong page.
    Is there any configurations that i can do in the ""report server" to rectify this issue.Please help me with this issue.
    Thank u

    Hi Ravi ,
    can i do it only with the xml Publisher , because when i tried it in the past and get all the staff like Template / DD / CP up and running and started the CR i get an error from the system that he is missing a report directly in the file system... so he searched for the report himself on system like a standard 6i Report. But the template and the dd is stored in the db. So my question again, can I use the XML Puplisher without a Standard Report or can i use a dummy file only for checking and after that he use my template / dd.
    regards
    Kay

  • XML Publisher pdf output need each page wise start and end number

    Hi ,
    I have xml publisher out put in PDF. Now i need on each page header and detail part.
    In header for each page it should repeat and should be print the min and maximam number of the columns.
    I mean in the header start and end number of the column value for that particular page.
    I did many ways but there is no luck.
    Can you please suggest me how to do.
    Thanks
    Sampath

    pls give me reply on this if any body have the answer

  • XML Publisher PDF DOCUMENT MERGER

    Hi,
    The Report POXPRPOP (Print Purchase order Report) has been customized with XML publisher for PDF output. The RTF has been designed and it works well. Now I have to combine the two or more PO attachment with above XML report output and produces single PDF as output at concurrent request. The PO attachment is BLOB (PDF file, Word doc). For this I found that in the XML Publisher User Guide that we make this as post processing event through PDFDocumentMerger API.
    Could any one validate this and also suggest if any other best approach to do this?
    if you know more about this PDF document MErger could you know me how to stimulate this process?
    Any help in this regard would appreciate.
    Thanks,
    Sai Krishna.

    Hi,
    We have a similar requirement, did u get any solution. It would be great if you could share your solution.
    Thanks,
    Satheesh

  • XML Publisher can not use after installation

    Dear All,
    I need your help on the XML Publisher!
    Today, I instaleed the XML Publisher Desktop in my PC. Normally, the Template Builder menu will be added into word once XMLP is installed. But I faced a strange issue today.
    As we know, there is a sample rtf file will be opened once the installation completed, at this time, if I open any other rtf file, the template builder is there, but once I closed all rdf files and reopen any rtf file, the template builder menu is missing and can not be found any more. I reinstalled many time, but the issue is still there. Can someone help me on this? I really don't want to reinstall Windows to fix the issue.
    Thanks & Best Regards,
    Jerome

    Hi Hussein,
    No issue with other client, Only my PC has this issue. The issue can be reproduced in my PC again and again.
    Jerome

  • Publish Pages Document using Apple's print service?

    I've created a travelogue in pages. 60% text and 40% photos.
    Is there a way to use Apple's print service (a la iPhoto Books) to publish a few copies?
    Note: I posted a similar message in the iPhoto forum. Sorry if that breaks any rules of this discussion board.

    Hi George, welcome to the discussion.
    Have you tried to import the pdf file(s) into iPhoto, and then selected them into a book so they could be printed ?
    Also this sounds kind of expensive.
    Just a thought
    Johnny

  • Faxing adobe pdf forms using actions in CRM service process

    Hi experts,
    Does anybody has experience in sending adobe PDF forms as a fax using actions in CRM service processes? Currently I use this by implementing a PPF BAdI, but what else configuration, software and hardware requirements I need to make faxing work in CRM?
    Is it possible to use 3rd party software to send the fax for example winfax and transfer the fax number to this?
    Regards:
    Gabor

    Dear Dezso,
    As far as I remember, we already know each other
    Our company have been using winfax in the past for sending fax messages. Now that they will use SAP-CRM shall they buy a new fax server? I have looked after Topcall, it might be useful with RFC?
    In CRM service order, I use the EXEC_METHODCALL_PPF BAdI implementation to collect the data from the service order, and then use the standard function modules to "print" or "fax" the PDF document (call function FM_NAME).
    At this function module, which structure do I neet to enter the recipient's fax number (I read somewhere that I have to use DEVICE='TELEFAX' in the output_options - is it true?) ?
    Or should I communicate from the BAdI with Business Communication Services (create recipient and similar methods)?
    Is there any way to send the fax from the local machine where the user uses the SAP GUI?
    Thank you very much in advance for your help and support!
    Gabor

  • How can I know which file is using by the self-service workflow?

    Dear all:
    In my directory, there are two HRSSA.wft and How can I know which source is using by the workflow of the self-service ?
    my environment is oracle 11.5.9 | self-service 4.1 | workflow builder 2.6
    Thanks
    regards
    Terry

    One way would be to download the HRSSA workflow to a wft file (using the WFLOAD utility - see MOS Doc 578248.1), then comparing this downloaded wft file with the two files you have (using a utility such as diff in Unix). The comparison that reports no differences will identify the wft that was uploaded into the database.
    HTH
    Srini

  • Special Characters in XML Publisher PDF Output

    Hi,
    I'm printing "Long Text" in report output in every line based on tab.
    Report output is having special characters like \n.
    I was using below to print in next line, any suggestions for removing \n.
    Below is what was happening:
    ===================
    RDF:
    =====
    lv_notes := replace(:CF_LONG_TEXT_DESC, chr(9), ' ') ;
    lv_notes1 := replace(lv_notes, chr(10), ' ') ;
    lv_notes2 := replace(lv_notes1, chr(13), ' ') ;
    XML
    ===
    <CF_LONG_TEXT_desc>
    Initial Billing Amount: $549,180.00 \n \n Computation: \n a) Estimated Number of Full-Time Students: 12,000 \n
    b) Estimated Number of Calendar Days: 113 \n
    c) Calendar Date (From - To): 1/18/2011 - 5/10/2011 \n
    d) Multiply by: $0.81 \n
    e) Estimated Total Costs: $1,098,360.00 \n
    f) Initial Billing Amount represents 50% of Estimated Total Costs. \n
    \n \n
    If you have questions about your invoice please contact Darud Akbar at (312) 681-2724.
    </CF_LONG_TEXT_desc>
    PDF Output
    ==========
    Initial Billing Amount: $549,180.00 \n \n Computation: \n a) Estimated Number of Full-Time Students: 12,000 \n
    b) Estimated Number of Calendar Days: 113 \n
    c) Calendar Date (From - To): 1/18/2011 - 5/10/2011 \n
    d) Multiply by: $0.81 \n
    e) Estimated Total Costs: $1,098,360.00 \n
    f) Initial Billing Amount represents 50% of Estimated Total Costs. \n
    \n \n
    If you have questions about your invoice please contact Darud Akbar at (312) 681-2724.
    Thanks.

    >
    Initial Value
    =======
    <?CF_LONG_TEXT_desc?>
    Changed to (Below gives me error)
    ========
    <?<xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/>?>
    Changed to (Below doesn't fetch data)
    ========
    <xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/>
    >
    must be in field as
    <xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/>

  • Xml publisher pdf layout in ebs is incorrect

    Hi,
    I am doing a pdf report for a pre-printed layout.
    My layout has to be exact for all pages.
    i have a grouping on top of my layout..
    when runing it in ebs the first page on top has less space , and the other pages has more space on top of the page.
    but the 2nd, 3rd, etc... has the exact layout
    can it be the G (grouping) on top of my page that is causing this problem?
    and how would i solve this??

    Can someone on Apps 11.5.10.2 who has applied the patch (I believe it upgrades the server version to 5.6.3) check and see if the behavior I described is the same on their system?
    Or can someone tell me if this is expected?
    Thanks again.

Maybe you are looking for