Expand my Community achievements bar.

SOLVED

LiveCycle Designer - How to filter table data binding by child element value

Avatar

Level 1

I'd like to bind XML data to a table, but print only rows that have specific value in a child element. In example below I would like to print a table of ID and Name rows if item's type = A. What would be a binding path/condition?

 

I tried binding path like $.item.[typeParent.type=="A"] but it doesn't work at all.

 

<content>

   <item>

      <id>1</id>

      <name>John</name>

      <typeParent>

         <type>A</type>

      </typeParent>

  </item>

   <item>

      <id>2</id>

      <name>Alex</name>

      <typeParent>

         <type>B</type>

      </typeParent>

  </item>

   <item>

      <id>3</id>

      <name>Bom</name>

      <typeParent>

         <type>A</type>

      </typeParent>

  </item>

</content>

1 Accepted Solution

Avatar

Correct answer by
Level 1

UPDATE: $.item.[typeParent.type=="A"] binding path did not work and the table was empty due to issue in my xml data file. Once xml was fixed, it started working fine. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

UPDATE: $.item.[typeParent.type=="A"] binding path did not work and the table was empty due to issue in my xml data file. Once xml was fixed, it started working fine.