Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Get nodes count

$
0
0

Hi All.

 

I have the folowing data definition

 

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

         <S_DOCUMENT>

            <T_COMPETENCY dd:minOccur="0">

               <DATA dd:maxOccur="-1">

                  <NUM/>

                  <NAME/>

                  <NOTE_DESCR/>

                  <NOTE_KEYB/>

                  <RATING/>

                  <NOTE_RECFCD/>

                  <PRATING/>

                  <NOTE_MNG/>

                  <NOTE_EMPL/>

               </DATA>

            </T_COMPETENCY>

         </S_DOCUMENT>

      </data>

   </dd:dataDescription>

</xfa:datasets>

 

I'm trying to get nodes count for T_COMPETENCY node at the runtime via JavaScript.

 

I've used various constructions but all of them return 0 or nothing, please help me to solve this issue.

 

xfa.resolveNodes("xfa.datasets.data.S_DOCUMENT.T_COMPETENCY").length

xfa.resolveNodes("xfa.datasets.data.S_DOCUMENT.T_COMPETENCY[*]").lengt h

xfa.resolveNodes("xfa.datasets.data.S_DOCUMENT.T_COMPETENCY.DATA").len gth

xfa.resolveNodes("xfa.datasets.data.S_DOCUMENT.T_COMPETENCY.DATA[*]"). length

xfa.resolveNodes("xfa.datasets.data.S_DOCUMENT.T_COMPETENCY.DATA.NUM") .length

xfa.resolveNodes("xfa.datasets.data.S_DOCUMENT.T_COMPETENCY.DATA.NUM[* ]").length


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>