| Index
» Projekty
» phpMyEdit
» Fórum
» filter field |
 |
yyg
Založený: 24.04.2008
Príspevky: 2
Zaslal: 2008-09-19 12:50
Návrat hore
Odpovedať s citátom
|
I have found a trivial workaround but still would appreciate
a more elegant solution using filters
Patch: two SQL queries at the beginning of the php code.
-----------------------------------------------------------
I want to replace the value in one column "pdf" when value in
one other column "cprd" in the same table is equal to "YES".
Not displaying the value of 'pdf' when the condition is met is also fine.
I inserted this code in the description of field 'pdf'
'values' => array(
'table' => 'article',
'column' => 'pdf',
'description' => 'anything',
'filters' => 'cprd = "YES" ')
I did not add anything anywhere else.
The value is still displayed.
I guess I did not understand what "filter' does in a field.
Thanks in advance - Jacques
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|