Subtotal in trailer on conditional break (PDF Form)

A row put by conditional breaks as trailer ( with condition "Items[-1].VPROC ne Items.VPROC" for example).
How to calculate subtotal on some field in this row?
Any example?

Hello,
the recommended solution is to do this in backend (add a row into the table of rows, add a column which will be hidden in the form, where there will be something like 'X' if the form is a subtotal, based on the 'X' mark you can change the row color for example). Or you can do that in the form using scripting but that is not very friendly.
Regards Otto
p.s.: note there is Adobe forms forum under NetWeaver

Similar Messages

  • Node Conditions in PDF form

    HI All,
    Please read the question carefully before responding.
    We have a Z version of MEDRUCK_PO which the customer has asked us to change. Currently he can use a free text delivery address in Ariba which will then be passed to the PO in SAP ECC.
    The problem is that certain POs are will default to SAP delivery addresses (managed by Plant). We then have an issue where we can have two addresses on a line item. Confusing for the Vendor!
    This should be easily solved by conditioning the address at the line item. However the text-id is in another node (TEXTS) and because of this it cannot be used as a conditioning variable. The same goes for any other TEXT variables.
    Does anyone have a clever way of getting around this problem?
    Thanks in advance.
    Alistair

    It the person who filled it in probably used Preview, which corrupts PDF forms in a number of ways. To make the data visible in the fields, open the form in Acrobat, export the form data to an FDF file, and import the FDF file that you saved.

  • Adobe form conditional breaks with subtotal

    Hi,
    I need to develop a form with a dynamic table that calculate a subtotal by company
    Eg:
    Reference Cash disc. Withh.tax Net loc. curr. CoCd
    0 0 10 Z001
    TESTE 1 0 0 20 Z001
    TESTE 1 0 0 20 Z001
    Subtotal      40
    CNRWaeoitftsCh ehldhor e.cdtn.ai sccxce u.rr.
    TESTE 3 0 0 30 Z002
    TESTE 3 0 0 30 Z002
    TESTE 3 0 0 30 Z002
                        90
    I can set the conditional break by company but i can calculate the subtotal.
    Thank you in advance.
    Miguel
    Edited by: miglsilva on Dec 20, 2010 1:52 PM

    Hi Sai,
    Thank you very much for the reply,
    I have to implement something like a dynamic table:
    Imagine
    I have one table with the  purchase items of all the companies, like that:
    XBLNR NETTO     Company Code
    TESTE   20            Z001
    TESTE   20            Z001
    TESTE   30            Z002
    TESTE   30            Z002
    TESTE   30            Z002
    TESTE   60            Z003
    TESTE   30            Z003
    So i have to display that by company, and when finish the las item i have to add a line with the subtotal like that:
    XBLNR NETTO     Company Code
    TESTE   20            Z001
    TESTE   20            Z001
    Subtotal 40
    TESTE   30            Z002
    TESTE   30            Z002
    TESTE   30            Z002
    Subtotal 90
    TESTE   60            Z003
    TESTE   30            Z003
    subtotal 90
    I had already the conditional break for break when the data[-1].bukrs ne data.bukrs but when i put the script for calculate the value the result it is all the items.
    Thank you in advance.
    Miguel

  • Adobe Forms - Page Break via a Conditional Break

    Having read through the forum I am getting the impression that Page Breaks is a bit of a problem.
    I can enforce a page break between datasets by setting "After:" to "Goto Next Page", on the Object->Pagination tab, however this results in a blank page at the end of the entire output which is just the Master Page with all the static elements.
    The 'Conditional Breaks' sounds like the logical point to force a page break based on a combination of inequality or if a particular data element equals a known value.
    However, I don't seem to be able to get the 'Conditional Break' to work.
    So, the question I would like to ask, is how can you tell if the conditional break logic is correct and whether or not it is running? For example on an ABAP system is it possible to run it and debug it?
    My attempts at getting the break to open a pop up or write to disk via JavaScript fails, which is leading me to think they  are being ignored by the Adobe Form at both the server and client level.
    Is it possible that I have missed another setting somewhere else in the Adobe form configuration?

    Hello Jason!
    You are right that conditions (and all scripting) are bit tricky in this solution. Still they work.
    Debugging of AIF at ABAP side is not possible due to the architecture of the solution - from the ABAP POV it is just a web-service call and receiving result (PDF) back. You can't stop it on midpoint or intercept it somehow.
    At the same time there are other ways to check it.
    First, you can enable trace and saving additional info in SFP transaction under Utilities -> Settings.
    Details see [here|http://help.sap.com/saphelp_nw70/helpdata/EN/f7/a04aee0cb94978a011401311efe603/frameset.htm]
    And the nice way to check if your condition block is taken into the account is simple check like 1 = 2.
    If this works and you receive page break than all you need is find errors in your condition syntax, otherwise the problem is somewhere else.
    Regards,
    Petr Perstnev

  • Subtotal in PDF form

    Hello,
    I need to know how to write a script in PDF form in every column and subtotal.
    I use these code but it doesn't work.
    var i = 0
    var p = $layout.page(ref($))
    var d = 0
    var qnt = 0.000
    for i = 0 upto (Main.table.DataOject.all.length - 1) step 1 do
      d = $layout.page(ref(Main.table.DataObject<i>.POSNR))
      if ( d == p ) then
           Main.table.subtotal.SUBNET  = Main.table.subtotal.SUBNET + Main.table.DataObject<i>.KZWI3
      elseif ( d > p ) then
        break
      endif
    endfor

    Hello,
    the recommended solution is to do this in backend (add a row into the table of rows, add a column which will be hidden in the form, where there will be something like 'X' if the form is a subtotal, based on the 'X' mark you can change the row color for example). Or you can do that in the form using scripting but that is not very friendly.
    Regards Otto
    p.s.: note there is Adobe forms forum under NetWeaver

  • FormCalc. Hiding the subtotal footer in PDF form

    Hi, LCD gurus!
    I've got a problem that I'm unable to solve for a couple of days.
    There is a PDF form (consignment note) with header, lots of positions and footer. The original task with it was to make the last position of the data table be on the same page with the form footer.
    I managed to do this by adding second table (consisting of 1 row), placed in subform together with form footer. The last position of the main table was dynamically hidden, it's content was copied to the second table.
    The subform didn't allow page breaks, so my task of placing page breaks before the last position of the form was completed. It was done by Adobe
    Now the only trouble is that it is necessary to have page footers with page total on every page. That's where the problem settled.
    If I create a main table footer (calculating the totals by FormCalc) with checkbox "Include footer in final page", I need to hide it when some positions of the main page are on the same page with the second (one-row) table. Of course, I set up the footer of the second table with the necessary calculations, but it doesn't matter at the moment. The problem is that I can't figure out, where is the "tail" of the main table located until the layout:ready event has come. After that I know the page of any table position, but it's too late to hide the footer - after layout:ready hiding the footer won't lift up the second table and there's an annoying blank line in that case.
    I tried another way - not checking "Include footer in final page". Then the footer on the pre-last page of the document doesn't appear in case this page is last for the main table (and then follows page break and the second table with form footer).
    So, my global question to the form developers is - is it possible somehow to get (at least appoximately) page of form elements BEFORE the layout:ready event?
    Or is it possible to make $.presence = "hidden" of the element after layout:ready and not having blank line instead of it?
    Thanx for your reading this stuff up to this

    Hi Reeha,
    In case you need to use any script you may prefer formCalc script, which is very easy to use. You can use any script out of the two as per your understanding and comfort level.
    If you require more technical information about FormCalc, refer to the Adobe XML Forms Architecture (XFA) Specification, version 2.4, available from:
    [http://partners.adobe.com/public/developer/xml/index_arch.html.]
    and
    [http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf]
    Hope this helps you
    Regards,
    Gaurav Bhardwaj

  • How does Adobe Forms Central base their automated page breaks when distributing to a PDF form?

    OR
    How can I define those page breaks before Adobe Forms Central created the PDF. I have attempted to "insert" a page break within the form; however, when distributing this form to be created as a PDF, the PDF is still placing the auto-generated page break wherever it wants.
    Is it possible to move these auto generated breaks once the PDF form is created?
    Thank you!

    Did you add the page breaks while in Web View or Page View? FormsCentral uses "web view" as the default, but uses the "page view" to show where the PDF will have page breaks. Go to the menu bar on the top right, select "view," and then select "page view." You  should be able to see page breaks here, and move them where you'd like them. It won't affect what people see on the web, just in the PDF.

  • Pdf form conditional checkboxes

    Hi.
    I'm building a pdf form in Acrobat 8 Professional. I want to add JavaScript to 3 checkboxes to achieve the following:
    if checkbox 1 or 2 is checked, uncheck checkbox 3; and if checkbox 3 is checked uncheck both 1 and 2.
    It seems straightforward, but I have not been able to find a solution either in the Acrobat guide nor online. I have no experience in Javascript other than copying and pasting, so I'm not sure I'm using the right language to search. If anyone can provide any guidance, I would greatly appreciate it.
    Thanks a lot!

    Well, a little bit late but thanks for this anyway. Very helpful.
    I've another question related to this matter. How can I make polish this code and apply to various groups of checkboxes without creating an endless list of variables?
    function Caselles()
    // Get a reference to each check box 
        var f1 = getField("C1"); 
        var f2 = getField("C2"); 
        var f3 = getField("C3"); 
        var f4 = getField("C4");
        var f5 = getField("C5");
        // Uncheck c2, c3 and c4 if c1 was selected/deselected 
        if (event.target === f1) {
            f2.value = "Off"; 
            f3.value = "Off";
            f4.value = "Off";
        // Uncheck c3 and c4 and check c1 when c2 was selected/deselected 
        if (event.target === f2) {
            f1.checkThisBox(0,true);
            f3.value = "Off";
            f4.value = "Off";
        // Uncheck c4 and check c1 and c2 when c3 was selected/deselected
         if (event.target === f3) {
              f1.checkThisBox(0,true);
              f2.checkThisBox(0,true);
              f4.value = "Off";
        // Check all when c4 was selected/deselected
         if (event.target === f4) {
              f1.checkThisBox(0,true);
              f2.checkThisBox(0,true);
              f3.checkThisBox(0,true);
    Thanks in advance!

  • PDF Form Subtotal per page

    Hello,
    Please help me how to code the subtotal per page of VBRP-KZWI3 im using PRD form where I put the code.
    Thanks

    Hi,
    Check the following link for subtotal per page.
    Adobe Help required:subtotal of amount per page in Adobe forms
    Regards,
    Raju.

  • Conditional break

    Hi,
    We use Adobe LiveCycle Designer ES2 9.0.1.0....
    We have a form which can create one letter per PDF. Now we want several letters per PDF, all with the same address but with different items.
    Problem
    What we already tried is to have a conditional brake. With this items are written on master page 3. But master page 3 should only show up with no items on it, then an address again and only afterwards the next items should appear.
    Our PDF should look like this:
    letter 1----
         Address
         Item1
         Item2
         Additional Page (master page 3)
    letter 2----
         Address (same Address as above)
         Item3
         Item4
         Additional Page
    letter 3----
         ..and so on
    Our data file xml contains the information for only one address and has the structure
         Address
         Items
              -Item 1
              -Item 2
              -Item n
    Our Form has the structure
         Master page 1: Start of a  letter.
              Body section shall contain Address and Items
         Master page 2: Overflow
              Body section shall contain  Items
         Master page 3: Additional Page at the end of (nearly) every letter.
              Body section shall contain  Nothing.
    Thanks and Regards
    Tobias

    The Problem is solved now:
         1. The address has to be moved from the content area of the master page 1 to the master page 1 itself.
         2. Two conditional breaks were added to the table which displays the items.
         a. The first one has
         -"To" = "Top of Master page 3" and
         -"leader" = "(None) and 
         -"when" =  the grouping condition for the items.
         b. The second has
         -"To" = "Top of Master page 1"
         To avoid that items are printed onto the Master page 3, the height of the content was set to 1 mm. So this page only shows up but the next items immediately flow over to master page 1.
         Regards
         Tobias

  • Published pdf form is unable to connect with database

    Hi Guys!
    I have created a PDF form using Adobe Live Cycle Designer which have some text fields namely RECORD and NAME. I have connected this form with a Database. When I enter a record in the RECORD number field the NAME field of this form has been populated with the help of XFA Script which is written on the exit event of the RECORD text field. When we publish this form, a new interactive PDF is created which works fine and populates the NAME field from the an SQL database but when I access this PDF form (which is located on a shared location) from some another location (not on the same machine where i designed this form) it is unable to connect to the database and does not work as expected.
    I think there is some thing i am missing for the database connectivity.
    If any body on this forum can help me out.
    thanks
    Here is the Script for the above form which i used to populate the NAME FIELD on the basis of enetered RECORD number.
    ----- Document.Page1.txt_MRN::exit: - (JavaScript, client) -----------------------------------------
    /* This dropdown list object will populate two columns with data from a data connection.
    sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.
    sColHiddenValue  - this is the hidden value column of the dropdown.  Specify the table column name used for populating.
    sColDisplayText  - this is the display text column of the dropdown.  Specify the table column name used for populating.
    These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.
    var sDataConnectionName = "DataSource";  // example - var sDataConnectionName = "MyDataConnection";
    var sColHiddenValue  = "RecordNum";   // example - var sColHiddenValue = "MyIndexValue";
    var sColDisplayText  = "Name";   // example - var sColDisplayText = "MyDescription"
    // Search for sourceSet node which matchs the DataConnection name
    var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    //var oDB = xfa.sourceSet.nodes.item(nIndex);
    var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
    oDB.open();
    oDB.first();
    // Search node with the class name "command"
    var nDBIndex = 0;
    while(oDB.nodes.item(nDBIndex).className != "command")
    nDBIndex++;
    // Backup the original settings before assigning BOF and EOF to stay
    var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
    var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");
    // Clear the list
    this.clearItems();
    // Search for the record node with the matching Data Connection name
    nIndex = 0;
    while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oRecord = xfa.record.nodes.item(nIndex);
    // Find the value node
    var oValueNode   = null;
    var oTextNode   =  null;
    var sRecordNum  =  $.rawValue;
    for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
    if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
      oValueNode = oRecord.nodes.item(nColIndex);
    else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)
      oTextNode = oRecord.nodes.item(nColIndex);
    var found= 0;
    while(!oDB.isEOF())
    if (oValueNode.value== sRecordNum)
      txt_FirstName.rawValue = oTextNode.value;
      txt_LastName.rawValue = oTextNode.value;
      found = 1;
      break;
      //this.addItem(oTextNode.value, oValueNode.value);
       oDB.next();
       if (found == 0)
        txt_FirstName.rawValue = "";
        txt_LastName.rawValue = "";
    // Restore the original settings
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");
    // Close connection
    oDB.close();

    Finally achived the database connectivity for the published pdf form developed in the Adobe LiveCycle Designer 8.0.
    There must be the same driver version of the DSN on both machines. The machine which published the form and the one accessing it.
    Use the Admin account to add the DSN on both machines.
    Get rid of the error: Connection for Source "DataConnectionName" failed because the environment is not trusted.
    Thanks
    AbdulHafeez

  • Pdf form with mulitple forms inside

    Hi
    I am working on a strange requirement. I have a selection screen in WD ABAP application and employee id is one of the selection parameter. When a user selects multiple employees BAPI gives WD employee headers and each Employee's transactional data in separate tables. Now requirement is something to get all of this data in a single PDF which will have employee header and Employee's transactional data followed by page break and same block should start for next employee.
    Employee 1 Header
    Employee Transactional data Table 1
    Employee 2 Header
    Employee Transactional data Table 2
    and so till the last employee.
    Please suggest if that;s possible in PDF and if yes how should I proceed.
    Thanks
    Umang

    hi,
    i think you will need to create a smartform and den it will open via your application in PDF form
    regards,
    Sahai.s

  • Web Dynpro as Callable object in GP using PDF Forms

    Hi All,
    I somehow want to integrate a user filling out a pdf form within a Guided Procedure. So far I have created a local web dynpro DC and I want to make it a Web Dynpro Callable Object (GP Interface). The problem is, I want the user to be able to see the PDF form when filling out the form. For example, if they had a role in the portal where they can invoke the Web Dynpro application with the pdf form, then when they click submit on the pdf they invoke the guided procedure...is this possible? This is so, I can use the web dynpro to do some data validation and call some bapis to get info, then submit this all to the GP. Is this achievable? I know how to do most things, I just want to know things like when is the "execute" and "getDescription" methods called? I want my execute( com.sap.caf.eu.gp.co.api.IGPExecutionContext executionContext ) method to call a bapi also. Is that possible? How do I automate a GP process when I click submit on the pdf form?
    Thanks in advanced
    TM

    Hi,
    You can integrate a PDF control in a Web Dynpro view. Refer the following links for that:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm">Example of the Use of an Interactive PDF Form (SAP Library - Web Dynpro for Java)</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/60/6fc10c6748479392101e09c9e8d33a/frameset.htm">Interactive Forms in Web Dynpro for Java</a>
    Also you can create Web Dynpro Java callable object in GP by implementing the IGPWebDynproCO interface. Refer the following links for that:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementing a Web Dynpro Callable Object which Implements the GP Interface</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814">Implementing a Web Dynpro Callable Object</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/fd/afb4429027da11e10000000a155106/frameset.htm">Implementing a Web Dynpro Component</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/de/8976417f2d5558e10000000a1550b0/frameset.htm">Implementing and Exposing a Web Dynpro as a Callable Object</a>
    You can start a GP process using the public API:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm">Starting and Terminating Processes Using the GP API (SAP Library - Creating Composite Applications)</a><a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1">Creating Interactive Forms in Web Dynpro for Java</a>
    Also you can start a GP process using Web Service:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm">Starting a Process Using Web Services (SAP Library - Creating Composite Applications)</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/93/27dc108cfc407fbf6c726151840001/frameset.htm">Starting and Terminating Processes Within a Composite</a>
    Refering the above links you'll get a fairly good idea how to integrate Adobe forms in WDP and how to start GP process programitically. My suggestion for your requirement would be if always you need to start the process after the user submits the Adobe form, then consider having the Adobe form as the first step for the process. In that case you don't need to start the process programitically. Whenever the user starts filling up the Adobe form the GP process will start. You can refer <a href="/people/dipankar.saha3/blog/2007/03/02/how-to-present-your-gp-processes-to-the-end-user">this blog</a> on how to start a GP process as an iview link in portal.
    Otherwise if based on certain conditions you need to start the process then you can either use the Java API or the web service to start the process from Web Dynpro. You should have the Adobe form embedded in Web Dynpro and on submit event you can check the conditions and start the process if required.
    Thanks,
    Dipankar

  • Issue with conditional breaks

    Hi Experts,
    I am working on conditoinal breaks in adobe.
    My requirement is: For a delivery item if i have 3 batched i have to print 3 forms with item data. Here the data of one batch can flow into multiple pages I had applied a conditional break on batch field at the item level of the table(designed with dragging the table into the layout.). this form contains Batch at header and footer. When the data fits in one page conditional breaks are working fine and i am getting 3 forms in the same spool as desired. But when there is more item data conditional breaks are not working properly.
    Issue like item data over flow on the footer and batches are not showing up properly according to the page breaks.
    Please help on this issue.
    Thanks,
    Anil

    Guys, Tell me if my question was not clear or need further information.

  • I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    Hi,
    You may open the original form in FormsCentral and toggle to “Page View” at the lower right corner. Adjust the page content to make sure no page breaks in this view.
    Thanks,
    Wenlan

Maybe you are looking for