Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Why 60000+ lines of repeating code in XML?

Avatar

Level 2


I have a tremendous number of lines of repeating code on a subform... code shown below.

This file was built in Livecycle and saved as a PDF rendered as a Dynamic XML form. The code below is taken from the XML code.

The form itself contains 9 subforms and each of the subforms contain many many of the same repeating lines - <?templateDesigner StyleID aped3?>

The 9 dropdowns in the form set up a query (after submission). The submit button for the form may appear after three dropdown selections by the user or may appear after four or five dropdown selections, etc., depending on the selections made...

Why these repeating lines? I tried deleting all but one of the repeating lines on each subform but the dropdowns no longer worked.

The code below is the first dropdown subform within the form.

- ed


******************************************************************************

<subform name="DataManageSubform" y="0.477486in" w="189.04mm" h="9.195mm">
            <field h="9mm" name="DropDownAdmin" w="88.9mm" x="0.029mm" y="0.074mm">
               <caption reserve="31.62mm">
                  <font typeface="Myriad Pro" baselineShift="0pt"/>
                  <para hAlign="right" marginLeft="0pt" marginRight="0pt" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" vAlign="middle"/>
                  <value>
                     <text>Data Management - </text>
                  </value>
               </caption>
               <font typeface="Myriad Pro"/>
               <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/>
               <para vAlign="middle"/>
               <ui>


<choiceList commitOn="select" textEntry="1">
                     <border>
                        <?templateDesigner StyleID aped3?>

********** 60,000+ lines repeating the preceeding line: <?templateDesigner StyleID aped3?> **************

   <edge stroke="lowered"/>
                        <?templateDesigner StyleID aped3?></border>
                     <margin/>
                  </choiceList>
               </ui>
               <value>
                  <text>Please Select</text>
               </value>
               <event activity="exit" name="event__exit">
                  <script contentType="application/x-javascript">
switch (this.selectedIndex){
case 0 :  Number1Subform.presence = "visible";
     Number2Subform.presence = "hidden";
     Number31Subform.presence = "hidden";
     Number41Subform.presence = "hidden";
     break;
case 1 :  Number1Subform.presence = "visible";
     Number2Subform.presence = "hidden";
     Number31Subform.presence = "hidden";
     Number41Subform.presence = "hidden";
     break;
case 2 :  Number1Subform.presence = "visible";
     Number2Subform.presence = "hidden";
     Number31Subform.presence = "hidden";
     Number41Subform.presence = "hidden";
     break;
case 3 :  Number1Subform.presence = "visible";
     Number2Subform.presence = "hidden";
     Number31Subform.presence = "hidden";
     Number41Subform.presence = "hidden";
     break;
case 4 :  Number1Subform.presence = "visible";
     Number2Subform.presence = "hidden";
     Number31Subform.presence = "hidden";
     Number41Subform.presence = "hidden";
     break;
case 5 :  Number1Subform.presence = "visible";
     Number2Subform.presence = "hidden";
     Number31Subform.presence = "hidden";
     Number41Subform.presence = "hidden";
     break;
default :  Number1Subform.presence = "visible";
     Number2Subform.presence = "hidden";
     Number31Subform.presence = "hidden";
     Number41Subform.presence = "hidden";
     break;
}
</script>
               </event>
            </field>
            <draw h="9.121mm" name="PersonalTextNum2" w="5.08mm" x="89.068mm" y="0.279mm">
               <border>
                  <corner presence="hidden" thickness="0.1753mm"/>
                  <edge presence="hidden"/>
               </border>
               <font typeface="Myriad Pro" baselineShift="0pt" size="12pt"/>
               <margin bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm" topInset="0.5mm"/>
               <para hAlign="center" marginLeft="0pt" marginRight="0pt" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" vAlign="middle"/>
               <ui>
                  <textEdit>
                     <margin/>
                  </textEdit>
               </ui>
               <value>
                  <text>2.</text>
               </value>
            </draw>
            <margin leftInset="35.052mm"/>
            <?templateDesigner expand 1?>
</subform>

**********************************************************************

2 Replies

Avatar

Level 2

Just realized I may have posted in the wrong forum.

Sorry folks...

- ed

Avatar

Level 2

This was first posted here by mistake and reposted in the regular Livecycle Designer forum and, answered there as well.

Since it was posted in this forum anyhow, I thought I would post the correct answer here as well (so as to not be completely pointless here!).

All I needed was the update patch for the original (CS4) Acrobat 9 Pro.

When the offending file was opened after the update, the repeating lines of code disappeared. Part of the update was a bug fix for the repeating XML code...

Just goes to show how aware we need to be on program updates and patches - if we have 'automatic updates' cut off...