Skip to Content
0
Former Member
Jan 19, 2011 at 10:56 AM

Access xml data attribute - Error

72 Views

HI

This is an issue in Adobe print form. I want to a design a print form based on a tabular data. XML schema looks like this.

  <xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
   <xfa:data xfa:dataNode="dataGroup"/>
   <dd:dataDescription xmlns:dd="http://ns.adobe.com/data-description/" dd:name="data">
      <data>
         <P9014_TAB dd:minOccur="0">
            <DATA dd:maxOccur="-1">
               <YYHOUSE_BUILDING/>
               <YYLAND_PROP/>
               <YYPLINTH/>
               <YYSTOREY/>
               <YYLAND_AREA/>
            </DATA>
         </P9014_TAB>
      </data>
   </dd:dataDescription>
</xfa:datasets>

In the form a subform displaying the data in tabular fashion in bound to

$.P9014_TAB.DATA[*]

In the form only 3 text fields bound to yyplinth, yystorey, yyland_area are defined.

If yyland_prop = 'X' display textfields bound to yyplinth and yystorey

otherwise display only textfield bound to yyland_area

Problem is how to read yyland_prop value from the script.

I have tried the following codes (in the calculate event of textfields) but now of them seem to work.

$record.p9014_tab.yyhouse_building.value
$record.P9014_TAB.DATA[*].yyhouse_building.value
$record.P9014_TAB.DATA.yyhouse_building.value 
$record.P9014_TAB.yyhouse_building.value