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
- 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: 12345Fixed
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.
- Come here at the homepage:
http://xavi-9794-5876.show.tikiwiki.org/tiki-index.php?page=HomePage - Filter for the word "topic". It will list just 3 items from the longer list of items in the tracker.
http://xavi-9794-5876.show.tikiwiki.org/tiki-index.php?trackerId=1#trackerFilter1-result - click at the "Export" button at the bottom, which will load this page (should it be another url?), and apparently nothing happens: the same page is reloaded:
http://xavi-9794-5876.show.tikiwiki.org/tiki-index.php?controller=tracker&action=export&trackerId=1&displayedFields=4&f_4=topic
Case 2: TrackerFilter using param " export_action='Export it' "
- Come here at the Tracker_as_Calendar_12 page:
http://xavi-9794-5876.show.tikiwiki.org/tiki-index.php?page=Tracker_as_Calendar_12 - Type the word "topic" in the ext box and click at "Export it" button. The csv produced has no content.
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=FilterCouldn'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.
- Come here at the homepage:
http://xavi-9794-5876.show.tikiwiki.org/tiki-index.php?page=HomePage - Field 7 (multiselect): "Resources needed" produces:
Copy to clipboard__tracker field type not processed yet M__
Case 12: TrackerFilter using param " export_action='Export it' "
- Come here at the Tracker_as_Calendar_12 page:
http://xavi-9794-5876.show.tikiwiki.org/tiki-index.php?page=Tracker_as_Calendar_12 - You can't see the form field to filter based on the multiselect field. You type Laser at the text field to filter, and a 0 byte file is produced.
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.
- Come here at the homepage:
- 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 typeCopy 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- 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