Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Predicates

$
0
0

I have the following predicate:

 

var predicate = "$record.TopMerchants.Record[*]";

var nodeitems = $data.resolveNodes(predicate);

 

which searches an XML structure similar to the following:

 

<TopMerchants>

     <Record>

          <Country>United Kingdom</Country>

          <X1>testing</X1>

          <X2>testing again</X2>

     </Record>

     <Record>

          <Country>United Kingdom</Country>

          <X1>testing</X1>

          <X2>testing again</X2>

     </Record>

     <Record>

          <Country>United States</Country>

          <X1>testing</X1>

          <X2>testing again</X2>

     </Record>

</TopMerchants>

 

This works fine in retrieving all of the records under the TopMerchants node, however what I really want is to be able to bring back records that have a specific country but I am not sure how this is done in the predicate, can anyone shed any light as to how you would achieve this??


Viewing all articles
Browse latest Browse all 16286

Trending Articles



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