Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  some trouble with readonly fields

phpMyEdit Configuration     some trouble with readonly fields
Odoslať novú tému   Odpovedať na tému    
 
Loki     Založený: 28.04.2006   Príspevky: 6  
Príspevok 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
Príspevok 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  
Príspevok 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  
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov