OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions Filter on a date field which is not part of the grid group results with "having"

This topic contains 1 reply, has 2 voices, and was last updated by  mmiasnikov 6 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
  • #36515

    phil5
    Participant

    Hi,

    I am trying to filter the results of a grouped grid which pulls some summary statistic. My main file contains an Identification Date, which is part of the file, but not selected in the final output, but I would still like to be able to filter on the date range.

    The grid code does compile and the filter shows up on screen, but when I enter a date range with existing dates, it does not properly select the appropriate transactions with the Having clause and returns the whole dataset with all dates results;

    Here is the Datagrid code:

    My understanding is that the filter by having should work just like the SQL Having clause in MYSQL which actually works in that case.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #36516

    mmiasnikov
    Participant

    Hello, phil5.

    As I can understand from your code example you should add Identity.identifiedAt to ‘groupBy’ clause or filter it on ‘where’ conditions, not in ‘having’.

Viewing 1 replies (of 1 total)

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

Back to top