Loading...
 
Features / Usability

Features / Usability


TRACKERIF

posts: 42 Spain

Hello,

I would like to ask for help with this problem.
I try to use the TRACKERIF plugin within a LIST, but I do not know if I do something wrong, because it always shows OPTION1, regardless of the value of field 84.
Can someone help me.

Thank you very much

Santi

this is the code
{CODE()}
{LIST()}
{filter field="tracker_id" content="10"}
{pagination max=50}
{filter type="trackeritem"}


{OUTPUT(template="../templates/search/list/table2.tpl" downloadable="Sample file.csv")}
{column field="ref1" label="Field1"}
{column field="ref2" label="Ambit2"}
{column field="ref3" label="Prova"}
{tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:text|type:digit" tsfilters="type:text|type:text|type:text" tspaginate="max:50"}
{OUTPUT}

{FORMAT(name="ref1")}{display name="tracker_field_bdnOne"}{FORMAT}
{FORMAT(name="ref2")}{display name="tracker_field_bdnTwo"}{FORMAT}
{FORMAT(name="ref3")}OPTION1
{LIST} 
{CODE}

posts: 42 Spain

Sorry......this is the code

Santi

{LIST()} {filter field="tracker_id" content="10"} {pagination max=50} {filter type="trackeritem"} {OUTPUT(template="../templates/search/list/table2.tpl" downloadable="Sample file.csv")} {column field="ref1" label="Field1"} {column field="ref2" label="Ambit2"} {column field="ref3" label="Prova"} {tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:text|type:digit" tsfilters="type:text|type:text|type:text" tspaginate="max:50"} {OUTPUT} {FORMAT(name="ref1")}{display name="tracker_field_bdnOne"}{FORMAT} {FORMAT(name="ref2")}{display name="tracker_field_bdnTwo"}{FORMAT} {FORMAT(name="ref3")}} {TRACKERIF(test="(f_84=1)")}OPTION1 {ELSE} OPTION2{TRACKERIF} {FORMAT} {LIST}


posts: 42 Spain

Hi luciash
Thank you very much for your answer.
Yes, in one of the columns of the table the value of field 84 is shown and there are values ​​other than 1.
I have also tested "==", but it does not work. bad luck. jeje
thanks again.

I'll keep trying
Santi

posts: 2428 Czech Republic
Ah, I wonder how that plugin is supposed even to work without specifying itemId... it must go through all the items and if it finds first with value "1" it returns true I guess. Maybe better try https://doc.tiki.org/PluginTrackerItemField and specify itemId param (something like itemId="{display name="object_id"}" I guess?).