ssossossossosso

Forums

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

Forums Forums OroPlatform How to set 'operator_choices' on datagrid.yml ?

This topic contains 4 replies, has 5 voices, and was last updated by  dnahrebecki 1 month, 1 week ago.

  • Creator
    Topic
  • #31149

    Rodolfo
    Participant

    Hello!

    I’m trying to set some specific filter options on datagrid but it’s not working. This is an example of what I’m doing:

    filters:
    columns:
    email:
    type: string
    data_name: acmeentity.email
    options:
    operator_choices:
    - 'is equal to'
    - 'is empty'
    - 'is not empty'

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #31150

    Mike Kudelya
    Moderator

    Hi

    At the moment you should use the following approach:

    #31151

    roldan
    Participant

    Hi Mike,

    I’m having the same problem that Rodolfo has. I need to configure my “operator_choices” of NumberRangeFilterType.
    For example, I have the following filters section of one datagrid:

    So I’m trying to set only “equals to” as operator choice to my number filter but I’m not being able to do it. All operators choices are showing up (equal, not equal, between, etc…)

    Maybe I’m doing something wrong?

    Thanks,
    Matías

    #31152

    dzakharov
    Moderator

    Hi Roldan, try to use the following approach:

    #31153

    dnahrebecki
    Moderator

    Rodolfo, roldan,

    marking this topic as resolved. If you’ll have any further questions don’t hesitate to ask.
    Thanks!

    Best Regards,
    Daniel Nahrebecki

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

You must be logged in to reply to this topic.