LiveCycle Designer - How to filter table data binding by child element value | Community
Skip to main content
February 27, 2024
Solved

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

  • February 27, 2024
  • 1 reply
  • 1435 views

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>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by KonstantinCh

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. 

1 reply

KonstantinChAuthorAccepted solution
February 28, 2024

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.