Livecycle designer - dynamic table index

Hello,
I am new to adobe and java script and form calc neither. I need to be able to detect when the dynamic table will have more than 1 row.
On the form ready event I have coded using form calc:
if (this.parent.index >= "1") then
  data.formulaire.GAB_IT0008.Corps.BoiteInfoGenerique.DonnesInfotype0008.DonnesEntete2.c_SalaireAnnuel.P0008-ANSAL.access == "readOnly"
endif
But it does not work. Please see thye attached file for the image.
Any help? Thanks in advance.
Abel.

Not doable in LC 7.1 or 8.

Similar Messages

  • LiveCycle Designer dynamic images

    What route would i need to take to dynamically include images in a pdf page.  What i would like to do is have a user be able to upload screenshots and they be included in the pdf form.  I was able to manipulate the image field object by putting in an image in there programatically with Coldfusion, but I dont like the fact that when you click on the image field it prompts you to select a file etc.  Can this be disabled?  Also the image field wasnt dynamic.  Can i convert an image field into an image type programatically as well?
    Just trying to figure out LiveCycle.
    Thanks

    Not doable in LC 7.1 or 8.

  • Flowable Tables in LiveCycle Designer as Dynamic PDFs

    Hi just wondering if in a table under Row 1 I can add an additional field and it will still be flowable (see attached)
    If there are multiple items that need to be added I want the user to be able to add additional notes that is also expandable but I want it to remain as a list format like the attached - is this possible?

    Lorain,
    I am not sure if this can be done with LiveCycle Designer,  we have done this with a product that works with LiveCycle.  You can feed the XML data to DocOrigin and it supports this for output to PCL, PS, PDF and HTML.  Not sure if it this will help you.  You can also convert the XDP to use it in the DocOrigin Designer.   DocOrigin will not replace LC Forms but can be a nice addition for generation of the output for print, email or web.
    Here is a sample of the output  The table has a detail line item followed by 1 to X descriptive comments.  Another nice feature is the ability to alter the background color of every other line item, this is done by checking a box.   Support for Widows and Orphans is also supported across pages and pagination is automatic.   You can also include images in the detail line, however we had to keep the image small in this case because we do not know in advance how may comments are going to be included with any given line item.

  • How to populate dynamic table in Adobe Livecycle form with cfpdfform?

    Hello all,
    after two days search on the above topic without results I hope someone here can help me.
    The problem:
    I have an Adobe PDF form created with Adobe Livecycle Designer that has a dynamic table inside it. The table Table1 consists of a Header Row with 4 cells of text and a data row Row1 with four cells each one having a Textfield Cell1, Cell2,Cell3 and Cell4.
    Table1 sits inside a subform mytable. The subform is made to flow and the Row1 has the Binding Repeat Row for Each Data Item checked.
    Everything is enclosed within the standard subform form1.
    Whe I use the following code, I supposed that the table should have two rows..because it is said it will be dynamic:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <cfpdfform action="populate" source="test.pdf" destination="testout.pdf" overwrite="yes" >
    <cfpdfsubform name="form1">
      <cfpdfsubform name="mytable">
        <cfpdfsubform name="Table1">
          <cfpdfsubform name="Row1">
            <cfpdfformparam name="Cell1" value="1">
            <cfpdfformparam name="Cell2" value="2">
            <cfpdfformparam name="Cell3" value="3">
            <cfpdfformparam name="Cell4" value="4">
          </cfpdfsubform>
          <cfpdfsubform name="Row2">
            <cfpdfformparam name="Cell1" value="5">
            <cfpdfformparam name="Cell2" value="6">
            <cfpdfformparam name="Cell3" value="7">
            <cfpdfformparam name="Cell4" value="8">
          </cfpdfsubform>
        </cfpdfsubform>
      </cfpdfsubform>
    </cfpdfsubform>
    </cfpdfform>
    <cfpdfform action="read" source="testout.pdf" result="testout" />
    <cfdump var="#testout#">
    </body>
    </html>
    What happes is:
    The testout.pdf displays just one row,with the values 1,2,3,4 the second row is only visible when I export the data as xml but not within the PDF.
    Please can someone enlighten me?
    Thanks and regards
    Gilbert

    When populating your pdf fields, you can loop through all the records in a query like so...
       <cfloop from="1" to="#query1.recordCount#" index="i">
                <cfpdfformparam name="txtField1_#i#" value="#query1.Field1[i]#">
                <cfpdfformparam name="txtField2_#i#" value="#query1.Field2[i]#">
      </cfloop>
    This will handle two rows or thirty rows just the same.  In this case my fields in the pdf have the row # as a suffix.

  • Dynamic Tables in LiveCycle

    Greetings,
    I have a form that I am creating that is using dynamic tables with an Add Row button as well as a Delete Row Button.  The form looks normal when it is opened in LiveCycle Designer and Acrobat.  The issue is when the form is saved using the Save As function.  When the Save As function is used, the table adds a blank row.  And every subsequent Save As adds another blank row.  I am using the following JavaScript functions for my Add/Delete buttons.  Thank you in advance for your help!
    Add -  Table2.Row1.instanceManager.addInstance();
    Delete - Table2.Row1.instanceManager.removeInstance(this.parent.parent.index);
    Save AS
    DesignerAcrobat

    Lorain,
    I am not sure if this can be done with LiveCycle Designer,  we have done this with a product that works with LiveCycle.  You can feed the XML data to DocOrigin and it supports this for output to PCL, PS, PDF and HTML.  Not sure if it this will help you.  You can also convert the XDP to use it in the DocOrigin Designer.   DocOrigin will not replace LC Forms but can be a nice addition for generation of the output for print, email or web.
    Here is a sample of the output  The table has a detail line item followed by 1 to X descriptive comments.  Another nice feature is the ability to alter the background color of every other line item, this is done by checking a box.   Support for Widows and Orphans is also supported across pages and pagination is automatic.   You can also include images in the detail line, however we had to keep the image small in this case because we do not know in advance how may comments are going to be included with any given line item.

  • Itextsharp using livecycle form with dynamic table

    Hello all, after searching Google for the past two days and not able to find any relevant information, hence this post.
    Some background:
    1) Created a pdf form using Adobe Livecycle designer 9.
    2) It is a dynamic form with textboxes and a table configured to repeat rows dynamically.
    3) Testing form using xml data within designer works just fine.
    Requirement:
    Need to populate form dynamically using data from database.
    Solution:
    Found iTextSharp (free assembly) which assists with populating existing pdf form.
    Issue
    This assembly works without any issue when populating textfields (see sample code below). The problem I am facing is with the dynamic table where in I am not able to reference rows greater than 1. Since the pdf template contains a table with just one row referencing the first row using acrofield works.
    I was under impression since this is a dynamic table with repeat enabled, in asp.net if I referenced row2 onwards the table would grow automatically. Which I have come to realize is not going to be possible.
    So I am looking for ideas on how I can accomplish this. I wish this could have been a fixed row table then reference rows would have been easier. However in this situation the table has to be dynamic.
    Any ideas thoughts would be appreciated.
    Below is my sample code:
    PdfStamper ps = null;
    try {
    // read existing PDF document
    PdfReader r = new PdfReader(
    // optimize memory usage
    new RandomAccessFileOrArray(Request.MapPath("itext.pdf")), null
    ps = new PdfStamper(r, Response.OutputStream);
    // retrieve properties of PDF form w/AcroFields object
    AcroFields af = ps.AcroFields;
    // fill in PDF fields by parameter:
    // 1. field name
    // 2. text to insert
    af.SetField("txtCompany", "Company name");
    af.SetField("txtDateDepartLocation", "date depart location");
    af.SetField("txtDate","test date");
    af.SetField("txtServiceNumber", "Service number");
    af.SetField("Table2.Row1.Cell1", "1test");  this works
    //doesnt work!!!
    af.SetField("Table2.Row2.Cell1", "1test");
    af.SetField("Table2.Row3.Cell1", "1test");
    // make resultant PDF read-only for end-user
    ps.FormFlattening = true;
    // forget to close() PdfStamper, you end up with
    // a corrupted file!
    ps.Close();
    catch { }
    finally { if (ps != null) ps.Close(); }

    Hi FourEyes;
    Try using this.
    Select Col1, Col2, Col3
    into :P1_Field1, :P1_Field2, :P1_Field3
    from Your_Table
    Where (your conditions);

  • Livecycle userform with dynamic table

    Hi Everyone,
    New to Livecycle Designer and was hoping this is possible - Can you have a PDF userform with a dynamic table below it?...
    Basically the user fills out a userform then clicks an ADD button - this populates a dynamic table below the userform then clears/resets the userform - as the records fill the table an EDIT button appears in the last column so that if the user makes an error with a record they could click the EDIT button, this would bring the record back into the userform fields so they could change the field(s) they made the error in then a SAVE button would replace the ADD button in this instance, clicking SAVE then changes the record and clears/resets the userform ready for more entries.
    At the bottom of the PDF there would be an EXPORT button which attaches the table as a csv or tab-delimited text file to an email message...
    If someone could point me in the right direction it would be appreciated - I have googled and searched the forums for an answer but they mostly relate to importing data into a dynamic table from a database or xml file... I was hoping to directly populate the table with the userform.
    I also have a PDF example which illustrates what I am trying to achieve... but seems you cannot attach to a post... I can email it if someone has a solution, but needs to see it visually.
    Cheers

    You don't know the names of your columns? hmm you do, because before you created dynamic table you had to create field catalog, so the structure and column names of newly (dynamically) created table will be the same like defined in the field catalog.
    The last loop also does not look good, in my opinion should be something like:
    LOOP AT lt_datatable +(my first table)+ ASSIGNING <ls_data4>.
        AT NEW pernr.
          APPEND initial line to <fs_1> assigning <fs_2>.
          <fs_2>-pernr = <ls_data4>-pernr.
        ENDAT.
        ASSIGN COMPONENT <ls_data4>-wage_type OF STRUCTURE <fs_2> TO <fs_5>.
        <fs_5> = <ls_data4>-amount.
    ENDLOOP.
    also keep in mind that number of calls of method cl_alv_table_create=>create_dynamic_table is limited to 36 (?) calls within one program session because it uses dynamic subroutine pool behind so you will have short dump if you will execute that 37 times.

  • LiveCycle Designer 8.0 Table Header bug

    My dynamic form (8.0 dynamic XML form) has strange behavior with table headers.
    When rows are dynamically added to the table to make the table expand to a third page, the table headers become unstable. Once the table expands to the third page, if a row is added or removed, a new table header is added to the second page so the second page ends up having extra table headers.
    I have been using LiveCycle Designer 8.0 that came with Acrobat Professional 8.0.
    I have been using the Purchase Order.pdf, that came with Designer 8.0, as an example to create tables that can have rows added or removed dynamically. I checked the Purchase Order.pdf (8.0), and it also has the same buggy, table-header behavior.
    I then downloaded Acrobat Professional 9.0 which comes with LiveCycle Designer 8.2 and checked the Purchase Order.pdf that came with it.
    The Purchase Order.pdf (8.2) works correctly.
    I then compared the timestamps of the Purchase Order.pdf (8.0) and Purchase Order.pdf (8.2) and their XML source.
    The timestamps are different, Purchase Order.pdf (8.0) -10/17/2006 11:16 PM, Purchase Order.pdf (8.2) -5/23/2008 1:16 AM.
    The main difference in the XML source between the two versions is their
    Overflow-related tag.
    The Purchase Order.pdf (8.0) has
    The Purchase Order.pdf (8.2) has .
    I dont know about Designer 8.1, but the table-header bug is definitely fixed in Designer 8.2.
    Could someone please tell me what I need to install to fix this bug? Is there a service pack for Designer 8.0 or do I have to install Designer 8.2?
    I have seen workarounds for this bug in the forum, but creating a master page containing the table header for each table in the form seems to be an excessive hack.
    Thanks,
    Mike

    There is no patch .....if it is fixed in 8.2 then you will have to use that.

  • Generate a subtotals table in Adobe LiveCycle Designer

    Hi everybody.
    I'm having troubles with a template named Customer Invoice (of Application and user management > Business Flexibility > Form Template Maintenance), the case is I modified the template to show a subtotals table that I generate by code (FormCalc language) in Adobe LiveCycle Designer, but the problem is that the code of template just works with some invoices. I don't know what's happening, I hope someone can helps me with this topic.
    I'm attaching screenshots I hope it can help you to understand me, in the screenshots I'm marking the table I generated.
    My code is (Language FormCalc ):
    var longitud = tblTable.all.length
    var aux
    var acum = ""
    var auxIndex = tblTable.all.length
    for i=0 upto longitud - 1 step 1 do
        if(i == 0)then
                Table4.Row1[i].Cell1.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.frmHiddenItem.frmQuantity.decQuantity"))
                Table4.Row1[i].CellMesure.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.frmHiddenItem.frmQuantity.txtQuantityUnit"))
                Table4.Row1[i].Cell2.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.colDescription"))
                Table4.Row1[i].Cell3.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.tblNetValue.rowNetValue.decHiddenNetAmount"))
                Table4.Row1[i].CellCurrency.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.tblNetValue.rowNetValue.txtNetAmountCurrency"))
                Table4.Row1[i].Cell0.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.colProduct"))
            else
                var bandera = 0
                for j=0 upto Table4.Row1.all.length - 1 step 1 do
                    if (tblTable[i].rowItem.colProduct.rawValue eq Table4.Row1[j].Cell0.rawValue ) then
                        Table4.Row1[j].Cell3.rawValue =Sum(0.00, Table4.Row1[j].Cell3, tblTable[i].rowItem.tblNetValue.rowNetValue.decHiddenNetAmount)
                        Table4.Row1[j].Cell1.rawValue =Sum(0.00 , Table4.Row1[j].Cell1, tblTable[i].rowItem.frmHiddenItem.frmQuantity.decQuantity)
                        if(xfa.resolveNode(concat("tblTable[",i , "].rowItem.colDescription")) <> "" or xfa.resolveNode(concat("tblTable[",i , "].rowItem.colDescription")) <> null) then
                            Table4.Row1[j].Cell2.rawValue =concat( xfa.resolveNode(concat("tblTable[", i , "].rowItem.colDescription")))
                        endif
                        bandera = 1
                        break
                    endif
                endfor
                if (bandera == 0) then
                    Table4.Row1.instanceManager.addInstance(1).Cell1.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.frmHiddenItem.frmQuantity.decQuantity"))
                    Table4.Row1[i].CellMesure.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.frmHiddenItem.frmQuantity.txtQuantityUnit"))
                    Table4.Row1[i].Cell2.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.colDescription"))
                    Table4.Row1[i].Cell3.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.tblNetValue.rowNetValue.decHiddenNetAmount"))
                    Table4.Row1[i].CellCurrency.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.tblNetValue.rowNetValue.txtNetAmountCurrency"))
                    Table4.Row1[i].Cell0.rawValue = xfa.resolveNode(concat("tblTable[",i,"].rowItem.colProduct"))
                endif
            endif
    endfor
    Thank you very much.
    Best regards.
    Sincerely.
    Ismael Lara

    Hi Ismael,
    as far as I can see there might be a mistake in the code itself. Did you check the tablerows you compare here?
    I think you might have unexpected values at here:
    tblTable[i].rowItem.colProduct.rawValue eq Table4.Row1[j].Cell0.rawValue
    This might cause your unexpected result. Your results are never higher than expected, am I right?
    ~Florian

  • How to assign local variable to global variable dynamically in adobe livecycle designer 7.1

    Hi All,
    i want to assign my textfield value to global variable dynamically.so that where ever i want , i will access my global variable.so it is possible in adobe livecycle designer 7.1. kindly suggest me method.Thanks in advance.
    Thanks & Regards
    Ganesh

    Please remove all adobe livecycle designer versions from your local pc.
    restart your pc to be sure, that all temp data is deleted.
    download the newest ald version from service.sap.com and install it.
    have fun with developing adobe forms with sap transaction sfp.

  • Create a Table of Contents in LiveCycle Designer

    Hi Everyone,
    Can any one please show me how to create a form with table of contents (TOC). I have a form that contains 8 pages with 8 sections and the customer want
    to have a TOC so they can just click on it and it will directly go to a specific section without scrolling down of the form. They want it to work like a TOC that
    people used in Microsoft Office. Is it possible to have it done in LiveCycle Designer? If so, could anyone please show me how to create it or if you have any
    sample please post it on this forum. Any advise/help would be appreciated.
    Thanks in advance,
    Han Dao

    Hi,
    You can control this in the File / Form Properties  and PDF Security tab.
    Select "Use a password to open" and then from the drop down select an appropriate level of control for the users. For example "Commenting" includes stamps, which is what you are seeing on your form.Setting the security to "Filling in only" will prevent the behaviour you are seeing.
    This will require you to set a passowrd, which you will have to input everytime uou open the form in LC. Therefore it is worth setting this towards the end of development.
    Good luck,
    N.

  • Read Table ITAB with key Dynamic Value index 1

    Here is sample Intenral table
    Columnname-C01 / C02 / C03
    Value-123 / 456 /789
    I would like to search value of the internal table according to dynamic value given by the code.
    i.e.
    read table ITAB with key <Dynamic Value> index 1.

    Hi,
    Apart from read, you can also use <b>SEARCH</b> statement.
    Syntax
    SEARCH
    Searches for strings.
    Syntax
    SEARCH <f>|<itab> FOR <g> [ABBREVIATED]
                              [STARTING AT <n1>]
                              [ENDING AT <n2>]
                              [AND MARK]
                              [IN BYTE MODE|IN CHARACTER MODE].
    Searches the field <f> or table <itab> for the string in the field <g>. The result is stored in SY-FDPOS. The additions let you hide intermediate characters, search from and to a particular position, and convert the found string into uppercase. In Unicode programs, you must specify whether the statement is a character or byte operation, using the IN BYTE MODE or IN CHARACTER MODE (default) additions.
    Hope this information is useful to you.
    Regards,
    Saumya

  • LiveCycle Designer 8 Saving Dynamic Field Problem

    Just updated to LiveCycle Designer 8 to get around the issue with my users not being able to save the PDF form data. Now my users can save the data using Acrobat Reader 8 but my dynamic fields are not working correctly.
    I have several fields that when you click a certain radio button or check a certain box, a previously invisible text field becomees visible. If one of those boxes is checked and data is entered in the now visible text field, then the users saves the form and reopens it, the data is saved but the field is invisible. Viewing the XML output confirms that the data is still there. When the form is reopened the checkbox that makes the field visible is still checked. But to see that data entered in the text field, you have to uncheck and then recheck the box to get the invisible field to become visible once more. Any idea on how to correct this "feature"?
    Thanks, Debra

    Hi Debra,
    To correct this 'feature', go in Form Properties > Defaults tab, set the Preserve Scripting Changes To Form When Saved option to Automatically.
    To correctly using Designer 7.x, youll have to write some script to achieve the same result. Currently, you have a script setting the fields state. All you need is to run the same script when the form is opened. In the example below, a form:ready script will execute the change event script when the form is opened. You can use the docReady event as well.
    For example:
    RadioButtonList: change event
    if (this.rawValue == "1")
    TextField1.presence = "visible";
    else
    TextField1.presence = "invisible";
    RadioButtonList: form:ready event
    this.execEvent("change");
    Hope this helps,
    Hélène
    Adobe Systems

  • Java Library for dynamic PDF form creation similar to LiveCycle Designer

    Hi
    I have a requirement as below :
    Requirement :  I need to create a dynamic PDF form with a barcode of type PDF417. Where a user can fill the form offline and after click on some button it will save the form offline and generate a barcode in the same PDF. Later on usaer can take a printout or send the saved pdf as it is.
    Currently I am able to create such pdf from using LiveCycle Designer. But I need to create it manually using designer and then need to apply Reader Extension on it using livecycle server.
    I want to do this programatically. I would like to create a similar form using some Java Library.
    Is it possible to create it dynamicaly(using programs)? how ?
    Does any one know how to acheive this ?
    Can anyone help me please ?
    Thank you very much in advance.

    I heard about LiveCycle ES3 server and was wondering if it could be of any use in my scenario. Can some one explain how to use jar files in standalone application .  I explored the  livecycle forms api but could not figure out how it may be used ?

  • Sum of Values from previous rows in a dynamic table

    Hello,
    I have a dynamic table has multiple rows (added dynamically via a button).  One column in the table is a Quantity column.  Another is a Total column.  We do not want to keep a running total, but only wish to display a total when the rest of the cells in that row are emty and the previous row(s) has/have values in the Quantity column.  The Total is the sum on the Quatnities up to a blank row.  Below is a sample.  How do I get teh value of the Quantities in the previous rows?
    Quantity
    Total
    5
    8
    12
    25
    7
    27
    34
    22
    22
    Another option might be to put the Total in the last row with data as opposed to the row below the data.
    Any ideas?
    Regards,
    Karl

    The script is written to achive your requirement (i.e. the second approach you have mentioned)
    You can either contact me at [email protected] to get the sample form created.
    Or the following is the XML Source of the form. Copy the entire content in XML source view of your form and see the result.
    <?xml version="1.0" encoding="UTF-8"?>
    <?xfa generator="AdobeLiveCycleDesignerES_V9.0.0.0.20091029.1.612548" APIVersion="3.1.9277.0"?>
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2012-02-28T14:04:54Z" uuid="2c561cdf-3377-4e84-9a89-51e740bb2fea">
    <template xmlns="http://www.xfa.org/schema/xfa-template/2.8/">
    <?formServer defaultPDFRenderFormat acrobat9.0dynamic?>
    <subform name="form1" layout="tb" locale="en_US" restoreState="auto">
    <pageSet>
    <pageArea name="Page1" id="Page1">
    <contentArea x="0.25in" y="0.25in" w="197.3mm" h="284.3mm"/>
    <medium stock="a4" short="210mm" long="297mm"/>
    <?templateDesigner expand 1?></pageArea>
    <?templateDesigner expand 1?></pageSet>
    <subform w="197.3mm" layout="tb">
    <subform name="Subform1" w="190.5mm" h="25.4mm">
    <field name="Button1" y="15.875mm" x="60.325mm" w="28.575mm" h="6mm">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Myriad Pro"/>
    <caption>
    <value>
    <text>Add Row</text>
    </value>
    <para vAlign="middle" hAlign="center"/>
    </caption>
    <border hand="right">
    <?templateDesigner StyleID apbx2?>
    <edge stroke="raised"/>
    <fill/>
    </border>
    <bind match="none"/>
    <event activity="click" name="event__click">
    <script contentType="application/x-javascript">
    try
    Subform2.Table1._Row1.addInstance(1);
    //for(var i=0;i&lt;Subform2.Table1._Row1.count;i++)
    //xfa.resolveNode("Subform2.Table1.Row1["+i+"].Total").execEvent("exit");
    }catch(e)
    app.alert(e)
    </script>
    </event>
    </field>
    <?templateDesigner expand 1?></subform>
    <subform name="Subform2" w="196.85mm">
    <subform name="Table1" layout="table" columnWidths="55.916mm 44.47mm" x="38.1mm" y="12.7mm">
    <border>
    <edge/>
    </border>
    <subform layout="row" name="HeaderRow" id="HeaderRow_ID">
    <assist role="TH"/>
    <draw h="10mm" name="Cell1">
    <border>
    <edge/>
    <corner thickness="0.1778mm"/>
    </border>
    <ui>
    <textEdit/>
    </ui>
    <value>
    <text>Quantity</text>
    </value>
    <font typeface="Myriad Pro"/>
    <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
    <para vAlign="middle" hAlign="center"/>
    </draw>
    <draw h="10mm" name="Cell2">
    <border>
    <edge/>
    <corner thickness="0.1778mm"/>
    </border>
    <ui>
    <textEdit/>
    </ui>
    <value>
    <text>Total</text>
    </value>
    <font typeface="Myriad Pro"/>
    <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
    <para vAlign="middle" hAlign="center"/>
    </draw>
    <border>
    <edge presence="hidden"/>
    </border>
    <occur max="-1"/>
    <?templateDesigner expand 1?></subform>
    <subform layout="row" name="Row1">
    <assist role="TR"/>
    <field name="Quantity" w="55.916mm" h="9.317mm">
    <ui>
    <numericEdit>
    <border presence="hidden">
    <?templateDesigner StyleID aped0?></border>
    <margin/>
    </numericEdit>
    </ui
    ><
    font typeface="Myriad Pro"/><
    margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/><
    para vAlign="middle"/><
    border><
    edge/><
    corner thickness="0.1778mm"/></
    border></
    field><
    field name="Total" w="44.47mm" h="9.317mm" access="readOnly"><
    ui><
    numericEdit><
    border presence="hidden"> 
    <?templateDesigner StyleID aped0?>
    </border><
    margin/></
    numericEdit></
    ui><
    font typeface="Myriad Pro"/><
    margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/><para vAlign="middle"/>
    <border>
    <edge/>
    <corner thickness="0.1778mm"/>
    </border>
    <calculate>
    <script contentType="application/x-javascript">
    try
    var nextRow = xfa.resolveNode("Subform2.Table1.Row1["+(this.parent.instanceIndex+1)+"]"); // Next row of the table
    if((nextRow==null || nextRow.Quantity.rawValue == null || nextRow.Quantity.rawValue=="") &amp;&amp; Quantity.rawValue!=null) // If there is no more rows OR the next row don't contain any Quantity value
    var subTotal = 0;
    for(var j=this.parent.instanceIndex;j&gt;=0;j--) // Loop until the previous row has empty value OR reach start of row Index (i.e. 0)
    var prevObj = xfa.resolveNode("Subform2.Table1.Row1["+j+"].Quantity"); // locate the previous row's Quantity object
    if(prevObj.rawValue == null || prevObj.rawValue=="")
    break; // if blank value found, skip the loop
    subTotal+= prevObj.rawValue;
    this.rawValue = subTotal; // Update the Total value
    }else
    this.rawValue = null; // Clear the total value
    }catch(e)
    app.alert(e)
    </script>
    </calculate>
    </field>
    <border>
    <edge presence="hidden"/>
    </border>
    <occur max="-1"/>
    <?templateDesigner expand 1?></subform>
    <keep intact="contentArea"/>
    <?templateDesigner rowpattern first:1, next:1, firstcolor:f0f0f0, nextcolor:ffffff, apply:0?>
    <overflow leader="HeaderRow"/>
    <?templateDesigner expand 1?></subform>
    <?templateDesigner expand 1?></subform>
    <?templateDesigner expand 1?></subform>
    <proto/>
    <desc>
    <text name="version">9.0.0.0.20091029.1.612548.606130</text>
    </desc>
    <?templateDesigner expand 1?></subform>
    <?templateDesigner DefaultPreviewDynamic 1?>
    <?templateDesigner DefaultRunAt client?>
    <?templateDesigner Grid show:1, snap:1, units:0, color:ff8080, origin:(0,0), interval:(125000,125000)?>
    <?templateDesigner FormTargetVersion 28?>
    <?templateDesigner DefaultLanguage JavaScript?>
    <?acrobat JavaScript strictScoping?>
    <?templateDesigner Zoom 62?>
    <?templateDesigner Rulers horizontal:1, vertical:1, guidelines:1, crosshairs:0?>
    <?templateDesigner SaveTaggedPDF 1?>
    <?templateDesigner SavePDFWithEmbeddedFonts 1?></template>
    <config xmlns="http://www.xfa.org/schema/xci/2.8/">
    <agent name="designer">
    <!-- [0..n] -->
    <destination>pdf</destination>
    <pdf>
    <!-- [0..n] -->
    <fontInfo/>
    </pdf>
    </agent>
    <present>
    <!-- [0..n] -->
    <pdf>
    <!-- [0..n] -->
    <fontInfo/>
    <version>1.7</version>
    <adobeExtensionLevel>3</adobeExtensionLevel>
    </pdf>
    <xdp>
    <packets>*</packets>
    </xdp>
    </present>
    </config>
    <localeSet xmlns="http://www.xfa.org/schema/xfa-locale-set/2.7/">
    <locale name="en_US" desc="English (United States)">
    <calendarSymbols name="gregorian">
    <monthNames>
    <month>January</month>
    <month>February</month>
    <month>March</month>
    <month>April</month>
    <month>May</month>
    <month>June</month>
    <month>July</month>
    <month>August</month>
    <month>September</month>
    <month>October</month>
    <month>November</month>
    <month>December</month>
    </monthNames>
    <monthNames abbr="1">
    <month>Jan</month>
    <month>Feb</month>
    <month>Mar</month>
    <month>Apr</month>
    <month>May</month>
    <month>Jun</month>
    <month>Jul</month>
    <month>Aug</month>
    <month>Sep</month>
    <month>Oct</month>
    <month>Nov</month>
    <month>Dec</month>
    </monthNames>
    <dayNames>
    <day>Sunday</day>
    <day>Monday</day>
    <day>Tuesday</day>
    <day>Wednesday</day>
    <day>Thursday</day>
    <day>Friday</day>
    <day>Saturday</day>
    </dayNames>
    <dayNames abbr="1">
    <day>Sun</day>
    <day>Mon</day>
    <day>Tue</day>
    <day>Wed</day>
    <day>Thu</day>
    <day>Fri</day>
    <day>Sat</day>
    </dayNames>
    <meridiemNames>
    <meridiem>AM</meridiem>
    <meridiem>PM</meridiem>
    </meridiemNames>
    <eraNames>
    <era>BC</era>
    <era>AD</era>
    </eraNames>
    </calendarSymbols>
    <datePatterns>
    <datePattern name="full">EEEE, MMMM D, YYYY</datePattern>
    <datePattern name="long">MMMM D, YYYY</datePattern>
    <datePattern name="med">MMM D, YYYY</datePattern>
    <datePattern name="short">M/D/YY</datePattern>
    </datePatterns>
    <timePatterns>
    <timePattern name="full">h:MM:SS A Z</timePattern>
    <timePattern name="long">h:MM:SS A Z</timePattern>
    <timePattern name="med">h:MM:SS A</timePattern>
    <timePattern name="short">h:MM A</timePattern>
    </timePatterns>
    <dateTimeSymbols>GyMdkHmsSEDFwWahKzZ</dateTimeSymbols>
    <numberPatterns>
    <numberPattern name="numeric">z,zz9.zzz</numberPattern>
    <numberPattern name="currency">$z,zz9.99|($z,zz9.99)</numberPattern>
    <numberPattern name="percent">z,zz9%</numberPattern>
    </numberPatterns>
    <numberSymbols>
    <numberSymbol name="decimal">.</numberSymbol>
    <numberSymbol name="grouping">,</numberSymbol>
    <numberSymbol name="percent">%</numberSymbol>
    <numberSymbol name="minus">-</numberSymbol>
    <numberSymbol name="zero">0</numberSymbol>
    </numberSymbols>
    <currencySymbols>
    <currencySymbol name="symbol">$</currencySymbol>
    <currencySymbol name="isoname">USD</currencySymbol>
    <currencySymbol name="decimal">.</currencySymbol>
    </currencySymbols>
    <typefaces>
    <typeface name="Myriad Pro"/>
    <typeface name="Minion Pro"/>
    <typeface name="Courier Std"/>
    <typeface name="Adobe Pi Std"/>
    <typeface name="Adobe Hebrew"/>
    <typeface name="Adobe Arabic"/>
    <typeface name="Adobe Thai"/>
    <typeface name="Kozuka Gothic Pro-VI M"/>
    <typeface name="Kozuka Mincho Pro-VI R"/>
    <typeface name="Adobe Ming Std L"/>
    <typeface name="Adobe Song Std L"/>
    <typeface name="Adobe Myungjo Std M"/>
    </typefaces>
    </locale>
    </localeSet>
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.2.1-c043 52.398682, 2009/08/10-13:00:47 ">
    <
    rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><
    rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about=""><
    xmp:MetadataDate>2012-02-28T14:04:54Z</xmp:MetadataDate><
    xmp:CreatorTool>Adobe LiveCycle Designer ES 9.0</xmp:CreatorTool></
    rdf:Description><
    rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about=""><
    pdf:Producer>Adobe LiveCycle Designer ES 9.0</pdf:Producer></
    rdf:Description><
    rdf:Description xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" rdf:about=""><
    xmpMM:DocumentID>uuid:2c561cdf-3377-4e84-9a89-51e740bb2fea</xmpMM:DocumentID></
    rdf:Description><
    rdf:Description xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" rdf:about=""><
    desc:version rdf:parseType="Resource"><
    rdf:value>9.0.0.0.20091029.1.612548.606130</rdf:value><
    desc:ref>/template/subform[1]</desc:ref></
    desc:version></
    rdf:Description></
    rdf:RDF></
    x:xmpmeta></xdp:xdp>

Maybe you are looking for

  • Convert Float to Char

    Hi, I'm having problem when converting a float variable to char - it seems like the float value is automatically rounded into the char variable, but I don't want that. Does anybody know a wafunction or a way of avoiding this convertion round? Thanks,

  • Video Freezes and Stays Frozen

    Hello, Every single time I use Skype my video freezes after only a few seconds. Sometimes it will unfreeze after a few minutes and sometimes not at all. I am currently using Skype 6.21 and have a logitech c270. The c270 works fine with my laptop. I w

  • AD FS Fails

    I did setup AD FS but in the dashboard under services it says adfssrv is "Start Pending". Looking at the Local Server services I have 5 failing: User Access Logging Service, UALSVC, Stopped Diagnostic Policy Service, DPS, Stopped Active Directory Fed

  • Flash CS5 SWF File not functioning in Captivate 5

    Hi, I have an Interactive SWF File created in Flash CS5 that has an Intro screen with a button to continue etc and it opens to a presentation with several buttons, and works fine. I bring the SWF file into Captivate 5. It shows fine in the Slide, but

  • Documentation for objects, properties, methods

    Hi there, I'm sure this is quite simple, but I can't find it. Where do I find documentation for properties and methods of objects? Specifically, I am looking for the properties and methods of FindGrepPreferences. I have the Indesign SDK and am lookin