From: Xavier de P. <xav...@vh...> - 2015-03-26 14:41:20
|
Yes, Wolfgang. And $lowerRange and $upperRange are to be chosen by the user through the filter form. Xavi On 26/03/15 13:45, wolfganga wrote: > Xavier, > > >We need for a client the feature to filter by date range on a tracker > field. > Just to make sure no misunderstandings happen: > > You want a filter like (Pseudocode): > $date >= $lowerRange && $date <= $upperRange > > where $date can be of a format like: "2015-03-15 13:04" or "2015-03-15" > and $lowerRange / $upperRange of a format like = "2015-03-15 13:04" or > "2015-03-15" > > > Kind regards > > Wolfgang > > > > Am 26.03.2015 09:41, schrieb Xavier de Pedro: >> Hi all: >> >> We need for a client the feature to filter by date range on a tracker >> field. We have been using Plugins Tracker & TrackerList & TrackerFilter >> to add, list and search items in pretty trackers. I know some devs >> suggest that the future is "Plugin List" and "CustomSearch", but we'd >> like to explore whether this minor improvement can be added to the >> TrackerFilter plugin (which still is very useful and allow to reuse the >> knowledge we acquired over the years, pretty extensive & up-to-date >> documentation in doc.t.o and fairly well coverage in the official "Tiki >> books" ;-). >> >> I know that with current code base, you can not easily add the ability >> to filter twice on the same tracker field (e.g., filter="1/r:2/>:2/<" ; >> i.e. field 2: arrival at the hospital; search for patients that arrived >> between date X and Y to the hospital). Only the last one ("2/<" in this >> example for field 2) is taken into account when passing the filters >> among functions. >> >> I tried a workaround of placing an extra field 3, set to "computed" type >> of field, with the formula: "#2" (i.e.: equals to field 2). But tracker >> field "computed" is not implemented in TrackerFilter. >> >> Any known workarounds for this use case? >> >> Xavi >> >> P.D: I still don't know how to reproduce the equivalent feature of >> Plugin Trackerfilter with Custom Search or similar. Maybe today at the >> Tiki User Metting I'll learn that? ;-) >> >> |