Xml pdf and document viewer

Hello everyone,
I'm trying to open the pdf in the selfserivice page. when i'm using the below code to specify the PARAMETERS and XMLNode, it works for me without any issue but when i try to change the p_DataSource and p_TemplateCode names as i need to open different templates based on the condition, it doesn't work for me. it always open s the template with the previous names. Even though i change the names using pageContext.putParameter("p_DataSourceCode", "NewEmpDataDefinition"), and pageContext.putParameter("p_TemplateCode", "NewEmp_Template"), i don't see those new template information but it the page still shows the previous template information.
Please advice me on this.
// Set the page context parameter required for datasource BlobDomain.
pageContext.putParameter("p_DataSource", "BlobDomain");
pageContext.putParameter("p_DataSourceCode", "EmpDataDefinition");
pageContext.putParameter("p_DataSourceAppsShortName", "XXXX");
pageContext.putParameter("p_XDORegionHeight", "700");
pageContext.putParameter("p_TemplateCode", "Emp_Template");
pageContext.putParameter("p_TemplateAppsShortName", "XXXX");
pageContext.putParameter("p_Locale", locale);
ProcessFormRequest :
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
// Handle the Run button event.
if(pageContext.getParameter("Go") != null)
String deptNo = pageContext.getParameter("DeptNo");
Serializable params[] = {
deptNo
// Generate the Data XML. The data xml should contain the employees of the specified dept
// number
XMLNode xmlNode = (XMLNode) am.invokeMethod("getDeptEmpDataXML",params);
try{
// Create a blob object and add the data xml to it.
BlobDomain blob = new BlobDomain();
OutputStream os = blob.getBinaryOutputStream();
xmlNode.print(os);
os.close();
pageContext.putSessionValueDirect("XML_DATA_BLOB", blob);
catch(Exception e)
throw new OAException(e.getMessage(), (byte)0);
Thank You

Using Integration of XML publisher with OAF we can achive this requirement.
For sample code refer:
http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
Code is given for generation of pdf report.
To get Excel report (or other formats ), we need to change code at three places:
1.String contentDisposition = "attachment;filename=EmpReport.xls";
2.response.setContentType("application/vnd.ms-excel");
3. TemplateHelper.OUTPUT_TYPE_EXCEL,
-Anand

Similar Messages

  • Pdf and djvu viewer with bookmark support.

    Hello everyone.
    Can someone advise me pdf and djvu viewer with a bookmarks support?
    I was using evince before but some time ago a bookmark support
    ceased to work for me.
    I mean a bookmark support with ability to open saved documents
    after restarting of viewer.

    Thanks for answer. As far as I discovered apvlv remembers the last position in pdf and djvu files but opens it only in pdf files correctly. At least it happens with my djvu files.

  • XML attachment in Document Viewer

    Hi,
    I am having problems with XML attachments with Document Viewer. I already posted a thread in the general application server forum, but thought that there might be interested people in this forum also.
    Document Viewer and XML Stylesheet
    Sorry for the possible inconvenience of the double post.
    Regards,
    Karri

    Hi Karri,
    Believe what you are looking  at is a direct translation of Open XML Documents (.DOCX) to HTML, enabling access to the information in the Open XML format from any platform with a Web browser i.e, Document viewer in this case.A plug-in for Firefox, IE7 and IE8 is available  that allows users to view Open XML documents (.DOCX) within the browser on Windows and Linux platforms.
    Trust the below link will aid you resolve this:
    http://blogs.msdn.com/interoperability/archive/2009/05/17/openxml-document-viewer-v1-released-viewing-docx-files-as-html.aspx
    Regards,
    Pradeepkumar Haragoldavar

  • Pdf and docu related to alv grid

    Hi all,
    Can any body please tell me how to get PDF and documents *of theory of alv grid display.* I have sample program of alv but not decent theory which can explain funcanality of function module and the parameters used in those fn module.please help me

    hi,
    already there is lot of material in SDn regarding everything,
    the thing is u need to search in SDN.
    regarding the ALV reports there is one intresting website just check in..
    www.alvrobot.com.ar

  • How send e-mail with XML + PDF and body text

    Hi everyone,
    I have a new requirement but I´m with doubts, how to send an e-mail with two attachements (XML and PDF) and body text using -
    MIME: multipart/mixed;boundary
    I already have code to send XML + body text as you can see below:
    Element contentType = docout.createElement("Content_Type");
      root.appendChild(contentType);
      Text contentTypeText = docout.createTextNode("multipart/mixed;boundary=--AaZz");
      absTraceLog.addDebugMessage("Content_Type e-mail --- "+contentTypeText.toString());
      contentType.appendChild(contentTypeText)
    String text = "----AaZz\r\nContent-Type: text/plain; charset=UTF-8\r\n" +
            "Content-Disposition: inline\r\n\r\n" + nfeText +
            "\r\n----AaZz\r\nContent-Disposition: attachment; filename="+ prefixo +" "+ chaveNFe +".xml" +"\r\n\r\n" + xmlString + "\r\n";
    Element content = docout.createElement("Content");
    root.appendChild(content);
    contentText = docout.createTextNode(text);
    Content.appendChild(contentText);
    The code above work good, but I can´t duplicate any field from XiMail 3.0 - because it´s 0:1.
    So how to do that ?
    Thanks.
    Regards,
    BR.
    Viana.

    Eng,
    That´s works good with mailPackage:
                content= "--" + "--Zz" + CRLF
                        + "Content-Type: text/html; charset=UTF-8" + CRLF
                        + "Content-Disposition: inline" + CRLF + CRLF
                        + textBodyMail + CRLF
                        + "--" + "--Zz" + CRLF
                        + "Content-Type: application/xml; name=" + attachmentName + CRLF
                        + "Content-Disposition: attachment; filename=" + attachmentName + CRLF
                        + "Content-Transfer-Encoding: base64" + CRLF + CRLF
                        + encoder.encode(inputString.getBytes("UTF-8")) + CRLF
                        + "--" + "--Zz" + CRLF
                        + "Content-Type: application/pdf; name=" + pdfName + CRLF
                        + "Content-Disposition: attachment; filename=" + pdfName + CRLF
                        + "Content-Transfer-Encoding: base64" + CRLF + CRLF
                        + encoder.encodeBuffer(new BASE64Decoder().decodeBuffer(pdfAttachment));
    Regards,
    BR.
    Ricardo Viana.

  • Serious bugs in pdf and doc view

    Hello
    I have looked on the forum for other postings on this and have not found them if they exist. I have had a Pre Plus for about six weeks (Verizon) and overall love it and am glad I got it. Hoping some things like GPS get improved (which I know is most likely Verizon not Palm) but this bug is the first thing that has the potential to seriously hamper my experience with the phone:
    This week I took a work trip and before leaving added several (5-12) docs and pdfs to my Pre so I could access them on the fly during the trip when it was not possible or practical to use my laptop. This included some pdfs of directions and maps since the GPS is not up to snuff on the Verizon phone. Others were longer documents I needed to refer to when out in the field (ag related work visiting farms).
    Here's the problem, which applies equally to both doc and pdf view:
    -menu freezing: more than half the time the menu would freeze. In other words, not let me scroll. I could open documents on the screen but not scroll to see others further down.
    -doc and pdf file freezing: the file would often work fine for a few minutes, i.e. I could zoom, move across the page with the touch screen, change pages, etc. with no problem. But then after a few minutes they would often freeze, allowing me to see only what was currently on the screen. Shutting down the app and reopening only worked sometimes. I often had to do that many (5-7) times to get it to work again. Maybe rebooting would have worked but the Pre takes way way too long to boot up for that to be at all practical in the context I was using it in.
    Do these apps break down when too many docs or pdfs are loaded? I wouldn't consider a dozen too many so I am hoping the answer to that is no.
    I really hope Palm figures this out and can fix it. (I hope they allow for more zooming while they're at it.) In the meantime, are there alternative apps to use for docs and pdfs? I would pay a reasonable price for it if it exists. I have only found ebook readers so far.
    I also posted this on the precentral forum here
    http://forums.precentral.net/showthread.php?p=2467182#post2467182
    and you'll see that although most people report that they do not have this problem, a couple of other people apparently do.  For me it is a big problemwhich if not fixed will affect decisions on future phones...
    Thanks to anyone who can help.

    Did you re-try cloning with CCC after you had first re-trashed the items *directly from the 502 folder window* you obtained via Go to Folder?
    If you can see the items in the *Go To Folder> /.Trashes/502* window, then you apparently have *two different* .Trashes>502 folders. The items that keep re-appearing in your Trash icon window (the ones you did the GetInfo on) are in the HD>.Trashes>502 folder of your external drive. The Go to Folder command that I gave you is looking at the HD>.Trashes>502 folder on your startup drive. The Trash icon on the Dock may not look at that folder - trashed items on the startup drive normally go into Home>.Trash, a completely different place.

  • Issue with XML PDF and AdobeDesigner!

    Hello!<br />I have a PDF Document!<br />With Acrobat Proffesional Reader i can File -> Export Form Data (Hope this is right in english)<br /><br />A new XML File will be generated<br /><br />The conten of the File<br /><br /><?xml version="1.0" encoding="UTF-8" ?> <br />- <ichicsr lang=""><br />- <ichicsrmessageheader =""><br /><messagetype ="" /> <br /><mailrcpt ="">[email protected]</mailrcpt> <br /><mailbody ="">Test</mailbody> <br /><br />To this Point all works fine...<br /><br />but when i Load up the PDF File in AdobeDesigner, and save it up. (I do no changes at this Point, only Save the file.) and close<br /><br />And then i export second time the xml data with Acrobat Proffesional Reader <br /><br />the conten looks like this:<br /><br /><?xml version="1.0" encoding="UTF-8" ?> <br />- <ichicsr lang=""><br />- <ichicsrmessageheader lang=""><br /><messagetype lang="" /> <br /><mailrcpt lang="">[email protected]</mailrcpt> <br /><mailbody lang="">Test</mailbody> <br /><br />everywhere is written lang?!?!?!?!<br />WHY??? How can I eliminate this effect?!<br /><br />HELP and sorry for my bad english!

    Your XML processor should just ignore the tags it doesn't understand -
    no problem.
    It sounds as if you are trying to create a very simplified XML parser
    that looks for text patterns. I advise against this. There are many
    tools designed to parse XML and which will take care of the special
    issues. A simple text approach will collapse the first time someone
    types an ampersand "&" in their text...
    Aandi Inston

  • Exporting file to pdf and screen view file dark, print file ok

    I am using Mac Pages as a document editor and basic design tool. Exported pdf files look great on screen on first view, and when opened in Mac preview or even when viewed on the PC as a preview of the file. As soon as the file is opened with Adobe Reader on both pc and mac, I have an issue with the text blocks being changed to dark and unreadable. The file prints fine, but screen view is not readable. I am using the files as a linked file to be viewed on screen and need the .pdf file to be readable on screen with Adobe Reader as designed, without color and text changes.

    I am looking at the original file and I see that one of the blocks is a white background text block with black text and the other is a dark background with white text. There is a 3rd text block that is a purple color with white text and the 3rd is fine, the other white and dark background and text turn dark and unreadable. Preview still shows the file OK, but not with Reader.

  • BOBJ 6.5 - Infoview - Decimals Changing between PDF and HTML view

    HI,
    We have an issue with report generated in Webi 6.5.with figures shown to 2 decimal places. When viewed in HTML the figures are displayed correctly e,g, 7.8. When viewed in PDF format, the decimal point moves on random figures e.g. 8.7
    This is such an issue the customer wants to turn-off the ability to save to PDF!
    Thanks in advance
    Roy

    Hi Ted!
    Thanks for the reply and suggestions.  I don't know if there is a different version of the viewers folder that I should be using but I am using the ones from this folder:
    C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12
    That said, I didn't see anything amiss in Fiddler and when I looked in Firebug at the script portion where it was constructing the FlexParameterUI panel, I could see where it was capturing the report parameter names and prompts.  I decided to rip out all the parameters out of my report and voila, it loaded up fine in the viewer.
    I then added a new string parameter giving it a simple short name (Test1) and, initially, I did not use this parameter in the report.  It loaded up in the viewer just fine too.
    I then added the parameter to the report header and I was back to the same problem - it would not load in the viewer and the error was the same as the subject line shows.
    For the record, I am using Crystal Reports 2008 v12.2.0.290
    So is there some other crystalreportviewers12 that I should be using?
    Kind regards,
    Evan

  • Adding XML Declaration and Document Type Declaration.

    I'm using Oracle's XML Class Generator C++ version 1.0.2.0.0. I can create classes from a defined external DTD and create my XML document. But the document does not contain the XML Declaration <?xml version='1.0?> nor does it contain the Document Type Declaration <!DOCTYPE root-element-name SYSTEM "system-identifier">. What do I need to do to get these as part of my XML document? Does the class generator have methods to do this? Could someone show me an example?

    If you invoke the print method on the top-level ELEMENT, you get
    just the body of the document with no DTD or XMLDecl. if you invoke
    print on the top level NODE (the DOCUMENT node), then the output
    document will contain the XMLDecl and DTD.
    So please try to print from DOCUMENT node.

  • How can I view a pdf file without downloading it? It seems I can't get rid of the download option. Is it possible to do this without downloading the pdf and then viewing it?

    I would like to open up a pdf file in adobe acrobat or adobe reader directly from an attachment or web page, but don't want to download it to my computer. Can I do that?

    Hi Goin crazy 2,
    If you purchased the song twice in error, contact the iTunes Store and they will review your account for a refund:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed
    I hope this information helps ....
    Have a great day!
    - Judy

  • The document "view.do.pdf" could not be exported as "view.do.pdf".

    Just recently I have been getting the following message when trying to safe a document as a pdf "The document “view.do.pdf” could not be exported as “view.do.pdf”.  I updated all of my software and cannot figure out why I cannot save a document from the web as a pdf.
    Thank you,
    Don

    How exactly are you trying to Export it?
    Can you right click or control+click on it & use Save As... ?

  • Parse file without xml specification or document element

    I have a large (600mb) log file that is in xml format but it does not have an xml specification and has no document element.
    file looks like this:
    <message>...</message>
    <message>...</message>
    <!-- ... many many many more <message> elements -->
    <message>...</message>
    <message>...</message>
    I have written a class that overrides the SAX DefaultHandler but now want to be able to parse the document without having to add the xml spec and document element manually.
    I've thought about writing a subclass of FileReader that adds the xml specification and document element before reading physical file but would also need to add closing document element at end of file.
    Is there a simpler way?

    Hi,
    There is another way around the problem of adding a missing root node. This involves adding an extra DTD file and a xml file, like this one:
    <?xml version='1.0' encoding='UTF-8' standalone="no"?>
    <!DOCTYPE messageSet SYSTEM "logfile.dtd"
    [<!ENTITY data SYSTEM "logfile.xml">]
    >
    <messageSet>
    &data;
    </messageSet>
    This file "includes" the logfie.xml, as an external entity, with your messages as child nodes of element messageSet.
    In your program you refer to this xml file when parsing the messages.

  • XML nodes into multiple views.

    Hello everybody.
    First of all i want to say that i'm a beginner in Flex Mobile.
    I want to make an application that can read an XML file and change views through XML nodes.
    Here is an example of how it should look after reading an XML file.
    Here is the XML example. I want to read all of the nodes but only show a few of them.
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item>
              <title>Item 1</title>
              <image>url</image>
              <description>Lorem ipsum</description>
              <subitems>
                   <subitem_title>Item 1.1</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 1.2</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 1.3</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 1.4</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 1.5</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
         </item>
         <item>
              <title>Item 2</title>
              <image>url</image>
              <description>Lorem ipsum</description>
              <subitems>
                   <subitem_title>Item 2.1</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 2.2</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 2.3</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 2.4</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 2.5</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
         </item>
         <item>
              <title>Item 3</title>
              <image>url</image>
              <description>Lorem ipsum</description>
              <subitems>
                   <subitem_title>Item 3.1</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 3.2</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 3.3</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 3.4</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 3.5</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
         </item>
         <item>
              <title>Item 4</title>
              <image>url</image>
              <description>Lorem ipsum</description>
              <subitems>
                   <subitem_title>Item 4.1</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 4.2</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 4.3</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 4.4</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
              <subitems>
                   <subitem_title>Item 4.5</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
                   <subitem_image>url</subitem_image>
              </subitems>
         </item>
    </items>
    All i could find about reading XML in a list and adding a change handler was only for 2 views, i need for 3 views and show subitems for each item. Showing subitems for each item from an XML file was very tricky and didn't worked for me.
    I could use some little help or advice!

    Follow this tutorial to learn how to get data from XML files remotelly!
         http://www.youtube.com/watch?v=Cksp7IyVNk4
    Use the XML from first post on this topic, but, at every <item></item> add an <id> field like this (make sure every item has an unique id):
    <items>
         <item>
              <id>0</id>
              <title>Item 1</title>
              <image>url</image>
              <description>Lorem ipsum</description>
              <subitems>
                   <subitem_title>Item 1.1</subitem_name>
                   <subitem_description>Lorem ipsum</subitem_description>
    Then, create 3 views (New->MXML Component)!
    List.mxml - SubList.mxml - Details.xml
    After you create them go to List.mxml create a list and import you're XML (follow tutorial before, to know how to do this).
    After you import you're XML file and show it in that list, you have to create a change handler for that list (when an item is selected we whant to change view).
    And, of course, follow Duane's tutorial to know how to do that. You will want to change view to SubList.mxml. In this view you'll have a list of childs for primary node (item node).
    Then,go to SubList.xml and create a list.
    Then, the tricky part here is that you need to drag/drop same getData():XML_data() that u used in first list. A popup window will show. Here u have to let "New service call" checked and at "Data provider" u have to select de subitem node of the XML file. And, of course, u'll have to select you're Label field.
    When u done this, go to code viewer and find the <s:AsyncListView.... code line.
    u'll have to add an .[id]. there like this:
    <s:AsyncListView list="{getDataResult2.lastResult[id].subitem}"/>
    In this way, you're list will show only entries from XML file with ITEM ID = ?!
    Then follow Duane's tutorial again.
    PS: in views u'll have to add some [Bindable] vars and a function for that view to recognize the id.
    Here's a model!
    <fx:Script>
            <![CDATA[
                        import valueObjects.XML_FIELD_type;
                        [Bindable] var id:String;
                        private function init():void
                    var thisID:XML_FIELD_type = data as XML_FIELD_type
                    id = thisID.id;
              ]]>
        </fx:Script>
    After u did this u'll have to add a viewActivate to <s:View> declaration like this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:XML_FILE_OR_FIELD="services.XML_FILE_OR_FIELD.*"
            title="Title"
            viewActivate="init()"
            cachePolicy="on"
            destructionPolicy="never">
    XML_FILE_OR_FIELD is generated automatically.
    All of these things u'll find on Duane's tutorial except the 3 view part and parsing that data. Follow it and u will solve you're problem!
    Hope it helped!
    Cheers,
    Daniel

  • Is there any way to view full pdf and office documents opened in safari? they just open partically if they are bigs

    is there any way to view full pdf and office documents opened in safari? they just open partically if they are bigs

    Drag them to your iTunes library.  Download the free iBooks app.  Select the PDFs you want too sync in the iTunes books pane.  The iBooks app will show your books collection or your PDFs collection as you select.

Maybe you are looking for

  • All of my images are not showing to upload from Canon 5D to my MacBook Pro

    This is driving me absolutely insane.... I uploaded 250 photos from my Canon 5D but I was having issues with them so I deleted them from my Mac and from Lightroom as well.  I went to upload them back onto my Mac and it's showing a different amount of

  • My Treo 800W Story

    I put quite a few posts in thread PALM TREO 800 W - Connection with PC that relates to this thread. I've been struggling with my Treo 800W for about 25 days now.  I like the feature set, and would be very happy, if it worked correctly.  I have a pret

  • Connecting as sysdba in OEM

    I can connect as sysdba fine through sqlplus. I can not connect as sysdba using OEM, the famous 'ORA-01031 - insufficient privileges' appears. What has to be setup to allow 'system' to sign on to a database using OEM? (Oracle 8.1.6) Thanks.

  • Edit link problem

    Hi I have a created a form with report page in my application. Now the report has got a edit link based on one column. when we click this link, the form displays containing the record values for the fields. now over here the table based on which i ha

  • Overflow-field in multi-rows block

    Hi! How can i realize overflow-field in multi-rows block. I place overflow fields in the footer area of block and get value use ${uix.current['Description']} - but no have results. Use javascript to set value of overflow-field? thanks