Dynamic tables (subforms)

I have a table that I want to have rows hidden that only become visible if the user checks a box. 
I'm running into some major problems:
1. Rows cannot be wrapped in subforms.
2. I wrapped each individual cell in a subform-there HAS to be a better way to do this.
3. I entered JS if/else statements in each cell subforum's calculate event. 
4. The overall table subform is set to flowed.
Now, this table has 4 rows. 2 of which should always be visible (row 1 and 3).  No problem there.  For some reason, I cannot get both row 2 and row 4 to appear.  If I preview PDF view, only the first checkbox I check will affect it's corresponding row.  So if I check checkbox 2, row 2 pops up between rows 1 and 3.  But checking checkbox 4 does nothing.  Vice versa if I check checkbox 4 first.  So i don't think it's a detail error in the coding.  I think wrapping cells in subforms wasn't the correct procedure.
*when I mentioned "row" in the above paragraph, I was talking about 2 cells that make up that row, wrapped in subforms that have identical JS coding.
I would post an example, but it should be easier for you to give me a kick in the right direction or show a previous similar example.
Thanks for any help!

Hi,
First off I would not go down the route of inserting subforms into row cells, nor have script in the calculate event trying to change the presence property.
You can change the presence of the Row directly. For example the following in the click event of the checkbox should work (subject to changing the references to suit your form):
if (this.rawValue == true) {
     Table1.Row2.presence = "visible";
     Table1.Row4.presence = "visible";
else {
     Table1.Row2.presence = "hidden";
     Table1.Row4.presence = "hidden";
There are examples here: http://assure.ly/gk8Q7a and http://assure.ly/fItII5.
Hope that helps,
Niall

Similar Messages

  • Tab Order of Dynamic Table or subform

    Hi,
    I have a page with few subforms. At this subforms are dynamic tables or dynamic subforms. How does the tab order works in this kind of layout.
    Some time I have a few subforms or tables group together when activiate the tab order form the menu [View->Tab order]. I have the tab order arranged for a dynamic subform. When I preview and add a few instance of the subform (call it subform A), the first instance tab order follow what was set. But when tab to second instance of subform (subform A), the cursor just when to another subform (subform B). Why is that so? Shouldn't it just continue to the second instance?
    Thanks for any help.

    Hi Mike,
    I have faced with the same problem also. So as a temporary solution, in the exit event of the last item in the table, I changed the focus to the next instance's first item. Not a good way. If there is any different solution, waiting also.
    Asiye.

  • Dynamic Table with repeating Subform

    Hello,
    I am maiking a form which has a Dynamic Table with a repeating Subform.  The repeating subform has a dropdown list field which has three options for the user to pic.  "LABOR", "EQUIPT.", & "MATL."
    The way I want the form to work is the user will choose which item they want to add to the form with the dropdown list.  Whatever amount they put into the "Amount" column will go to the corresponding total "LABORTotal", "EQUIPTTotal", & "MATLTotal"
    The repeating Subform is basically the Row1, but I have the table split up into subforms because of issues I had eariler with the form.  The repeating subform title is "detail". 
    I cannot get the sums for the 3 items to go into the corresponding totals field.  This is the script that I have for the labor total field:
    form1.total.LABORTotal::calculate - (JavaScript, client)
    var nAmount = xfa.resolveNodes("detail[*].Table1.Row1.AMOUNT");
    var nItem = xfa.resolveNodes("detail[*].Table1.Row1.ITEM");
    var nSum = 0;
    for (var i=0; i<nAmount.length; i++)
        if (nItem.item[i].rawValue == "LABOR")
        nSum = nSum + nAmount.item(i).rawValue;
    This.rawValue = nSum;
    I am not familiar with loop scripting or var scripting so I know I am getting it wrong somewhere. 
    I would greatly appreciate any help!
    Thanks

    Okay,
    Here is your form back to you: https://acrobat.com/#d=IA67zcTBrWlnpcYS234*XQ.
    The issue wasn't the script. If you select the dropdown and go to the Object > Binding palette, you will see you had ticked "Specify values" and these were set to 1, 2 and 3.
    This meant that if the user selected LABOR, the value of the dropdown was "1" and NOT "LABOR". This was throwing the if statement.
    I deselected the specify values and it worked as expected.
    Hope that helps,
    Niall

  • Two SubForms with one having dynamic table

    Hello,
    I am having a problem regarding subforms and dynamic tables.  Here is the situation:
    1.  I have one main form where the content is "Flowed"
    2.  I have two subforms, both have the content of "Positioned"
    3.  The first subform has a dynamic table in it.
    The problem that I am having is that when I add a row to the dynamic table in subform 1, the second subform does not move.  I would like it to shift down to accomodate the additional row in the first subform.
    Any thoughts?
    Thank you.

    You need to set subform 1 to flowed.
    What is happening is that subform 1 is not expanding with the dynamic table because it is positioned. The table is expanding outside of its parent subform. As subform 1 does not expand, then subform 2 does not move.
    The golden rule is that any subform that has dynamic content and every one of its parent subforms up the hierarchy all the way to the root must be flowed.
    If this rule is not followed then you will get overlapping content. An easy check is to click on dynamic content in the design view and then use the left arrow key to navigate up the hierarchy. Keep an eye on the Subform pallet as you go for erroneous positioned content.
    Ben Walsh
    www.avoka.com

  • 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>

  • 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.

  • Item Number in Dynamic Table Quirk

    I'm a new LC user, ramping up to speed on this package, thanks to everyone for the useful information here and other places.
    Using the great advice and info here,
    http://www.assuredynamics.com/wp-content/uploads/2010/11/Assure-Dynamics-Building-dynamic- tables.pdf
    I added a dynamic table to a form I've been working on.  Most everything works, except the caption on the Row/Item number.  So, I yanked out the subform with the table on it to create a simpler copy of the form to post here.  Get this...  it works on the simple form.  So, there's something going on on my not so simple form that is preventing my Row/Item number from working. 
    I'm hoping that if I post both forms here, someone can help me fix this thing.
    this is the form that works:
    http://inthequeue.com/adobeLC/Template_excerpt.pdf
    this is the form that does not work:
    http://inthequeue.com/adobeLC/Template_std.pdf
    Thanks in advance
    John Q.

    Hi John,
    Try changing the code in the layout:ready event from;
    this.caption.value.text = (this.parent.index + 1).toString();
    To;
    this.caption.value.text.value = (this.parent.index + 1).toString();
    That is add another ".value".
    Your form that works targets Reader 8.0 or later and the one that doesn't Targets Reader 9.0 or later, I'm guessing that is the difference.
    Regards
    Bruce

  • Merging of cells of a dynamic table in adobe form

    Hi,
    I am trying to Merge 2 columns in a dynamic table in adobe form.The requirement is to merge column 3 and column 4 if column 4 is empty. I used the below javascript code in both "Form ready " and Initialize event of the row.
    if (this.Cell4.rawValue == " ")
    this.Cell3.colSpan = "2";
    this.Cell4.presence = "hidden";
    Note : Since above code was not working , i used the below code in my subform also but it did not returned desired output.
    if(Table22.Row1.Cell1.rawValue == " ")
    Table22.Row1.Cell3.colSpan = "2";
    Table22.Row1.Cell4.presence = "hidden";
    The problem is that in my dynamic table , its the second row where the requirement is fulfilled ie in the 2nd entry of my table the column4 is blank (the exact row number might change depending on input data).
    is there a way to loop in the dynamic table and check if column 4 is empty for a particular row.
    the above code does not help to fulfill my requirements. kindly help.
    Thanks
    Aditi

    Hello Aditi priya,
    Hope you are doing good..
    Please go through my recent blog..
    http://scn.sap.com/community/interactive-forms-by-adobe/blog/2015/01/02/merging-internal-table-cells-dynamically-in-sap-adobe-forms-using-java-script-code
    I hope you will find all answers from this blog..Reward if helpful...
    Thanks & Regards,
    B Raghu Prasad

  • Dynamic table header/footer on multiple pages stay original

    hi experts,
    i've got a form with a dynamic table. this means that i have a footerrow with mapped information if it should be visible or not. so the table can have from 1 to 40 columns.
    i did some scripting in the table's initialize section:
    loop over count of colums and set the headerrow, row1 and footerrow elements for index x to hidden.
    everything works out fine BUT if the data spans over multiple pages the headerrow on pages 2 to last is original again. means that the hiding of cells is not effective any more. same with footerrow (but here its fine at last page and original at  page 1 to last -1).
    i tried to hide cells again in layout:ready section for the other instances of the headerrow.
    cells got hidden, but the still visible cells didnt relocate to the left (if i hide it, there should be no space between staying cells).
    can anyone please give me a hint what i am missing here?
    does anyone have a simple sample for this task? its all about the header/footer for multiple pages!
    thanks a lot!
    daapoo

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Footer overflow in dynamic table

    Hi,
    great forum here.. so i have a  problem with livecycle form...
    I build up a form with a dynamic table, adding rows with a click on "+".
    The footer is working correctly ( once visible on the end of the table, not repeated) .
    One cell in the first row is growing automatically, depending on the text which is entered.
    If the table does not fit on the page ( because of the added rows or because of the text in the cell ) , there is a break and the table is continuing on the second page.
    These work fine.
    Problem:
    But if the table is broken on the second page, and i will click "+" for adding new rows, 1 or 2  rows are added on the first page;
    because there is space left, because of the footer, which is now on the second page.
    changing the free-area on master page did not help me.
    my given conditions are:
    the footer have to be tied on the last row of the table, that means: if the table is broken, at least one row should appear on the second page.
    Can anybod help me please ?
    here is my document:
    http://acrobat.com/#d=bQadx7MnDYcNxLTLDCDdfg
    thanks

    Did you set the permission to allow everybody to view the file on acrobat.com?  I am able to log in to acrobat.com -  and I am logged in, but it tells me I need the latest Flash Player.  I have just installed the latest and rebooted my iMac, but I still can't access your file.  So I can't view your table...
    One way around this is to create the table from individual objects, i.e., if each row has one Text and one Numeric cell = two cells per row, then
    drag a Text field onto the Layout page, followed by a Numeric field.
    wrap them in a subform.
    Now you have your row.  Then add the leader (header) and/or trailer (footer) objects. Proceed from here with your '+' and so forth.
    Conclusion - a table doesn't have to start with the formal Table object.  You can create your own manual (more flexible) table.

  • Dynamic table data isn't transfered to the context, with webdynpro for java

    Hi,
    I'm using LifeCycle designer 7.1 and Adobe reader 7.0.5.
    I'm trying to make a dynamic table in a PDF form, that will be related to a table in the context.
    I've designed the context like it says here: Dynamic Table -  same data repeating in all rows
    I made a dynamic table and related the cells on the row to the context, by dragging the variables from the DataView into them.
    The table is related to TableList, the row to TableWrapper[], and the cells are related like this: TableData[].ItemName
    And there's a button which adds a row to the table.
    And for some reason, that's not working; When hitting the Submit to SAP button, it doesn't appear as though the data was transferred to the WebDynpro context.
    Can anyone help me with it please..?
    By the way - I tried using the SAP standard subform controls, the 'Insert Remove Move' control.
    When trying it through the PDF preview, it doesn't work - whatever I click displays an error message, and when it runs from the browser - It automatically searches for an update for Adove Reader (I use 7.0.5).
    Is it supposed to work only with version 8 of the Adobe Reader?

    Well, I reinstalled ACF, and now the Submit button works, and the Insert Remove Move buttons work as well.
    But the table context still doesn't work.
    I had put some values in the context, in DoInit, and they appeared in the table in the form, but when I changed them in the form it didn't affect the context at all.
    There's a simple attribute value related to a text field, which IS affected when changed in the form, and the Submit button is clicked. Only the table doesn't work.
    How can I make it work?
    Thanks,
    Udi Dekel

  • Dynamic table in Offline interactive form

    Hi Experts,
              I want to add dynamic table (for Purchase Order line items). Number of rows in table will depend on item in purchase order. So, table rows should be added and data can be entered in table rows.
             Can anyone give me the steps to solve this issue...
    Thanks in advance.
    Regards,
    Nilesh

    Hi,
    You can use Following JavaScript for adding row in the Table:
    xfa.resolveNode("Table.item").instanceManager.addInstance(1);
    Make sure you have made BP as Flowed Content and the Item and Table subform is also flowed content.
    Check the Min Row count checkbox of Item subform also
    Hope this helps.
    Amit

  • Dynamic table in adobeform

    Hi Exports,
    I need to pass the values of dynamic internal table from SE38 program to adobeform. But in interface i couldn't find an option to pass the dynamic internal table. Is it possible to bind a dynamic  internal table in Adobeform?  Both row and column of the table should grow depends on dynamic table values. If no of column reaches maximum page widh it should overflow to next page.
    Regards,
    Anu.

    For the form buttons to work on-line in your WebDynpro app, you need to change the PDF form to be Dynamic:
         if(firstTime){
              // We need to set the PDF to be Dynamic, for the form JavaScript code to work
              IWDPDFDocumentInteractiveFormContext pdfContext =
              WDPDFDocumentFactory
              .getDocumentHandler(wdThis.wdGetAPI(), "InteractiveForm")
              .getDocumentContext();
              pdfContext.setDynamic(true);
    In this code segment, "InteractiveForm" is the UI id.
    I was able to get that far, but I although I add subforms dynamically via javascript, the mapped WebDynpro context node doesn't pick up any new elements.
    ie:  if I start with two WD context elements (0..n) cardinality, then add a third via the form JavaScipt button, I see changes only in the two context elements when I submit.  A third context element isn't created or populated.

  • Dynamic  table in Online Interactive form

    Hi,
    Scenario:
       I am doing an Online Interactive form scenario in WebDynpro for Java. In the form, i will be having a dynamic table(the number of rows will grow and shrink, with the help of ADD and DELETE ROW buttons). Initially, that table will have only one empty row.
    Imp: The fields in the table are bound to the data source node, whose cardinality is 1..n. (I want the data enetered in the table in Interactive form, to be updated in the WebDynpro context also).
    Problem: After deploying the application,
      I fill the first row, click ADD button. A new empty row is created. No problem here.
      I fill the second row. Then, when I click the ADD button, a new row is created, but with the values in second row.  
    Even if i create 10 new rows, the values are repeating in all those rows. If I change the value in a row, it reflects in all rows(except first row).
    Note: If the table fields are not bound to any data source node, then I dont have the above mentioned problem.
    Thanks,
    Prabhakar.

    Hi,Prabhakar
    In the note 1090464 It says that this is a limitation of the Subform Instance Controls(the same in table ui element).
    It looks like currently the only workaround is to build in advance empty nodes but then it limits the number of rows in your table.
    Regards,
    Michael

  • Dynamic Table in adobe inter-active forms

    Hi Gurus,
    I have dragged and dropped Dynamic table in body page and Header data placed in Master page. Now my problem is the data is not going to the next pages. Kindly pls tell me the way so that my data will appear in next pages.
    Regards,
    Srini

    Hi,
    What do you mean by Header data in master page...? is it header Row...with labels, why do you need it in master page have it along with your table in body page.
    What do you mean my data is not displayed on the body page ...?
    What I could understand is as below. you have a dynamic table where the number of rows may be n such that it can spread across multiple pages, if it spreads in multiple pages you need the header row in all the page occurances. is it so ...?
    if so just do it as below.
    Have the table in your body page with one header row and one body row.
    Set table allowed page break with in content
    Put this table in a subform and say it flowed top to bottom and set allow page break with in content.
    Select header row>object>pagination set include row in initial page and subsequent pages to checked.
    Select body row-->object->binding set repeat row for each data item to checked.
    This should work, else let me know your requirement more briefly..
    if You need a sample file for this send me a test mail to my id from the business card address.
    Cheers,
    Sai

Maybe you are looking for

  • Apple ID for Children

    Can anyone help. I have just upgraded the kids ipads to iOS 7..and imessages have stopped working. So I google search and find that I now have to have apple ID's for both kids. I goto My Apple ID and try creating an account for my son born 2004. I ge

  • The Size of prddata increasing with great speed . dbf files are increasing

    Hi the Size of prddata increasing with great speed . dbf files are increasing which result in 100 % space utilization. can I delete temp01.dbf files.what is possible solution for this as dbf files are increasing with unexpected great speed. Thanks Ra

  • Link DIR's in MAC

    Greetings, I'm not a wiz on code, but I try and I need some help please. I'm building a hybrid CD to play on both PC & MAC and some of my links will open a new Director movie located in a subfolder. When I publish for both PC & MAC it works fine on a

  • Make mpg movie seekable

    I'm not shure how to ask this in English so sorry if it's hard to understand my question. I have a Bourne-movie captured from TV with Myth. I edited and transcoded it with Myth to remove commercials and keeping the highest quality possible. Now I hav

  • Display lats date in a charasteristic

    Hi guys, please help with the following In Bex 3.5 I have a time charasteristic as a column in a query: Material          Time Char          KeyFigure1 AAA               12/31/2008         1234.56 AAA               11/30/2008         234.56 AAA