How to use a PDF template with OA Framework

I have a question that is hopefully quite simple. I am using JDeveloper to add a button to a page that will create a PDF document.
According the the documentation it should be quite easy to merge a PDF template file with an XML data file to produce an output PDF file.
The problem I have is that although I can create the XML data file OK - the output PDF file is not produced (the file gets created but it is 0 bytes - I don't get an error message though). Can someone tell me what I'm doing wrong?
My code is as follows:
try
DataProcessor dataProcessor = new DataProcessor();
dataProcessor.setDataTemplate("/oraapp02/apphrutv1/hrutv1comn/work_accident.xml");
Hashtable parameterTable = new Hashtable();
parameterTable.put("hendelse","3574");
dataProcessor.setParameters(parameterTable);
dataProcessor.setConnection(jdbcConnection);
dataProcessor.setOutput("/oraapp02/apphrutv1/hrutv1comn/accidentout.xml");
dataProcessor.processData();
} catch (SQLException e)
throw new OAException("Couldn't create xml file. SQL Error="+e.getMessage(),OAException.ERROR);
} catch (XDOException e) {
throw new OAException("XDOException" + e.getMessage(),OAException.ERROR);
} catch (ClassNotFoundException e) {
System.out.println("ClassNotFoundException " + e.getMessage());
//OK - we created the XML file, now let's send it into the pdf template:
FormProcessor fProcessor = new FormProcessor();
fProcessor.setTemplate("/oraapp02/apphrutv1/hrutv1comn/NAV.pdf");
fProcessor.setData("/oraapp02/apphrutv1/hrutv1comn/accidentout.xml");
fProcessor.setOutput("/oraapp02/apphrutv1/hrutv1comn/NAVout.pdf");
fProcessor.process();
I haven't registered the PDF template file in Oracle Applications - but that shouldn't be the problem should it? Or is it better to use a PDF template that is registered in Oracle Applications?

Can you give me some tips on setting up the appropriate libraries to use the DataProcessor class? I have tried the BIP libraries and the classes from JAVA_TOP but I always get the same error when the constructor of DataProcessor is called:
java.lang.NoSuchMethodError: oracle.apps.fnd.i18n.common.util.DateFormatMaskConverter.getJavaDateFormatFromOracle(Ljava/lang/String;Ljava/util/Locale;Z)Ljava/lang/String;
     at oracle.apps.fnd.i18n.common.util.FormatMaskUtil.isOracleCompatible(FormatMaskUtil.java:693)
     at oracle.apps.fnd.i18n.common.util.FormatMaskUtil.detectDateFormatMaskType(FormatMaskUtil.java:580)
     at oracle.apps.xdo.dataengine.Format.<init>(Format.java:68)
     at oracle.apps.xdo.dataengine.XMLPGEN.<init>(XMLPGEN.java:65)
     at oracle.apps.xdo.dataengine.DataProcessor.<init>(DataProcessor.java:168)
I have been successful in displaying a PDF file in an OAF page but I had to generate the xml data using a PL/SQL package rather than the data template. I know it works because Concurrent Requests using the XDODTEXE executable work and this uses DataProcessor.

Similar Messages

  • How to use a Web Template with queries from multiple BW Systems?

    Hi all,
    can anybody help me how to use a Web Template with queries (DATA PROVIDER)in it from multiple BW Systems?
    Thanks in advance, best regards
    Frank

    Great! Thanks for the quick response.
    Have you tried this for XMLA datasources created within the EP system also?
    i.e use Web Analyzer to create a view from the XMLA source and use that view within WAD?
    Thanks.

  • PDF Template with user updateable fields

    Does anyone have instructions from begin to end on how to create a PDF template with a field that is both populated by XML and allows for user to update when opened in Adobe 8 viewer or higher? I have been successful in creating the template, but once the pdf is output via concurrent program XDODTEXE the fields are no longer updateable. I have looked into the xdo.cfg in XDO_TOP and set the property all-field-readonly to FALSE, but I am still unsuccessful. Any thoughts or help would be greatly appreciated...
    Thanks,
    Jamie
    We solved the problem... xdo.cfg contained a typo.
    Edited by: jmdavis on Jan 22, 2009 1:35 PM

    Sorry... I was only successful in getting the fields to update with Adobe Professional. Viewer works on the original template I associate to the XML / PDF, but when I view the output in Viewer I get a warning indicating the extended features have been changed. I am still searching... I will update when I get the final answer.
    Jamie

  • How to create a web template with company logo

    how to create a web template with company logo . can any one help me with the steps. or any notes. thnaks in advance .
    2. i have 25000 articles and client want to have a selection feild to see top article ex:50,10,20, 100, 1000 etc . same for bottom articles . plz let me know how to do it . thanks for replay . i am new bw so plz .
    thanks to you all

    Hi
    1) Please read
    http://help.sap.com/saphelp_nw04/helpdata/en/4a/c8353c51aab32be10000000a114084/frameset.htm
    2) Create a condition in the Query Designer: Use a formula variable
    See http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm
    Heike

  • Can I use the pdf fax with a DSL line

    Can I use the pdf fax with a DSL line and, if so, how do I get the pdf fax modem to appear in my printer options? No Modems appear in my Modem pop-up menu.
    Thanks,

    Should I be able to fax using the internal fax software if I set it up with the proper settings?
    Yes, if it's not a purely Digital line, dial that FAX number on your Phone, does it answer with a screech?
    Must I disconnect all my other lines in order to use this?
    No, you shouldn't need to... do you have DSL Filters on all lines except the DSL connection, like these...
    http://www.twacomm.com/info/DSL_Filters.htm
    Oh, it's not clear, do you have 2 actual Lines/Phone numbers, or do they share the same line?

  • How to use deafult pdf viewer ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ?

    please tell me how to use default pdf reader in firefox ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ? pdf not open when i give ok with preview in firefox its not open its offer again same message

    In order to change the default pdf reader please see: [[View PDF files in Firefox without downloading them]]
    In order to change the file association: [[Applications panel - Set how Firefox handles different types of files]]

  • How can i associate a template with my message,

    hi,
    how can i associate a template with my message only.
    where is the location of templage file?
    thanks in advance.
    zam_ora

    hi,
    i found out system Mailer item type and messages.
    so i hople , i could take a copy of the template message and modify and associate with my notification , right?
    but how i know , which template my notification is currently using.?
    we are using Outlook as email client.
    thanks.
    zam_ora

  • How to use Two main windows with in a page in script ?

    Hi any body explain me...
    How to use Two main windows with in a page in script ?
    with  header data in one main window,
    & Item data in other main window.

    HI..,
    u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    Here is the procedure !!
    -->Create a page window and assign it to a page.
    Choose <b>Edit --> Main windows</b>.
    A dialog box appears.
    -->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
    -->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
    Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
    -->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
    <b>
    Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
    In label printing, the field Upper margin also varies from main window to main window:
    <b>
      Upper margin of current main window +  Window height + Vertical spacing = Upper margin of next main window</b>
    -->Enter a value in the field Start position.
    This is a counter. Enter a starting value which is equal to or greater than 1.
    -->The main windows are added to the list.
    -->Save your form.
    reward if it helps u...
    sai ramesh

  • How to use JavaMail 1.4 with Oracle Application Server 10g (9.0.4.0.0)

    Hi all,
    I'd like to know if it's possible and how to use JavaMail 1.4 with Oracle Application Server 10g (9.0.4.0.0), Windows version.
    With the following code, I can see that the mail.jar used by the server is the one included in the jdk installation :
    // I'm testing InternetAddress.class because I want to use commons-email-1.2.jar that requires mail.jar 1.4 (or higher) and activation.jar 1.1 (or higher)
    // and I know that inside the commons-email-1.2.jar file, I need to call the InternetAddress.validate() method that throws a java.lang.NoSuchMethodError: javax.mail.internet.InternetAddress.validate()V if it is used with mail.jar 1.2.
    Class cls = javax.mail.internet.InternetAddress.class;
    java.security.ProtectionDomain pDomain = cls.getProtectionDomain();
    java.security.CodeSource cSource = pDomain.getCodeSource();
    java.net.URL location = cSource.getLocation();
    System.out.println(location.toString());
    This code returns : file:/C:/oracle/app/jdk/jre/lib/ext/mail.jar and this mail.jar file has an implementation version number: 1.2
    - I've tried to include my own mail.jar (1.4.2) and activation.jar (1.1.1) files in the war file that I deploy, but it doesn't work (the server still uses the same mail.jar 1.2)
    - I've tried to put the mail.jar (1.4.2) and activation.jar (1.1.1) files in the applib directory of my OC4J instance, but it doesn't work (the server still uses the same mail.jar 1.2)
    - I know that a patch exists : I've read the following document: How to Make Libraries such as mail.jar and activation.jar Swappable ? [ID 552432.1]
    This article talks about the Patch 6514136, but this patch only applies to : Oracle Containers for J2EE - Version: 10.1.3.3.0
    Can you please help me ?
    Thanks in advance for your answers,
    Laurent

    I strongly suggest to upgrade to AS 10.1.3 to get this.
    Think of future support of AS 9.0.4. You will get not critical patch updates anymore.
    --olaf                                                                                                                                                                                                                                                                                                               

  • How To Use Your Own Router with Out Loosing Verizon's FIOS Services

    How to use your own router with Verizon’s FIOS Service
    First, you need a basic understanding of how FIOS works but unfortunately there are two types of FIOS systems out there. All of the systems utilize a fiber optic cable to bring TV, phone and internet to your location over one optic cable. In addition these systems provide interactivity including widgets, remote DVR, movies on demand and so forth via an IP (Internet Protocol) signal.  Your STB (Set Tip Box) requires both a video and IP signal. The IP signal is necessary for all of the aforementioned interactivity.  The fiber cable terminates at the Optical Network Terminal or ONT for short.  The ONT converts the optics into a digital signal that can be utilized by ones equipment.  From the ONT your video, phone and internet are provided to the location.  This is where things can differ as the internet signal can be provided via a coaxial (MoCA or Multimedia over Coax Alliance) or RJ45 Cat5 (Ethernet) cable.  It is important to identify and understand the differences of these two setups.  In my case I have my internet entering via Ethernet cable, which in my humble opinion makes things a heck of a lot easier.
    How does one tell the difference? In most cases it’s rather simple; just look at the Verizon’s router WAN (Wide Area Network) Port.  Does it have a RJ45 (Ethernet) or Coax (TV cable Cord) going to it? If the router’s WAN port doesn’t have a coaxial connector then one will need to convert the MoCA signal into a usable Ethernet signal that routers understand. The easiest way is to use Verizon’s router as a bridge. In this method the Verizon’s router simply converts the signal and passes it along to your own router. The challenge is to try to maintain the interactivity that FIOS TV provides. Because of this one needs to supply the IP routed signal back to the FIOS router.  There are multiple methods for doing this and I would recommend investigates which one make the most sense.   
    In my particular case the IP signal was provided by Ethernet.  Again there are various ways of installing one’s own router. The hardest is to utilize Verizon’s router as a bridge.  This setup requires configuring Verizon’s router as a bridge and also creating a VLAN (Virtual Local Area Networks). In addition one needs to set up their own router so it will work with the various routing tables and networks. For me this is too complex for the average person and it can be difficult to trouble shoot if something goes wrong. Please consider that Verizon will not support utilizing third party routers.   
    The easier method is to request an Ethernet signal (if you don’t already have one) from their ONT.  I would highly recommend getting your hands on a NIM or Network Interface Module. This device is used to convert Ethernet to Coaxial so it can be fed back to your STBs.  These can be purchased online and Verizon technicians can be a valuable resource with these sorts of acquisition.  At the very least they can point you to the right direction.  Once you have a NIM the rest is rather simple.
    Log into the current Verizon Router.
    Located the router’s MAC address and copy it down.
    Go to the port forwarding section and copy down the Applied Rules. 
    Example:  
    Network Computer/Device: 192.168.1.100:63145
    Application & Ports Forward:  Application UDP Any -> 6347  
    Note: There may be up to three entries for each one of your Set Top Boxes.
    Look at your current device list, typically found on the home screen. Copy down your STB MAC and IP address.
    Example:
    IP-STB1
    Connection Type: Ethernet
    * IP Address: 192.168.1.100
    IP Address Allocation: DHCP
    *MAC Address:                07:73:fFe:ad:8b:3f
    * Things you will need to write down
    Go to the network section and look for the main Ethernet connection.  Select this and then select more setting, typically found at the bottom. Release the current lease.
    Remove the Verizon router
    Install your router
    Connect the NIM by plugging in an Ethernet from one of the routers LAN (Local Area Network) ports to your NIM. Then connect the coax cable, the same cable that was used by Verizon router.
    Set you DHCP routing IP pool to accommodate Verizon’s STB IP’s  (note their IP’s start at 192.168.1.100)
    Go to DHCP section and reserve the STB IP’s by inserting the IP’s and MAC addresses. This shall ensure that nothing else utilizes the same IPs as the STBs thereby preventing IP address conflict.  
    Add the port forwards from Step 5 above.
    Clone Verizon’s Mac Address utilizing the info from step 2
    Finish setting up the router in typical fashion.
    Unplug and re-plugin your STB’s and test functionality.  It’s best to try using a widget or Movie on demand function.
    Note: if the new router can net get an internet signal contact Verizon’s support and have them release the IP and reset the ONT.  
    EVERYTHING should be working at this point.

     3 Go to the port forwarding section and copy down the Applied Rules. 
    Example:  
    Network Computer/Device: 192.168.1.100:63145
    Application & Ports Forward:  Application UDP Any -> 6347  
    Note: There may be up to three entries for each one of your Set Top Boxes.G
    Your display obviously is not like mine as mine does not dosplay the port associated with the ip address
    whatever, the STB's start at 192.168.1.100 and icement by 1 for each
    the port addr's will be 63145 alo incrementing by 1
    there is 1 entry for each in my pf list
    however each ip addr also has a port entry starting at 35000 also incrementing by 1 for each ip addr
    For some unknow reason these are duplicated e.g I appear to have 11 entries exaactly the same for each stb and as the fios services rules have no action switc there is nowhere to delete the extraneous garbage.
    Why do you clone the mac addr??

  • How to make a PDF form with expanding tabel or expanding fields, like in Word.

    How to make a PDF form with expanding tabel or expanding fields, like in Word.

    This is currently not possible in Formscentral. It is something we are working on for the future. Please stay tuned.
    Andrew Yarborough

  • How to create a pdf file with CS5

    Hello, I'm new to PhotoShop CS5 and haven't figured out yet (despite two hours of trying) how to create a pdf file with pictures and texts.  Can someone please help me with this ?  The "help" button in CS5 doesn't seem to cover this question.  Nor do the FAQs.
    Thank you very much.

    Save As... Photoshop PDF.

  • How to fix the .pdf file with error "invalid annotation object"

    how to fix the .pdf file with error "invalid annotation object"

    As long as the PDF opens, then just try saving it to a new file name. There may be a preflight script that would help troubleshoot the issue.

  • How to publish Motion 5 templates with another editor's Final Cut Pro x

    How to publish Motion 5 templates with another editor's Final Cut Pro x

    That's also simpel,
    Let the Motion 5 designer deliver the map that he made. For example he made a title effect with the title "We Are Awesome Company Title" than you get that map after the head "Effects" map. So he must send that map with all the stuff in it to an editor and the editor place that map in Motion Templates -> Effects.
    Restart Final Cut Pro X and there you go.

  • How to use digital av adapter with iphone4

    How to use digital av adapter with iphone4

    you can connect it to the iphone4's connector and then you can start an app which support av out like apples video app and then it will display on the tv connected
    the iphone4 don't support mirror though so only apps which support tv out will work with it

Maybe you are looking for

  • "No screen reader support" error when launching Adobe Reader 9.1

    One of my users has to use the default magnifier on his Windows sessions (we run Server 2003 Citrix desktops on thin clients) due to his having limited eye sight. However, whenever he opens a pdf Adobe Reader pops up with this message "No Screen Read

  • Oracle Enterprise Manager does not displaying images

    Hi folks, I installed Oracle SOA Suite 10.1.3.0 and after that I did apllied patch 10.1.3.4. The patch was applied successfully, but when I invoke Enterprise Manager all images does not rendered. After analisying I could see that "ascontrol" applicat

  • SUS PO PDF copy problem

    Hello Everyone, We are using SRM 5.0 with ECS. vendor gets PO's in SUS, and can see the changes made to a PO on the screens. But when they use the Print or Download buttons to see the PDF copy of the PO, it shows them an old version of the PO, withou

  • How to set minimum and maximum X scale in the XY graph if i have a X scale time format ?

    Hi, i choose in the picture enclosed, a time format for the X scale of the XY Graph. The problem is that i am not able to set the minimum and maximum of the X scale: In fact the property nodes of the minimum and maxinum X scales ask for  double as in

  • URL and Hostname of an entry in SLD do not show FQDN -  ??

    check out the screenshot here: http://img247.imageshack.us/my.php?image=sldos0.jpg All systems in our SLD look like that - they do not show fully qualified domain names for URL and Host.  And I don't mean in the display of the hyperlink only, because