OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Filter on related entity

This topic contains 1 reply, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 6 years ago.

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

  • Creator
  • #33460


    Is it possible to have a filter in datagrid that can filter on an entity related to the entity being shown?

    Example scenario:

    A view that contains all orders placed on an ecommerce store. The view is of course a summary of the orders. So a normal filter would be “Order ID” for example. Nothing complicated here.

    We then create a related entity called OrderItems which contain all the items ordered. These order items will not be in the main Order entity.

    Now we want to add a filter in the order view, which we can filter on the SKU, so it will only show orders with orderitems that have SKU “123”.

    Hope it makes sense.

    Is this possible and how?

Viewing 1 replies (of 1 total)
  • Author
  • #33461
    Yevhen Shyshkin
    Yevhen Shyshkin

    Hello, Jowo.

    You can add your own filter both on backend and frontend, see existing datagrid filters in OroFilterBundle.

Viewing 1 replies (of 1 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No