| Index
» Projekty
» phpMyEdit
» Fórum
» Conditional Hide fields in View |
 |
ned@kelly.org.au
Založený: 08.04.2004
Príspevky: 22
Bydlisko: Mosquito Flat, Australia
Zaslal: 2004-04-16 06:10
Návrat hore
Odpovedať s citátom
|
Hi All
One final question
I would like to be able to select View for a particular record in the List view and have certains fields hidden in View depending on another field in the table.
ie:
| Kód: |
if Status = '1'
hide fields 13,14,15 from View
elseif Status = '2'
hide fields 10,11,12 from View
etc..
|
Im sure this is possible, just dont were to start
Cheers
Ned
|
hbernard
Založený: 23.03.2003
Príspevky: 159
Bydlisko: FRANCE
Zaslal: 2004-04-16 07:56
Návrat hore
Odpovedať s citátom
|
| ned@kelly.org.au Napísal: |
Hi All
One final question
I would like to be able to select View for a particular record in the List view and have certains fields hidden in View depending on another field in the table.
ie:
| Kód: |
if Status = '1'
hide fields 13,14,15 from View
elseif Status = '2'
hide fields 10,11,12 from View
etc..
|
Im sure this is possible, just dont were to start
Cheers
Ned |
Well, you have to use 'pre' 'select' triggers and change $this->fdd['field13']['input']['H'] or something like that in the triggers.
But you will have to remake on hand the query to know what is 'status' value (currently, there is no predefined var in 'pre' triggers, except $this.
I'm not sure it will work, but it has to.
Please report here any solution you found. (or trouble to have it to work)
_________________ hbernard - phpMyEdit updater.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|