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

phpMyEdit Configuration     Validating fields
Odoslať novú tému   Odpovedať na tému    
 
tsrwebmanager     Založený: 26.04.2008   Príspevky: 2  
Príspevok Zaslal: 2009-10-24 20:16
Návrat hore  Odpovedať s citátom     

Forgive if this is basic, my predecessor set up the system, and I have been asked to fix a 'bug' in his implementation. I have

Kód:

$opts['fdd']['Places'] = array(
  'name'     => 'Places',
  'select'   => 'T',
  'maxlen'   => 6,
  'default'  => '4',
  'sort'     => true
);
$opts['fdd']['Places']['values']=range(-1,4);


Which permits any vaue from -1 to 4 to be entered - thats Ok but

there is another field

Kód:
$opts['fdd']['Course'] = array(
......

I would like the range to vary depending on what the user enters in ['Course'], which is picked from a long list of specified ['values']
(pseudo code)
Kód:

if ['Course']='Diary' then
['Places']['Values']=range[-1,0]
else
['Places']['Values']=range[0,4]
end if

Is there any way of doing that - I couldnt spot it in the documentation

Any advice appreciated

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2009-10-25 18:29
Návrat hore  Odpovedať s citátom     

Lookups can be created if they are not dependent on values entered in another column in the same form.

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html#AEN958

Is the lookup field in the same table, or in a different table?

 
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