Avatar

Level 1

Hi all,

I am trying to programmatically fill out an XFA form. The form contains a table in which rows can be added dynamically. This is what the relevant template segment (in a simplified form) looks like:

...

               <subform name="page6">

                     <subform name="headerSF">

                          <field name="TextField13">

                          <field name="TextField15">

                          <field name="TextField14">

                     <subform name="Table1">

                          <subform name="HeaderRow">

                               <field>

                          <subform name="Row1">

                               <subform name="buttons">

                                    <field name="addRow">

                                    <field name="DeleteRow">

                                    <field name="moveUp">

                                    <field name="moveDown">

                               <field>

                               <field name="quantity">

                               <field name="unitPrice">

                               <field>

                               <field>

                               <field>

                               <field>

                               <field>

                               <field>

                               <field>

                               <field>

                               <field>

As you can see, quantity and unitPrice are named, but the other fields in the table row are not.

So, I can easily specify the quantity and unitPrice via the following dataset XML:

<page6>

          <headerSF>

                    <TextField13/>

                    <TextField15/>

                    <TextField14/>

          </headerSF>

          <Table1>

                    <HeaderRow xfa:dataNode="dataGroup"/>

                    <Row1>

                              <buttons xfa:dataNode="dataGroup"/>

                              <quantity>12</quantity>

                              <unitPrice>3242.11</unitPrice>

                    </Row1>

but how do I specify the other, unnamed, fields for the table row?

Thanks a lot in advance.

-- DC Dweller