Sitemap

Amicuk Programming Answers

Reg: Problem  in XML PUBLISHER Report

2015-10-11   Views:0

Advertisement

Hi all, I am working building report using xml publisher. Problem i facing was , *1. I created the template in RTF and attached to data definition* for eg: my rtf is sno item quantity price ( I created this field in table structure and mapped to xml

Hi all,
I am working building report using xml publisher. Problem i facing was ,
*1. I created the template in RTF and attached to data definition*
for eg: my rtf is
sno item quantity price ( I created this field in table structure and mapped to xml data)
Total Price ( this also i am getting from data definition)
The below is sample constant sentence for my client and typed just below Total Price ( field i mentioned above)
Inspected  By                                          Approved By     
*1)*
________________________________     1)________________________________     Store Incharge : ______________________
*2)*
________________________________       2)  ________________________________     Received           : _______________________
*3)*
________________________________     3   ________________________________     Prepared  By    :             _______________________
NOTE : ABOVE MENTIONED LINES ARE CONSTANT ONE.
2. When i ran the report, if my data definition return 5 lines means , i am getting PDF output Correctly in single page (1st page)
3) If my data definition returns lines more than 8 lines means, I am getting PDF output with Table structure values with item, in 1 st page and Constant sentence in 2nd page of PDF
4) If my data definition returns lines between 5 and 8 means, I am getting PDf output with table structure values with item and some of Constant sentence of my client in 1 st page and few of the constanst sentence in 2nd page.
Actually my need
Even if the data definitions exceeds more than 5 lines the constant sentence should be placed either in the first page or in the next page based on the no. of lines in the data definition.
How to resolve this... any approach most welcome. Wat changes i have to make.

The replay answer
Advertisement
Krishna
Modified your code a little bit.Use this
    public int submitCPRequest(String shipmentId) {
    System.out.println("into submitCPRequest");
        OAPageContext pageContext;
        OAWebBean webBean;
    try {
OAApplicationModule am =pageContext.getApplicationModule(webBean);
    OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    String applnName = new String("XXAPL"); //Application that contains the concurrent program
    System.out.println("ApplName"+ applnName);
    String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
    System.out.println("Concc Name"+ cpName);
    String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
    // Pass the Arguments using vector
    // Here i have added my parameter headerId to the vector and passed the
    //vector to the concurrent program
    Vector cpArgs = new Vector();
    cpArgs.addElement(shipmentId);
    System.out.println("Args"+ cpArgs);
    // Calling the Concurrent Program
    int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
    cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
    System.out.println("Req Id"+ requestId);
    tx.commit();
    return requestId;
        catch (RequestSubmissionException e) {
        System.out.println("Into Exception");
        OAException oe = new OAException(e.getMessage());
        oe.setApplicationModule(this);
        throw oe;
        catch(Exception exception)
        throw OAException.wrapperException(exception);
    }Thanks
AJ

Go to See the other 15 answers

Hot
Hi What is the best way to do paging with JDBC when using PL/SQL Cursor. I want to create DAOs that access PL/SQL Cursors with a paging mechanism. The DAO must be stateless. Regards, Nestor BoscanNestor, While I'm not trying to take away from Mikael' [More]
I have the following position available. If you are interested or know anyone who is please forward resume and contact information to Lisa Green: [email protected] OVERVIEW: The LiveCycle Developer is responsible for providing administration, technic [More]
Hi there.... Where is the backup file usually stored when using ovi suite?? what is the type of the file when i want to search in windows viasta??? THANK YOU Solved! Go to Solution.The backup file will have a ".nbu" file extension. You can view [More]
I know have double the number of tracks I actually should have in my iTunes, because iTunes cannot find the appropriate tracks in the external hard-drive. Now I understand the concept of it, and bravo... but how do I now delete those tracks without h [More]
I have a new envy110 series CQ811A. I have a windows 7 64-bit laptop. There are no error messages and the Envy works great but when i print a picture off of a web site the colors are not accurate and i mean none of them. i have returned one printer a [More]
Hi Friends, in alv list I can trigger an evant by declaring field i.g. "CONNID" as button. Is it possible without create a button. I mean, when I have several fields like matnr, bukrs etc. I want for each calling the details, but without to decl [More]
Hi all, I'm writing as I have this problem .... This simple JSP SHOULD print on the same page the user name if both his name and surname have been inserted in a form: <html> <head><title>Primo esempio di pagina jsp</title></head [More]
I am trying to network my Home Theater equipment (WD Live TV, Samsung LED and Samsung BluRay--all of which have ethernet ports). I ran a standard cat5e cable from the Time Capsule base station. When that cable is hooked up individually to any of the [More]
Hi, I have the following situation: - two entities with 1-1 relation - there is no "Composition association" since one of the entities is part of another 1-1 relation - a view object based on both entities, both are updatable - SQL92 SqlBuilder; [More]
i have a new ipad mini and my pc need or itunes need an update, but the update run.... and bevor it is by the end, he stop an the message is "he cant find.... itunes.msi i dont find help in the internet sorry for my english...Hallo! Falls mein englis [More]