UPDATE: I was doing it wrong!
Syntax should look like: {TRACKERLIST(trackerId=1 filterfield="2:1" exactvalue="d2v1:d1v1")}{TRACKERLIST}, with each group of arguments passed as a single string.
Also, I'm going to update documentation so it says use ":" instead of "|" like it says to use.
Unable to filter trackerlist on multiple values, or I'm doing it wrong.
As per documentation, using plugin trackerlist you need to have arguments for filterfield and filtervalue or exactvalue to filter the trackerlist by a value in a field.
My understanding is that you provide fields for filterfield as filterfield=x:y to filter values for field x and y, and then exactvalue="value to filter x by"|"value to filter y by"
The documentation says you use a pipe to separate the exactvalue parameters, which if true is inconsistent with the use of ":" everywhere else, and also does not seem to be the case based on the code here from wikiplugin_trackerlist.php
/
if (isset($_REQUEST['reloff']) && empty($_REQUEST['itemId']) && !empty($_REQUEST['trackerId'])) { //coming from a pagination $items = $trklib->list_items( $_REQUEST['trackerId'], $_REQUEST['reloff'], 1, '', '', isset($_REQUEST['filterfield']) ? preg_split('/\s*:\s*/', $_REQUEST['filterfield']) : '', isset($_REQUEST['filtervalue']) ? preg_split('/\s*:\s*/', $_REQUEST['filtervalue']) : '', isset($_REQUEST['status']) ? preg_split('/\s*:\s*/', $_REQUEST['status']) : '', isset($_REQUEST['initial']) ? $_REQUEST['initial'] : '', isset($_REQUEST['exactvalue']) ? preg_split('/\s*:\s*/', $_REQUEST['exactvalue']) : '', $filter );
I don't know much about regular expressions, but I see ":" in there.
Anyhow, syntax like
{TRACKERLIST(trackerId=5 fields=18:23:22 filterfield=32:32 exactvalue="val"|"val2")}{TRACKERLIST}
or
{TRACKERLIST(trackerId=5 fields=18:23:22 filterfield=32:32 exactvalue="not(val)"|"not(val2)")}{TRACKERLIST}
(using "|" or ":") doesn't seem to work.
I'm going to demonstrate/test to make sure this is the case on 11.1, and update if it is.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |