XML Publisher Documents

From where can we get some more documents in xml publisher i.e more than the help file present in the xml publisher. If Anyone have the document please help

http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html

Similar Messages

  • Font problems in resulting XML Publisher document (from PeopleSoft)

    Hi all,
    we're creating documents using XML Publisher under PeopleSoft, designing the template in Word 2007.
    We see strange things hapening to the resulting documents: even though the majority of the template is created in a Times New Roman 11pt font, we find that in the resulting document, empty paragraphs and empty table cells are formatted as Arial 12 pt. So where we put an empty line between paragraphs in the text in the template, and set all the text to Times New Roman, the empty lines are Arial. Same thing with the tables. There's a table with a for-each loop in the rows. The XML with the data always contains 10 entries, but possibly with empty values, so that the table in the resulting document always has 10 rows (plus a header row). However, the empty rows are Arial 12, and the filled-in rows are TNR 11. This results in a different heigth for the table depending on how many rows are filled in, causing the positioning of the rest of the document to be off.
    The template contains NO Arial 12 at all...
    I hope my problem is clear. Any ideas or pointers where to look are really appreciated...
    Spiffo

    Hello Deepz,
    Thank you for your answer. I am not sure I understand your answer: I stated, this is occurring in XML Publisher from PeopleSoft, so not in BI Publisher. Furthermore, there is one section in the document where I do need Arial, but at pt 11, not 12.
    I hope you or other forum members can help me further.
    Regards,
    Spiffo

  • Can't view XML Publisher document from JDeveloper environment

    Something has happened to my JDeveloper environment so that I can no longer view XML/BI Publisher output in the JDeveloper runtime web pages. I have developed pages using both DocumentHelper.getOutputURL and TemplateHelper.processTemplate functions. At rutime I am getting an error logged like:
    java.io.FileNotFoundException: \usr\tmp\xdoxxxxxxxxxxx.fo (The system cannot find the path specified)
    However, when I actually deploy and run the pages in EBS they seem to work fine.
    I'm guessing it's some sort of configuration problem with my OC4J server but can't seem to find the details anywhere.
    Thanks for any help you can give me.
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I got this issue resolved. I was missing xdo_doc_display.jsp in my local /OA_HTML directory. Also, I had to create a directory, C:\usr\tmp (I still don't know where that is being set).
    Anyway, thanks to all who tried to help.
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Integrating XML Publisher into an OAF page

    Hello,
    I'm pretty to new to both OAF and XML Publisher...hoping someone can help me out. I created an OAF page that uses oracle.apps.xdo.oa.common.DocumentHelper to display a PDF. I created my Data Definition and Template, and tested that using concurrent manger.
    When I display my OAF page and click a button to view the PDF, the page does not show the PDF. However, when I click on the export button it opens a new window and I can view the PDF no problem.
    So I know the XML Publisher document is working, but why doesn't it display in the page?
    We are on 11.10.2 applications and 5.6.3 XML Publisher.
    Thanks,
    Johnnie
    CO:
    private static final String APP_NAME = "PTC";
    private static final String TEMPLATE_CODE = "PTC_HR_TOTAL_COMP";
    * 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);
    System.out.println( "============processRequest 10" );
    pageContext.putParameter("p_DataSource",DocumentHelper.DATA_SOURCE_TYPE_BLOB);
    pageContext.putParameter("p_DataSourceCode",TEMPLATE_CODE);
    pageContext.putParameter("p_DataSourceAppsShortName",APP_NAME);
    pageContext.putParameter("p_TemplateCode",TEMPLATE_CODE);
    pageContext.putParameter("p_TemplateAppsShortName",APP_NAME);
    pageContext.putParameter("p_Locale","English:United States");
    //pageContext.putParameter("p_XDORegionHeight","95%");
    pageContext.putParameter("p_OutputType","PDF");
    System.out.println( "============processRequest 20" );
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Serializable[] parameters = { new Integer(pageContext.getEmployeeId()).toString() };
    System.out.println( "============processRequest 30" );
    * 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);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    System.out.println( "============processFormRequest 10" );
    if (pageContext.getParameter("ViewStatement") != null)
    Serializable[] parameters = { new Integer(pageContext.getEmployeeId()).toString() };
    BlobDomain result = (BlobDomain) am.invokeMethod("getXMLData", parameters );
    System.out.println( "============processFormRequest 20" );
    pageContext.putSessionValueDirect("XML_DATA_BLOB", result );
    System.out.println( "============processFormRequest 30" );
    AM:
    public BlobDomain getXMLData( String personId )
    BlobDomain blobDomain = new BlobDomain();
    OADBTransaction oadbtransaction = getOADBTransaction();
    System.out.println( "============getXMLData 10" );
    try
    String dataDefCode = "PTC_HR_TOTAL_COMP";
    String dataDefApp = "PTC";
    // Create the new data template
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)getOADBTransaction()).getAppsContext(), dataDefApp,dataDefCode );
    // Set the parameters
    Hashtable parameters = new Hashtable();
    parameters.put("p_person_id", personId );
    datatemplate.setParameters(parameters);
    // Process the template
    datatemplate.setOutput(blobDomain.getBinaryOutputStream());
    datatemplate.processData();
    catch(SQLException e)
    throw new OAException("SQL Error=" + e.getMessage(),OAException.ERROR);
    catch (XDOException e)
    throw new OAException("XDOException" + e.getMessage(),OAException.ERROR);
    catch(Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    return blobDomain;
    }

    Hi Steve,
    I tried the approach you mentioned using IFRAME and found that,i am able to get the region in the end of the page, but its displaying the error message "Page not Found".
    Can you please let me know, what could be the reason.
    Here is my code
    In Controller( Process Request):
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    BlobDomain result = (BlobDomain)am.invokeMethod("getXMLData");
    pageContext.putSessionValueDirect("XML_DATA_BLOB", result);
    // Outputs letter in PDF format inline.
    String redirectURL = DocumentHelper.getOutputURL(pageContext,"XXJSDATA","XXJS_SAC_CPD",result.getInputStream(),"RTF",null,"en","US");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean(pageContext, HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src",redirectURL);
    outRegion.setHTMLAttributeValue("width", "50%");
    outRegion.setHTMLAttributeValue("height", "50%");
    outRegion.setHTMLAttributeValue("title ","XXJS_SAC_CPD");
    outRegion.setHTMLAttributeValue("name ","XXJS_SAC_CPD");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    In AM:
    /**Get XML Data*/
    public BlobDomain getXMLData()
    BlobDomain blobDomain = new BlobDomain();
    OADBTransaction oadbtransaction = getOADBTransaction();
    try
    System.out.println("Now Calling Template to get XML Data>>>");
    String dataDefCode = "XXJS_SAC_CPD" ;
    String dataDefApp = "XXJSDATA";
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)getOADBTransaction()).getAppsContext(), dataDefApp,dataDefCode );
    datatemplate.setOutput(blobDomain.getBinaryOutputStream());
    datatemplate.processData();
    System.out.println("Got XML Data>>>");
    catch(SQLException e)
    throw new OAException("SQL Error=" + e.getMessage(),OAException.ERROR);
    catch (XDOException e)
    throw new OAException("XDOException" + e.getMessage(),OAException.ERROR);
    catch(Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    return blobDomain;
    Kindly help.
    Thanks,
    S

  • XML Publisher 5.6.3 and Emailing

    There has been much discussion on the ability to email requests from EBS and XMLP. I have seen all kinds of work arounds which requires customization.
    I have a few questions. I have read that in 5.6.3, there is talk of integrated bursting, and some suggest that you can use bursting to deliver reports via EMAIL, with no customization. Is there trurth to this?
    I have also read, that in R12 there is an integrated delivery manager. Is this so?
    So, is there any hope for the short term, that Oracle will come out with a integrated solution for 11i that will allow us to deliver reports via Email or other delivery methods without customization or 3rd party software?
    Also, is there a link that point to a document that discusses 5.6.3 enhancements?
    Thank you
    Ira D. Kleiner, MS, MBA

    TIM,
    WE NEED TO KNOW HOW TO SETUP A XML PUBLISHER DOCUMENT SO WE CAN EMAIL FROM THE EBS AFTER IT IS GENERATED.
    WE ARE CURRENTLY ON 5.6.2, AND MAY CONSIDER 5.6.3.
    WE HAVE BUSINESS REQUIREMENTS THAT WE NEED TO BE ABLE TO EMAIL THE DOCUMENT AFTER IT IS RUN FROM A REQUEST.
    I HAVE SEEN MUCH DOCUMENTATION ON THIS, REVIEWED THE USER MANUAL, BUT HAVE NOT FOUND A CONSCISE DOCUMENT THAT DESCRIBES HOW IT IS DONE FROM START TO FINISH. (INCLUDING YOUR BLOG)
    I UNDERSTAND WITH 5.6.2 THERE IS SOME CUSTOMIZATION THAT NEEDS TO BE DONE TO PASS THE OUTPUT FROM THE REQUEST TO THE DELIVERY MANAGER USING JAVA AND API'S.
    ARE THE SAME REQUIREMENTS FOR 5.6.3, OR IS THERE A INTEGRATED SOLUTION FOR EMAILING DOCUMENTS OUT OF THE E BUSINESS SUITE AFTER RUNNING AN XMLP REPORT?
    WE HAVE A FEW WEEKS BEFORE WE ARE SLATED TO GO LIVE WITH THE 11.5.10 UPGRADE WE ARE PLANNING, SO TIMING IS CRITICAL THAT WE FIND A SOLUTION.
    THANKS
    IRA D. KLEINER

  • Apps & Responsibilities for XML publisher - basic info

    Hi,
    I'm new to xml publisher. We are running on 11.5.10.2.
    I need to find out what responsibility I need to be to work with XML Publisher? Currently I only see, XML Publisher Administrator but there is no way to create new data definitions that I can see. I need to be able to enter an sql statement.
    Also, is there somewhere with simple instruction on how to create and run a new xml publisher document?
    Thanks for any help.
    Andy

    Hi Andy
    The XMLP Admin is all you need. Within Apps you create a regular conc program that generates XML, this is then registered with the template manager. You will then load layout templates against the CP. At runtime your users will be able to pick templates to apply to the data thru the conc manager.
    For more info:
    1. check the user guide, its actually useful
    2. Conc processing white paper and viewlet - http://www.oracle.com/technology/products/xml-publisher/xmlpapps.html
    3. Building templates 101 - http://www.oracle.com/technology/products/xml-publisher/xmlpclient.html
    Have a try and let us know if/when you get stuck
    Tim

  • 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

  • How to trigger xml publisher API (ex:Delivering Documents via e-Mail)?

    Dear All:
    How to use xml publisher API ?
    In user's guide always talk API's code.(ex:Delivering Documents via e-Mail
    // create delivery manager instance
    DeliveryManager dm = new DeliveryManager();
    // create a delivery request
    DeliveryRequest req =
    dm.createRequest(DeliveryManager.TYPE_SMTP_EMAIL);
    // set email subject
    req.addProperty(DeliveryPropertyDefinitions.SMTP_SUBJECT, "Invoice");
    // set SMTP server host
    req.addProperty(
    DeliveryPropertyDefinitions.SMTP_HOST, "mysmtphost");
    // set the sender email address
    req.addProperty(DeliveryPropertyDefinitions.SMTP_FROM,
    "[email protected]");
    // set the destination email address
    req.addProperty(
    DeliveryPropertyDefinitions.SMTP_TO_RECIPIENTS,
    "[email protected], [email protected]" );
    // set the content type of the email body
    req.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_TYPE,
    "text/html");
    // set the document file name appeared in the email
    req.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_FILENAME,
    "body.html");
    // set the document to deliver
    req.setDocument("/document/invoice.html");
    // submit the request
    req.submit();
    // close the request
    req.close(); )
    Not say how to use this code to account effect !!
    Having anybody to use API before?
    Please tell me how to use that,thanks!!
    BY Emily_ye

    Hi Emily
    I had the same question. After much research and a lot of deduction I produced the following:
    import oracle.apps.fnd.cp.request.*;
    import java.io.*;
    import java.sql.*;
    import java.util.Vector;
    import oracle.apps.fnd.util.*;
    import oracle.apps.xdo.XDOException;
    import oracle.apps.xdo.common.pdf.util.PDFDocMerger;
    import oracle.apps.xdo.delivery.DeliveryException;
    import oracle.apps.xdo.delivery.DeliveryManager;
    import oracle.apps.xdo.delivery.DeliveryPropertyDefinitions;
    import oracle.apps.xdo.delivery.DeliveryRequest;
    import oracle.jdbc.driver.OracleCallableStatement;
    public class RunTravProgram implements JavaConcurrentProgram {
    CpContext mCtx; // global reference to concurrent program context
    LogFile logFile; // global reference to context logfile
    OutFile outFile; // global reference to context outfile
    Connection mConn = null;
    ReqCompletion lRC;
    //File Separator
    private String mFileSeparator;
    // globals for template
    String XDOAppShortName = "";
    String XDOtemplateCode = "";
    // hard-wired constants for template addition
    final String XDOLanguage = "en";
    final String XDOTerritory = "US";
    final String XDOFinal_format = "PDF";
    final String XDOtemplateType = "TEMPLATE_SOURCE";
    String PDFFile = "";
    String outFilePath = "";
    String progShortName = "";
    String progDesc = "";
    Integer iRequestID = 0;
    String sWatermark = ""; // watermark text
    String emailAddress = ""; // Not Implemented
    String emailServer = "";
    public static final String M_SUCCESS = "SUCCESS";
    public static final String M_ERROR = "ERROR";
    public static final String M_WARNING = "WARNING";
    * Create a Java FND ConcurrentRequest objec to call fnd_request.submit_request
    * The first three parameters are:
    * Application Short Name -- Application Short name (ie. WAHC)
    * Current Program Short Name -- Concurrent Program being called
    * Current Program Description -- description for above
    * These should be the first three parameters passed by the concurrent
    * program in this order. The next two are constants set to null
    * These are followed by the parameters passed by the first concurrent
    * program that are being passed to the next concurrent program.
    * I am limiting the parameter list to ten for now.
    // Dynamic PLSQL statement used to get a concurrent request completion status
    // This is necessary because the java class does not provide this method :-(
    String mGetCompleteStatus =
    "DECLARE R_VAL BOOLEAN; " + "b_phase VARCHAR2 (80) := NULL; " +
    "b_status VARCHAR2 (80) := NULL; " +
    "b_dev_phase VARCHAR2 (80) := NULL; " +
    "b_dev_status VARCHAR2 (80) := NULL; " +
    "b_message VARCHAR2 (240) := NULL; " + "BEGIN " +
    "r_val := fnd_concurrent.wait_for_request (:1,5,1000," +
    "b_phase,b_status,b_dev_phase,b_dev_status,b_message); " +
    ":2 := b_phase; " + ":3 := b_status; " + ":4 := b_message; " + "end;";
    public RunTravProgram() {
    // no constructor necessary for now
    * Concurrent Processing provides an interface 'JavaConcurrentProgram' with abstract method
    * runProgram() which passes the concurrent processing context 'CpContext'. The concurrent
    * program developer will implement all of their business logic for a concurrent program in
    * runProgram(). The main() method, implemented by AOL, will call runProgram() after
    * performing all of the required initialization for the concurrent program, including
    * establishing a database connection, initializing the required contexts, and setting up
    * the log and output files. CpContext will have the request specific log and output
    * file input methods
    public void runProgram(CpContext pCpContext) {
    mCtx = pCpContext;
    OracleCallableStatement lStmt = null;
    boolean bCompletion = true;
    String sPhase = "";
    String sStatus = "";
    String sMessage = "";
    //get handle on request completion object for reporting status
    lRC = pCpContext.getReqCompletion();
    // assign logfile
    logFile = pCpContext.getLogFile();
    // assign outfile
    outFile = pCpContext.getOutFile();
    // assign fileseparator
    mFileSeparator = getFileSeparator();
    // get the JDBC connection object
    mConn = pCpContext.getJDBCConnection();
    outFilePath =
    ((new File(outFile.getFileName())).getParent() == null ? "" :
    (new File(outFile.getFileName())).getParent() +
    mFileSeparator);
    logFile.writeln("OutFile File Path: -> " + outFilePath, 0);
    // get parameter list object from CpContext
    // these come from the concurrent program
    ParameterList lPara = pCpContext.getParameterList();
    // create a temporary array and retrieve the parameters created by
    // the program. Currently limiting the number of parameters to 10 for now
    String pvals[] = new String[10];
    int pcount = 0;
    while (lPara.hasMoreElements()) {
    NameValueType aNVT = lPara.nextParameter();
    pvals[pcount] = aNVT.getValue();
    pcount++;
    if (pcount > 9)
    break;
    // send parameter values to the log file
    logFile.writeln("Arg 1: APPL_SHORT_NAME -> " + pvals[0], 0);
    logFile.writeln("Arg 2: CURR_PROG_SHORT_NAME -> " + pvals[1], 0);
    logFile.writeln("Arg 3: CURR_PROG_DESCRIPTION -> " + pvals[2], 0);
    logFile.writeln("Arg 4: TEMPLATE_CODE -> " + pvals[3], 0);
    logFile.writeln("Arg 5: P_PLANT_CODE -> " + pvals[4], 0);
    logFile.writeln("Arg 6: P_BATCH_NO -> " + pvals[5], 0);
    logFile.writeln("Arg 7: P_SHOW_PROMISE -> " + pvals[6], 0);
    logFile.writeln("Arg 8: P_WATERMARK -> " + pvals[7], 0);
    XDOtemplateCode = pvals[3]; // store the template name globally
    progShortName = pvals[1]; // store the program short name globally
    XDOAppShortName = pvals[0]; // store the application short name
    sWatermark = pvals[7]; // store the watermark globally
    progDesc = pvals[2];
    try {
    // create a concurrent request object
    ConcurrentRequest cr = new ConcurrentRequest(mConn);
    // use the parameters to call fnd_request.submit_request
    cr.addLayout(XDOAppShortName, XDOtemplateCode, XDOLanguage,
    XDOTerritory, XDOFinal_format);
    Vector param = new Vector();
    param.add(pvals[4]); // plant code
    param.add(pvals[5]); // batch ID
    param.add(pvals[6]); // Show SO info flag
    iRequestID =
    cr.submitRequest(XDOAppShortName, progShortName, progDesc,
    null, false, param);
    mConn.commit();
    // send the request ID to the log file
    logFile.writeln("-- Request ID: ->" + Integer.toString(iRequestID),
    0);
    // call fnd_concurrent.wait_for_request to wait until the request
    // has ended - use this to check the request status before proceeding
    lStmt =
    (OracleCallableStatement)mConn.prepareCall(mGetCompleteStatus);
    lStmt.setInt(1, iRequestID);
    lStmt.registerOutParameter(2, java.sql.Types.VARCHAR, 0, 255);
    lStmt.registerOutParameter(3, java.sql.Types.VARCHAR, 0, 255);
    lStmt.registerOutParameter(4, java.sql.Types.VARCHAR, 0, 255);
    lStmt.execute();
    // get the results of the completion
    sPhase = lStmt.getString(2);
    sStatus = lStmt.getString(3);
    sMessage = lStmt.getString(4);
    lStmt.close();
    // send the results of the request processing to the log file
    logFile.writeln("-- Phase: -> " + sPhase, 0);
    logFile.writeln("-- Status: -> " + sStatus, 0);
    logFile.writeln("-- Message: -> " + sMessage, 0);
    // test here to make sure it completed correctly
    if (sPhase.equals("Completed") && sStatus.equals("Normal")) {
    // construct the PDF file name generated by the called request
    PDFFile = progShortName + "_" + iRequestID + "_1.pdf";
    // add a watermark to the generated PDF
    // create an output stream for the existing PDF
    // and set ouput to append
    OutputStream pdfout =
    new FileOutputStream(outFilePath + PDFFile, true);
    // create an inputstream array (required by calling method)
    InputStream pdfin[] = new InputStream[1];
    pdfin[0] = new FileInputStream(outFilePath + PDFFile);
    // add the watermark passed as a parameter
    bCompletion = addWatermark(pdfin, pdfout);
    // assign the modified file to the context out
    // this will print using this request
    if (bCompletion)
    outFile.setOutFile(outFilePath + PDFFile);
    // release the connection object
    // and set the completion status for the request
    if (bCompletion) {
    pCpContext.getReqCompletion().setCompletion(ReqCompletion.NORMAL,
    } else {
    lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
    pCpContext.releaseJDBCConnection();
    } catch (SQLException s) {
    logFile.writeln("SQL Error: Exception thrown w/ error message: " +
    s.getMessage(), 0);
    lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
    pCpContext.releaseJDBCConnection();
    } catch (IOException ioe) {
    logFile.writeln("IO Error: Exception thrown w/ error message: " +
    ioe.getMessage(), 0);
    lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
    pCpContext.releaseJDBCConnection();
    } catch (Exception e) {
    logFile.writeln("General Exception: " + e.getMessage(), 0);
    lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
    pCpContext.releaseJDBCConnection();
    } finally {
    try {
    if (lStmt != null)
    lStmt.close();
    pCpContext.releaseJDBCConnection();
    } catch (SQLException e) {
    logFile.writeln(e.getMessage(), 0);
    lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
    * addWatermark()
    * @param pdfin
    * @param pdfout
    * @return boolean
    * This method will work for an existing document or a newly generated
    * one. Set the outputstream append flag to false for a new document
    * and true for an existing one.
    * NOTE: PDFDocMerger requires an inputstream array even if it only
    * contains one document.
    private boolean addWatermark(InputStream[] pdfin, OutputStream pdfout) {
    if (!sWatermark.equals("")) {
    try {
    PDFDocMerger docMerger = new PDFDocMerger(pdfin, pdfout);
    //docMerger.setTextDefaultWatermark(sWatermark);
    docMerger.setTextWatermark(sWatermark, 80f, 50f);
    docMerger.setTextWatermarkAngle(25);
    docMerger.setTextWatermarkColor(1.0f, .50f, .50f);
    docMerger.setTextWatermarkFont("Garamond", 100);
    docMerger.process();
    docMerger = null;
    return true;
    } catch (XDOException e) {
    logFile.writeln("Watermark process Failed: " + e.getMessage(),
    0);
    return false;
    return true;
    * Returns the file separator
    private String getFileSeparator() {
    return (System.getProperty("file.separator"));
    * EBSEmailDelivery
    * @return
    * Just for testing right now.
    private boolean EBSEmailDelivery() {
    if (!emailAddress.equals("")) {
    try {
    // create delivery manager instance
    DeliveryManager delMgr = new DeliveryManager();
    // create a delivery request
    DeliveryRequest delReq =
    delMgr.createRequest(DeliveryManager.TYPE_SMTP_EMAIL);
    // set email subject
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_SUBJECT,
    "EBS Report:" + progDesc +
    " for request: " + iRequestID);
    // set SMTP server host
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_HOST,
    emailServer); // need to supply the email smtp server
    // set the sender email address
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_FROM,
    emailAddress);
    // set the destination email address
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_TO_RECIPIENTS,
    emailAddress);
    // set the content type of the email body
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_TYPE,
    "application/pdf");
    // set the document file name appeared in the email
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_FILENAME,
    PDFFile);
    // set the document to deliver
    delReq.setDocument(outFilePath + PDFFile);
    // submit the request
    delReq.submit();
    // close the request
    delReq.close();
    return true;
    } catch (DeliveryException de) {
    logFile.writeln("email process Failed: " + de.getMessage(), 0);
    return false;
    return true;
    This is the class for a JCP I created to perform the following:
    1) Launch an existing Concurrent Program that produces PDF output
    2) Grab the PDF and apply a watermark based on user input or conditions
    3) associate the modified PDF to CP output for PASTA printing
    It isn't elegant but it is fairly simple. I added the email capability and tested it but am not implementing it at the present time.
    there is a fair amount of information out there that explains how to create a JCP councurrent program but very little that demonstrates the class needed.
    I hope this helps

  • XML Publisher 5.6.2 Document Processor Engine

    Would I be correct in assuming that sending the xapi: tags through the regular concurrent request engine would be a fultile exercise in order to burst an invoice batch into multiple PDFs?
    Could somebody please confirm that I must use a JAVA concurrent program wrapper around the request in order to use the document processor engine to burst and save on the file system?
    Thanks in advance,
    G.

    XML Publisher 5.6.2 API may be used in JDeveloper 11g by importing the Oracle JDBC library definition from JDeveloper 10.1.3. Instead of the Oracle JDBC library in JDeveloper 11g create a Oracle JDBC library from the JDeveloper 10.1.3 Oracle JDBC library JAR files.

  • Is it possible to use xml publisher with xml document as data source ?

    I have an application that have to publish document from xml document that are not part a oracle 10g database but will be stored into Oracle Berkeley XML database insteed. Is it possible to use server and/or desktop to publish these documents ?
    I test the desktop edition using the source xml document but it render no data when the template is executed (vizualization)
    I installed the server edition and i'm not able to declare xml document as a data source
    So i have a doubt that xml publisher is able to publish something from a xml datasource
    Thanks

    Yes, it is possible.
    The problem should come from your template. Refer to "edit a RTF template" in the docs.
    A fact is that XML Publisher server edition is not very adapted to an XML file datasource. In order to use it, you should use an HTTP datasource, with the URL of your XML document (that you should place on a web server...). The problem is that this URL is fixed and point always on the same reference...so XML Publisher server edition is not very good for that use.
    I choose to use the XML Publisher Java API which is better for this task.

  • XML Publisher API Document

    Hi,
    I am looking for complete XML Publisher Java API Docs. Any pointers would be helpful.
    Thanks in Advance
    ~Neeraj

    The document
    XML Publisher 5.6.2 Core Components APIs
    can be found here:
    http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html

  • Any document listing "XML publisher development standards"

    HI Guys,
    I'm looking for any document listing "XML publisher development standards" - similar to 'best practices' or 'recommendations' for any new developer.
    Would appreciate pointer/reference to any document that has complied list of all these standards.
    Thanks.

    Dipen,
    you can get information abot the XML Publisher from this link
    http://education.oracle.co.uk/html/oracle/46777US/D51925GC10.htm
    http://asun.ifmo.ru/docs/XMLP/help/en_US/htmfiles/B25951_01/T421739T432386.htm
    --Shiva                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • XML Publisher common user interface document viewer

    Trying to display XMLP data template output from OA Framework page.
    My getXMLData AM method is:
    public BlobDomain getXMLData(String personId, String prgmCd)
    BlobDomain blobDomain = new BlobDomain();
    try
    String s1 = "SKOAFTRANS";
    String s2 = "SKA";
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)getOADBTransaction()).getAppsContext(), s2, s1);
    Hashtable parameters = new Hashtable();
    parameters.put("P_PERSON_ID",personId);
    parameters.put("P_PRGM_CD",prgmCd);
    datatemplate.setParameters(parameters);
    datatemplate.setOutput(blobDomain.getBinaryOutputStream());
    datatemplate.processData();
    catch(SQLException e)
    throw new OAException("SQL Error=" + e.getMessage(),OAException.ERROR);
    catch (XDOException e)
    throw new OAException("XDOException" + e.getMessage(),OAException.ERROR);
    catch(Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    return blobDomain;
    I'm getting the following exception at runtime:
    java.lang.IllegalAccessError: tried to access class oracle.apps.fnd.i18n.common.text.DigitList from class oracle.apps.fnd.i18n.common.text.ExcelNumberFormat
         at oracle.apps.fnd.i18n.common.text.ExcelNumberFormat.<init>(ExcelNumberFormat.java:345)
         at oracle.apps.fnd.i18n.common.text.ExcelNumberFormat.<init>(ExcelNumberFormat.java:623)
         at oracle.apps.fnd.i18n.common.util.FormatMaskUtil.<clinit>(FormatMaskUtil.java:472)
         at oracle.apps.xdo.dataengine.Format.<init>(Format.java:68)
         at oracle.apps.xdo.dataengine.XMLPGEN.<init>(XMLPGEN.java:66)
         at oracle.apps.xdo.dataengine.DataProcessor.<init>(DataProcessor.java:178)
         at oracle.apps.xdo.oa.util.DataTemplate.<init>(DataTemplate.java:135)
         at skidmore.oracle.apps.igs.assessment.server.StudentTranscriptAMImpl.getXMLData(StudentTranscriptAMImpl.java:108)

    Hi,
    I had the same problem listed at the beginning of this thread:
    Error invoking 'set_xslt_locale':'java.lang.IllegalAccessError: tried to access class oracle.apps.fnd.i18n.common.text.DigitList from class oracle.apps.fnd.i18n.common.text.ExcelNumberFormat'
    I raised an SR and eventually came up with the cause and a solution.
    Cause:
    Essentially the problem is caused by incompatible versions of classes in the oracle.apps.fnd.i18n.* package held in the file jdevbin\jdev\appslibrt\aolj.jar versus the classes used by the BI Publisher libraries. The 'set_xslt_locale' method was introduced in BI publisher version 5.6.3 so if you have upgraded to this version on the server it is likely that you will get this error in JDeveloper.
    Solution:
    1) You will first need to copy the following file to your local JDev install and add it as a library via Project Settings --> Libraries :
    $FND_TOP/java/3rdparty/stdalone/xdoparser.zip
    2) Next fetch the latest version of the oracle.apps.fnd.i18n.* classes from $OA_JAVA. Create a zip file of these files (i.e. i18n.jar), copy to your local JDev install and add it as a library as you did with the xdoparser.zip.
    3) Copying these files alone will not solve the problem because JDeveloper will use the oracle.apps.fnd.i18n.* classes located in the jdevbin\jdev\appslibrt\aolj.jar file before using the ones located in the file added in step 2 (i18n.jar). To get round this, ensure that the the library you have added for the i1n8.jar file is higher in the list (under Project Settings  Libraries) than the libraries “FND Libraries” & “OA Developer Libraries” (if selected). This will ensure that the files in i18n.jar are used prior to those in jdevbin\jdev\appslibrt\aolj.jar. If this does not work (some users have found this approach not to work), make a backup of the file jdevbin\jdev\appslibrt\aolj.jar and then manully remove all files in the oracle.apps.fnd.i18n package from the file.
    4) In addition to the above copy the file $OA_HTML/xdo_doc_display.jsp to your local OA_HTML directory (usually jdevhome\jdev\myhtml). You should also set the temporary directory of the XML Publisher (under Admin) to a directory that exists on your PC (eg. /var/tmp on your PC will be c:\var\tmp).

  • XML Publisher Report Output from OAF Page

    Hi,
    I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
    Please see the below code.
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
    String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
    System.out.println("s1 = " + s1);
    String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
    System.out.println("s2 = " + s2);
    String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
    CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
    System.out.println("s3 = " + s3);
    if(requestId != 0)
    try
    Number number = new Number(requestId);
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, number.intValue());
    callablestatement.setString(3, s2);
    callablestatement.setString(4, s1);
    callablestatement.execute();
    String s4 = callablestatement.getString(1);
    System.out.println("Before S4 if statement");
    if(s4 == null || s4.equals(""))
    // throw new RuntimeException();
    System.out.println("URL is null");
    System.out.println(" print ouput url - " + s4 );
    // throw OAException.wrapperException(exception);
    oadbtransactionimpl.putValue("OutputURL", s4);
    System.out.println(" print ouput url - " + s4 );
    }

    Look at the links AJ gave.
    Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
    All of these things are in the XML Publisher documentation and Javadocs.

  • Xml Publisher Report Without RDF

    Hi experts,
    I need to customize the seeded XML publisher report.Till now i developed XML publisher reports by developing rdf only. But here i didn't see any rdf for it..
    without rdf how we can create the xml publisher report. I need to insert a field in this report where i need to insert this field.
    where i found the SQL query for this report.Please help me
    Thanks
    Ashok

    Thank u,
    Here I need to customize the Sales Order XSL Template which is a seeded template in Order Management.
    and it will execute when user select the actions button-> print and prview .so there is no concurrent program for this.they did the setups for this.
    I didn't find any datetemplate for this in data defination window.here I need to change this one as
    1.     Update the Report Header to read “Dispatch Note” instead of “ORDERING DOCUMENT”.
    2.     Inclusion of logo for each police authority (Open Issue).
    3.     Modification to include *“United Kingdom” instead of U.S.* in the free text portion of the PRODUCT section. “United Kingdom” value will be derived from the country specified for the selected organization and not hardcoded.
    4.     Footer to include shipment date instead of Sales Order Creation date and the document should be available to print only after Ship Confirm.
    5.     Updating the Layout template in the Transaction Type setup, so that it points to the modified layout template.
    6.     The modified Dispatch Note document will be included in the Ship Confirm document set and this document set will be included in the respective Ship Confirm rules. This Ship Confirm Rule will be attached in the Shipping parameters tabs for both the organisations. This step would enable the Dispatch Note to be printed automatically after successful completion Ship Confirm process.
    I have *.XSD file and .XSL file * .. I don't find any data template in datadefination window to see the SQL query.
    I thought now i have to change the *.XSD AND .XSL FILES* is it right? Is there any other solution for this ..
    Thanks
    Ashok
    Edited by: 886640 on Oct 11, 2011 6:41 AM
    Edited by: 886640 on Oct 11, 2011 10:00 PM
    Edited by: 886640 on Oct 11, 2011 11:07 PM

Maybe you are looking for

  • Multi-document Application using JTextPane - Issue

    Hi. I'm making a java IDE as a class assignment where the user opens a certain project and all associated files open (i.e. all files in the requested folder). Opening is not an issue but here's the real problem. When a file opens (in the JTextPane),

  • INSTANCE_NOT_FOUND ERROR IN CUD0_GET_VAL_FROM_INSTANCE

    Hi Guru's, I'm trying to create the sales order for the material type - Trading Material. while saving the sales order i'm getting the runtime error ..it says Exception condition "INSTANCE_NOT_FOUND" raised. Termination occurred in the ABAP program "

  • Installation was interrupted message for a routine upgrade

    Right after "Publishing product information": "The iTunes for Windows installer has completed. The installation was interrupted before iTunes could be completely installed. The System has not been modified. To install this program at a later time, ru

  • Satellite A300-1OM - No sound on TV using HDMI

    I have a Toshiba Satellite A300-1OM, and also a Toshiba HD TV with HDMI input ports. I recently bought a HDMI to HDMI cable and attached the notebook to the tv and turned the tv to the HDMI channel, and the notebook confirmed this by making the 'new

  • How do I get Firefox to save history indefinitely? Right now I am losing history older than 2 months.

    places.history.expiration.transient_max_pages = 28763 I read elsewhere that is the number of pages Firefox is currently set to save, and that value is somehow chosen based on performance. There are currently 4492 pages listed in my history, according