| Index
» Projekty
» phpMyEdit
» Fórum
» some trouble with readonly fields |
 |
Loki
Založený: 28.04.2006
Príspevky: 6
Zaslal: 2006-05-08 15:00
Návrat hore
Odpovedať s citátom
|
Hi,
I've some trouble by using the option ['input'] = 'R';
If I use it inside a update-pre trigger the value of this entry will be deleted after saving the other changes.
While "normal" using inside the main script everything is okay.
My problem:
I would show a field as readonly, depending of the stored value. This can't be so difficult?! Am I right?
e.g.
if value == 'checked' -> show value as readonly
Can anybody help me?
Thank's a lot.
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2006-05-08 15:38
Návrat hore
Odpovedať s citátom
|
the easiest way is see is to change $this->fdd ($opts['fdd']) in the pre trigger, but i never experimented with this.
|
Loki
Založený: 28.04.2006
Príspevky: 6
Zaslal: 2006-05-08 15:43
Návrat hore
Odpovedať s citátom
|
THX
... but this is the problem. After this, the original value of this field is missing and the db-entry is set to zero while saving.
Any other ideas?
|
webmasterextraordinaire
Založený: 25.04.2006
Príspevky: 5
Zaslal: 2006-10-25 19:23
Návrat hore
Odpovedať s citátom
|
Bumpage due to same problem!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|