Expand my Community achievements bar.

Help with extracting information from database into custom table.

Avatar

Level 1

Hello guys,

I need to pull information from a database into a custom table that I have created in Adobe LiveCycle Designer. The connection to the database is set up, but the information is coming in the wrong order.

The data is split up into sections, with each section having a bunch of records related to it. To make it work I have created a table with the first row pulling the first section, the second row pulling the requirements related to that first section, the third row pulling the second section, the fourth row pulling the requirements related to the second section, and so on.

However, when running, what happens is the following:

- The first section is pulled

- The requirements regarding the first section are pulled.

- Then all of the other requirements from the other sections are pulled.

- And after requirements, all of the sections are puled.

Since the XML code for the table is setup from top to bottom, I am unsure of why this is happening. Also, the rows pulling the many requirements, have the option to "Repeat Row for Each Data Item."

Table Hierarchy.PNG

Table Layout.PNG

And here is the XML for the table:

<subform name="Table11" layout="table" columnWidths="34.9479mm 139.3546mm 28.8773mm">

            <border>

               <edge/>

            </border>

            <subform layout="row" name="Row1" id="Row1_ID">

               <assist role="TH"/>

               <draw h="10mm" name="Cell1">

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="255,153,0"/>

                     </fill>

                  </border>

                  <ui>

                     <textEdit/>

                  </ui>

                  <value>

                     <text>Requirement</text>

                  </value>

                  <font typeface="Verdana" weight="bold"/>

                  <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"/>

                     <fill>

                        <color value="255,153,0"/>

                     </fill>

                  </border>

                  <ui>

                     <textEdit/>

                  </ui>

                  <value>

                     <text>Description</text>

                  </value>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

               </draw>

               <draw h="10mm" name="Cell3">

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="255,153,0"/>

                     </fill>

                  </border>

                  <ui>

                     <textEdit/>

                  </ui>

                  <value>

                     <text>Risk</text>

                  </value>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

               </draw>

               <border>

                  <edge presence="hidden"/>

               </border>

               <?templateDesigner expand 1?>

               <occur max="-1"/>

            </subform>

            <?templateDesigner rowpattern first:1, next:1, firstcolor:f0f0f0, nextcolor:ffffff, apply:0?>

            <subform layout="row" name="VLT__sections__cr" vql="WHERE id='V12000000000502'">

               <assist role="TR"/>

               <field name="VLT__name__v" h="10mm">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="192,192,192"/>

                     </fill>

                  </border>

               </field>

               <field w="168.232mm" h="10mm" colSpan="2" name="VLT__description__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="192,192,192"/>

                     </fill>

                  </border>

               </field>

               <?templateDesigner expand 1?></subform>

            <subform layout="row" name="VLT__requirements__cr" vql="WHERE section__c ='V12000000000502'">

               <assist role="TR"/>

               <field h="10mm" name="VLT__name__v">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                  </border>

               </field>

               <field w="168.232mm" h="10mm" name="VLT__description__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                  </border>

               </field>

               <field name="VLT__risk__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Arial"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.175mm"/>

                  </border>

               </field>

               <?templateDesigner expand 1?></subform>

            <subform layout="row" name="VLT__sections__cr" vql="WHERE id='V12000000000602'">

               <assist role="TR"/>

               <field name="VLT__name__v" h="10mm">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="192,192,192"/>

                     </fill>

                  </border>

               </field>

               <field w="168.232mm" h="10mm" colSpan="2" name="VLT__description__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="192,192,192"/>

                     </fill>

                  </border>

               </field>

               <?templateDesigner expand 1?></subform>

            <subform layout="row" name="VLT__requirements__cr" vql="WHERE section__c ='V12000000000602'">

               <assist role="TR"/>

               <field h="10mm" name="VLT__name__v">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                  </border>

               </field>

               <field w="168.232mm" h="10mm" name="VLT__description__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                  </border>

               </field>

               <field name="VLT__risk__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Arial"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.175mm"/>

                  </border>

               </field>

               <?templateDesigner expand 1?></subform>

            <subform layout="row" name="VLT__sections__cr" vql="WHERE id='V12000000000603'">

               <assist role="TR"/>

               <field name="VLT__name__v" h="10mm">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="192,192,192"/>

                     </fill>

                  </border>

               </field>

               <field w="168.232mm" h="10mm" colSpan="2" name="VLT__description__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="192,192,192"/>

                     </fill>

                  </border>

               </field>

               <?templateDesigner expand 1?></subform>

            <subform layout="row" name="VLT__requirements__cr" vql="WHERE section__c ='V12000000000603'">

               <assist role="TR"/>

               <field h="10mm" name="VLT__name__v">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                  </border>

               </field>

               <field w="168.232mm" h="10mm" name="VLT__description__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                  </border>

               </field>

               <field name="VLT__risk__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Arial"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.175mm"/>

                  </border>

               </field>

               <?templateDesigner expand 1?>

               <occur max="-1"/>

            </subform>

            <subform layout="row" name="VLT__sections__cr" vql="WHERE id='V12000000000604'">

               <assist role="TR"/>

               <field name="VLT__name__v" h="10mm">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="192,192,192"/>

                     </fill>

                  </border>

               </field>

               <field w="168.232mm" h="10mm" colSpan="2" name="VLT__description__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                     <fill>

                        <color value="192,192,192"/>

                     </fill>

                  </border>

               </field>

               <?templateDesigner expand 1?></subform>

            <subform layout="row" name="VLT__requirements__cr" vql="WHERE section__c ='V12000000000604'">

               <assist role="TR"/>

               <field h="10mm" name="VLT__name__v">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                  </border>

               </field>

               <field w="168.232mm" h="10mm" name="VLT__description__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Verdana" weight="bold"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.1778mm"/>

                  </border>

               </field>

               <field name="VLT__risk__c">

                  <ui>

                     <textEdit>

                        <margin/>

                     </textEdit>

                  </ui>

                  <font typeface="Arial"/>

                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

                  <para vAlign="middle"/>

                  <border>

                     <edge/>

                     <corner thickness="0.175mm"/>

                  </border>

               </field>

               <occur max="-1"/>

               <?templateDesigner expand 1?></subform>

            <?templateDesigner expand 1?>

            <overflow leader="Row1"/>

         </subform>

         <?templateDesigner expand 1?></subform>

0 Replies