OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions How to set default value for owner field in datagrid?

This topic contains 3 replies, has 2 voices, and was last updated by  Stepan Yudin 7 years, 6 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36294

    Stepan Yudin
    Participant

    Good day everyone.

    I need set default value for owner field in vendor datagrid (for example in sales-lead-grid)
    The filter has following definition:

    I created datagrid listener and added ‘default’ block to datagrid definition:

    But owner filter is still filled with ‘All’ value by default.
    This approach works with simple text field, but not with this one.

    What am i doing wrong?


    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
    https://github.com/stepansib/sf-oro-docker

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #36295

    Stepan Yudin
    Participant

    Interesting. It works if i convert current user ID to string like that:


    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
    https://github.com/stepansib/sf-oro-docker

    #36296

    Mike Kudelya
    Participant

    Hi,

    Also you can look at default lead view.

    #36297

    Stepan Yudin
    Participant

    Great, thank you Mike!


    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
    https://github.com/stepansib/sf-oro-docker

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

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top