Novunex Community

Forum Is there any way to filter a drowndown with Entity Type source based on array?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #803
    kathy
    Participant

      Hi,

      I recently came across having to filter a dropdown list based on an array containing the values from another dropdown list.
      For the data source of the dropdown I want to filter, I use an Entity Type.

      How can I do that?

      Many thanks in advance,
      Best wishes,
      Kathy

      #804
      Dani
      Participant

        Hi Kathy,

        There are two ways to handle this.
        1. Use an expression with $[Array].toString().replaceAll(‘,’,’||’) and then use the expression for the filter.

        2. Use an expression with $[Array].toString(). Add another expression to replace the commas in the first expression value with the logical OR. It would look like this $[Expression].replaceAll(‘,’,’||’) and then use the expression for the filter.

        The comma gets replaced with the logical OR and the filtering works.

        BR
        Daniela

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.