Loading...
 
Skip to main content

Features / Usability


Extract data from Tikiwiki

Hi,

I need to extract some data from a tracker DB in tikiwiki (by SELECT), I am trying to understand the relationship of this tables without success :

tiki_trackers
tiki_tracker_fields
tiki_tracker_item_fields

Do you have an example using SELECT.

Thanks in advance

SALUD...

The

  • tiki_trackers — Defines the (unique) trackerId for each tracker.
  • tiki_tracker_fields — Defines each field information (e.g., name, options, etc.) for each tracker field. There's a unique fieldId and a references to the trackerId__.
  • tiki_tracker_item_fields — Contains the actual value for each tracker field. There are references to the tracker itemId and fieldId.


Instead of creating a SELECT statement, why not simply use one of the existing tracker plugins (TRACKERLIST, TRACKERFILTER, etc.) to extract the required data? You loose all of the permission/security checks when you query the DB directly.

You can also build a pretty tracker and include some basic Smarty syntax (e.g., if .. then... else...) within the page.


HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.comQuestion
Tiki for SmartiesQuestion, your source for the best (and only) Tiki books, guides, and tutorials.

Hi Rick,
I think my area of question is relate to this thread.

Trackers are great, particularly the filters. But for daily work, they are missing two features - or maybe I just havn't discovered them.

I can't seem to export a selection of a tracker, like , for example, all the entries in one particular month (i.e month of September). Using the 'export' function just exports the entire tracker.

Second, while the filters are awesome, you can only just look at the data selected through the filter but can't export that selection - either by .csv or (would be cool) to a Tiki Sheet.

Finally, not extracting data related, but is there any way to put sum totals on the bottom of trackers (for number or currency fields)? Or through a filter (like total for the month of September).

thanks,
Mike

found the 'sum total' function and export in Advanced Options of a tracker when viewed in a wiki page (but export keeps giving me errors, will need to experiment more).

also found PluginTrackerList which has an excellent explanation of 'Sorting, Filtering and Pagination', or basically what I was looking for: filtering on time a time period like one month.

thought I thoroughly dug through everything before my previous post, but apparently not 😊