ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 7 replies, has 4 voices, and was last updated by oro_newbie oro_newbie 1 year, 1 month ago.

  • Creator
    Topic
  • #18392

    Dima Makaruk
    Participant

    How is it possible to create a datagrid filter that contains distinct values from a column of the grid ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #18401
    Artem Liubeznyi
    Artem Liubeznyi
    Oro Core

    Hi Dima,

    Not sure I correctly understand your question. Would you mind to provide a concrete use case you’d like to achieve? Thank you.

    #18436
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi!

    You should create custom provider, which return list of entities and configure QueryBuilder as you want.

    setup provider as service

    and configure your filter, something like this:

    #18437

    Dima Makaruk
    Participant

    Hi

    Thank you for the quick reply. I think it won’t work with the provider. I need to get only the values/entities that are present in the datagrid resultset. But the filters are build before the datagrids datasource has the results.

    #18444
    Mike Kudelya
    Mike Kudelya
    Oro Core

    You want to put to filter values from certain column only from current page, right?

    #18449

    Dima Makaruk
    Participant

    Yes,
    from current datagrid.

    #21613
    oro_newbie
    oro_newbie
    Participant

    @Mike

    I needed this and it’s very well explained. Thank you!

    #21671
    oro_newbie
    oro_newbie
    Participant

    @Mike

    As an added question, is it possible to pass a parameter to the getList() function? In my case the parameter is the same that I’m passing to my where clause in my datagrid (defined under bind_parameters).

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.