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  »  Read only, not read only?

phpMyEdit Features     Read only, not read only?
Odoslať novú tému   Odpovedať na tému    
 
milos     Založený: 24.03.2004   Príspevky: 8  
Príspevok Zaslal: 2004-03-26 18:00
Návrat hore  Odpovedať s citátom     

I am looking at the code, and see that when the field is "read only" you cannot write anything in that field with your PHP script. I think that this is not Ok.

I have a field UID that represents user who made last modifications to a record. This field should be shown to a user as read only. However, when I need to change this value before insert or update, I cannot because all "read only" fields are ignored! :(

Therefore, this should be changed with additional property (onchange_value or similar) to allow field value to be written.

 
milos     Založený: 24.03.2004   Príspevky: 8  
Príspevok Zaslal: 2004-03-26 18:11
Návrat hore  Odpovedať s citátom     

milos Napísal:
However, when I need to change this value before insert or update, I cannot


Correction, for insert 'default' works, but for update, there is no solution.

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-03-26 18:46
Návrat hore  Odpovedať s citátom     

see http://opensource.platon.sk/forum/projects/viewtopic.php?t=302 coping with the same.

 
milos     Založený: 24.03.2004   Príspevky: 8  
Príspevok Zaslal: 2004-03-26 19:27
Návrat hore  Odpovedať s citátom     

michal Napísal:
see http://opensource.platon.sk/forum/projects/viewtopic.php?t=302 coping with the same.

It is not the same!!!
I need to show the value, and that value must be read only. I know that I can overwrite entered value (when it is not read only), but this is not what I am looking for.

 
milos     Založený: 24.03.2004   Príspevky: 8  
Príspevok Zaslal: 2004-03-26 19:39
Návrat hore  Odpovedať s citátom     

michal Napísal:
see http://opensource.platon.sk/forum/projects/viewtopic.php?t=302 coping with the same.


The problem is that this

Doug Hockinson Napísal:
How about 'input' => 'R' with something similar to
Kód:
// Force over-writing date('Y-m-d') for col_name:
$opts['cgi']['overwrite']['col_name'] = date('Y-m-d');


Will not work, because of:
Kód:
for ($k = 0; $k < $this->num_fds; $k++) {
         if ($this->processed($k) && !$this->readonly($k)) {


"if" does not allow UPDATE for read only fields.

 
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