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 this 60000+ lines of repeating XML code?

Avatar

Level 2

Wasn't sure which forum to post the following but suspect maybe here... maybe something to do with template rendering...


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>

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

3 Replies

Avatar

Former Community Member

This is a known issue with verions of Designer less then 8.2.1. Obviously you do not need the 60,000+ lines of the same instruction ...you only need one. To remedy this the official way is to upgrade your designer and open your template in the newer version and it wil l"fix up" the template for you. If that is not acceptable I jave a style sheet I can run against the template to remove all of those extra lines. If you want to send your template to LiveCycle8@gmail.com I will clean it and send it back.

Paul

Avatar

Level 2

Thank you, Paul.

I knew I needed to update my Acrobat 9 (which I understand updates the Livecycle 8.2.1.3144.1.471865 that I have). [ AcroProStdUpd910_T3T4_incr ]

I'll try this update first and post a 'problem fixed' here...

- ed

Avatar

Level 2

The update solved the problem.

The update deleted the repeating lines of XML in the PDF when the offending file was opened. (All but a dozen or so in one place which I 'hardcode' deleted.)

I use Livecycle on my 'main' work computer which is not online and use another computer just for online. And, as well, I'm up in the mountains where I only have a dial-up connection, so, I don't have 'automatic updates' turned on.

Just goes to show that we need to keep abreast of any updates and patches on any programs we use...

Thanks again, Paul.

- ed