Forums / Developing Portals / Filtering ListView dynamically

Filtering ListView dynamically

2 posts, 0 answered
  1. Dmitriy Razumov_2
    Dmitriy Razumov_2 avatar
    4 posts
    20 Jul 2020
    18 Nov 2020
    Link to this post

    Could you please help me with dynamic filtering of ListViews.

    I can filter SubGrids dynamically with javascript by changing values in "subgrid._cascadeFieldData" array but I don't know how to do something similar with ListViews.

    Also I can't set a ListView filter to be value of one of the form fields in the widget editor on the form, is it possible?

    Thank you.
    • Add to Phrasebook
      • No word lists for English → Russian...
      • Create a new word list...
    • Copy
  2. Andre B
    Andre  B avatar
    14 posts
    10 Mar 2020
    30 Nov 2020 in reply to Dmitriy Razumov_2
    Link to this post
    Hi Dmitriy,

    Currently, this functionality does not exist in the ListView widget.  
    However, it may be possible to achieve a similar result. You could apply a filter to the dataSource of the ListView with some custom JavaScript and saved queries.

    For example:
        field: "field to filter by",
        operator: "eq",
        value: "value to be filtered by"

    I've also provided some links to some documentation below:

    Let me know if this works, or if you have any other questions regarding this functionality. If you require further assistance, you can also email, or you can register for one of our Q&A session.

2 posts, 0 answered