This topic contains 1 reply, has 2 voices, and was last updated by mmiasnikov 6 years, 6 months ago.
- Topic
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:
123456789101112131415161718192021222324252627282930313233343536373839404142rapport-identifications-par-agence-statut-count:pageTitle: "Identifications par Agence et statut (A ce jour)"source:type: ormacl_resource: application.core.identification.identification_viewquery:select:- Bu.name- Identity.statut- COUNT(Identity.id) as NombreIdswhere:and:- (Identity.isFraude is NULL or Identity.isFraude <> true or (Identity.isFraude=true and Identity.isRejet = true))- Bu.name IS NOT NULL- Identity.statut in ('Identification Validée', 'Identification Complétée', 'En modification', 'Identification Rejetée','Identification PréValidée', 'Identification Bloquée')# - Identity.identifiedAt BETWEEN :startdate and :enddatefrom:- { table: 'ApplicationCoreIdentificationBundle:Identification', alias: Identity }join:left:- { join: Identity.bunit, alias: Bu }groupBy: Bu.name, Identity.statutcolumns:name: { label: "Nom agence" }statut: { label: "Statut" }NombreIds: { label: "#Identifications", frontend_type: number }sorters:columns:name: { data_name: Bu.name }statut: { data_name: Identity.statut }filters:columns:identifiedAt:label: "Date selection"type: datedata_name: Identity.identifiedAtfilter_by_having: trueoptions:entityHint: report dataexport: trueMy understanding is that the filter by having should work just like the SQL Having clause in MYSQL which actually works in that case.
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.