Loading...
 
Skip to main content

Tracker items Export after filtering fails (either all items or none exported)

Status
Closed
Subject
Tracker items Export after filtering fails (either all items or none exported)
Version
12.x
12.x Regression
15.x
15.x Regression
Category
  • Conflict of two features (each works well independently)
  • Regression
  • Less than 30-minutes fix
Feature
Import-Export
Trackers
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Volunteered to solve
rjsmelo
Lastmod by
Xavier de Pedro
Rating
(0)
Description

Tracker items Export after filtering fails (either all items or none exported, depending on how you create your plugin TrackerFilter call). That was known to work in the past (see ), and I recall using this type of feature long ago (years ago, maybe with tiki6???).

It seems as if minor fix was needed to have it export items filtered on the criteria indicated through either PluginTrackerFilter or based on the filtering in the tracker feature interface itself.

http://xavi-9794-5876.show.tikiwiki.org/
u: admin
p: 12345

Fixed

Case 1: TrackerFilter using param "export=y"

This produces a button at the bottom to go to export, in theory, with the pre-selection of item filtered.

Case 2: TrackerFilter using param " export_action='Export it' "

Case 3

You want to do the same from the tracker feature itself: after listing items, you filter bsaed on some criteria, and you click at ecport, you expect to get that filtering applied to the csv to be exported.
The url might look like:
http://xavi-9794-5876.show.tikiwiki.org/tiki-ajax_services.php?controller=tracker&action=export&trackerId=1&status=o&sort_mode=f__asc&filterfield=4&filtervalue%5B1%5D=&filtervalue%5B2%5D=&filtervalue_other=&filtervalue%5B3%5D=5+%28high%29&filtervalue%5B4%5D=topic&filter=Filter

Couldn't we use these values in the arguments of the url to have a pre-selection of items to be exported?


Pending Fixing

Update: Filter based on cases of "Multiple selection" fields do not work: nothing is exported or all is (filtering doesn't seem to be working).

Case 11: TrackerFilter using param "export=y"

This produces a button at the bottom to go to export, in theory, with the pre-selection of item filtered.

Case 12: TrackerFilter using param " export_action='Export it' "

Case 13

You want to do the same from the tracker feature itself:
http://xavi-9794-5876.show.tikiwiki.org/tiki-view_tracker.php?trackerId=1

  • Filter for the "Resources needed" Laser Pointer. 3 items will be shown (out of the 6 max).
  • click at the "Export" button at the bottom. None is exported, just the header line with the variable names, but no record below.


Solution

Can you check 58797 ? it should be solved for all 3 use cases.


Impressive, all fixed. Thanks heaps Ricardo- rjsmelo (and Nelson, I guess?) 😊


Update: some case (multiple seelction fields) do not work for filtering yet. See above in the bug description


Xavier, there was no support for that kind of field (type M) that was the reason it showed:

Copy to clipboard
__tracker field type not processed yet M__

This message means that the field type is not supported (yet)
I've added support for multiple selection fields across all use cases.
Please test r58823

(Xavier, unrelated: when I tried to save with sign and only the user, it didn't added the datetime and didn't show on the interface, may be a bug, please test if that happens to you also) test sign:


Thanks Ricardo, works like a charm. Thanks for providing support for M.
Regarding the signature, you just need to type

Copy to clipboard
{sign user="xavi" datetime="2016-06-08T10:07:23+00:00"}

and Tiki will add your username and timestamp all in one go.

Importance
6
Easy to solve?
8
Priority
48
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5876
Created
Tuesday 05 April, 2016 09:11:51 UTC
by Xavier de Pedro
LastModif
Wednesday 08 June, 2016 10:07:23 UTC


Show PHP error messages