Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Need help on Dropdown from same table for new entry

phpMyEdit Configuration     Need help on Dropdown from same table for new entry
Odoslať novú tému   Odpovedať na tému    
 
vikram     Založený: 26.02.2010   Príspevky: 1  
Príspevok Zaslal: 2010-02-26 06:13
Návrat hore  Odpovedať s citátom     

I have a table which builds a tree of activities( 1st level to nth level).

In entering a new activity_id i need to check the parent activity.
16 -Parent
16.1 - 2nd Level
16.1.1 - 3rd level.

///Table Columns:
$opts['fdd']['activity_id']
$opts['fdd']['activity_description']
$opts['fdd']['parent_activity_id']
$opts['fdd']['activity_level']


/// Need to add a Default value for the Drop down for the first Entry...
// Also might need to select activity_level based on 1,2,3 for subsequent entries
$opts['fdd']['parent_activity_id'] = array(
'name' => 'Parent activity ID',
'select' => 'D',
'maxlen' => 50,
'sort' => true,
'values' => array
(
'table' => 'activity_list_master',
'column' => 'activity_id'

//'filters' => 'activity_level= "1"'
)
);


So i have the columns activity_id and parent-activity_id. Now with this table, i need to provide user a drop down to select a blank value other for the first time i enter a new activity_id(say 16), there already is a value selected for the parent_activity_id(drop_down from activity_id).

Should i just add a blank value i Database or can i add a default "" value in the Dropdown?.

Thanks in advance.

 
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