Loading...
 
Skip to main content

Features / Usability


tracker filterfield confusion (filtervalue)

Hi,

I'm pretty sure this can be done easily, if one understands what is going on.

The scenario - version 3.3 tikiwiki

tracker ID 14
fieldID 1 campaign
fieldID 2 start date
fieldID 3 end date
fieldID 4 info
fieldID 5 Week or Day

Field1 is a dropbox, with values such as water,energy,multi
Field2 is a dropbox with values: Week,Monday,Tuesday,Wednesday

Under Admin -> Trackers -> TrackerID 14 (i.e. looking at this tracker) there is a 'choose filter' drop box. This dropbox has campaign, info, week or day, and if campaign is selected then water,energy,multi is available to select and the filter works as I'd expect, you select energy for eample, and only energy entries are listed. Same if week or day is selected (i.e. options for week, monday, tuesday).

I really like and need this feature.

The issue: I figured out how to get the tracker listed on a page, but this bit of magic filtering is lost. I've been reading the documentation, and trying to find examples, but cannot figure it out.

Please note - i removed curly brackets because they cut off the posting

TRACKERLIST(trackerId="14" fields="1:2:3:4:5" filterfield=1:2)}""" Up to this point, I get it, it is identifying the tracker, indicating the fields to list, and then identifying the fields that you want to filter (i.e. "campaign" or "week or day")

I am confused:
Filter value of the filterfield. (ex: *value will display items where the filtered field value ends with "value" string, value* will display anything where it begins with, value will display matches containing the string)

I don't understand the above at all... I'm not a programmer, and not a webdesigner, so am far out in the field. Is there something I'm missing that is obvious to someone who understand the above? It is directly from the documentation. I'm not ashamed to say 'I don't get it'.

The other option is exact value:
In Tiki > 5.0, you can also use field(x, id) and notfield(x, id) where x is a fieldId to filter against the value of the field x of the item id. If id is not specified , field(x) when the URL param itemId is used. You can also filter on a field value of a user tracker. field(x, user, y) where x is the field from the user tracker, user is the string user, y is the trackerId.

To me the above says - use field(1,itemid). This also confuses me, I get the field1 bit, but why then itemid from the tracker?


This is what I have (without the PLEASE HELP, obviously)
TRACKERLIST(trackerId="14" fields="1:2:3:4:5" filterfield=1:2 filtervalue= PLEASE HELP} Notice{TRACKER}

I also have no idea how to make this appear in a drop bok, all I've read is that filterfield "when filterfield is a dropdown box, exactvalue must be the text of the item in the drop down list without quotation marks" and "when filterfield is a category, exactvalue must be the numeric id, without quotes of the category item to filter the list (which I don't even think is applicable to version 3.3)


Thanks in advance for any simplification/guidance/examples

A true bumpkin amongst the cityfolk,
Bueymo

TRACKERFILTER

I came across that when I was looking. It works, easy to understand documentation that reflected what I thought I wanted.

I am wondering though - I looked around, but did not know what word to search for - I imagine trackerfilter would have quickly given me the info I was hoping to find. Could anyone suggest the best place for someone to start looking when the 'language' is not there to do a proper search with?

thanks for all, hope this helps another country bumpkin! 😊

Bueymo