Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 13. október 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Editing records and drop down values

phpMyEdit Features     Editing records and drop down values
Odoslať novú tému   Odpovedať na tému    
 
Meerkat     Založený: 02.12.2005   Príspevky: 1  
Príspevok Zaslal: 2005-12-02 22:47
Návrat hore  Odpovedať s citátom     

I have defined certain fields using drop down boxes, eg. $opts['fdd']['PROBABILITYWIN'] = array(
'name' => 'PROBABILITYWIN',
'select' => 'D',
'maxlen' => 2,
'sort' => true
);

I have also specified the allowable field values, eg.
$opts['fdd']['PROBABILITYWIN']['values'] = array('100','75','50','25');

When editing using the "Change" option, the drop down box shows the first entry in the list (100)rather than any existing table value, say 25.

How can I get it to default to the existing database value once the record has been created?

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2005-12-09 12:21
Návrat hore  Odpovedať s citátom     

you have 'values' set. if the value in the field is not in values, the first value is showed. so if you have value 24, 100 is showed when editing.

 
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