jan99
Založený: 23.01.2008
Príspevky: 13
Zaslal: 2008-04-04 13:01
Návrat hore
Odpovedať s citátom
|
hi!
i want to merge the information of two columns in the dropdownlist.
i use this code:
| Kód: |
$opts['fdd']['cal_link'] = array(
'name' => 'Link',
'select' => 'T',
'maxlen' => 5,
'default' => 1,
'sort' => true,
'help' => 'Verbindung für Links und google-maps',
'values' => array(
'table' => 'phv_adress',
'column' => 'addr_id',
'description' => "concat(addr_club_short,' ',addr_info)",
//'description' => 'addr_club_short',
'orderby' => 'addr_club_short')
); |
and get following mistake-message in edit-status:
| Citácia: |
MySQL error 1054
Unknown column 'phv_adress.concat(addr_club_short,' ',addr_info)' in 'field list' |
can anybody help me ?
regards Jan .-)
|
keels
Založený: 01.04.2008
Príspevky: 3
Zaslal: 2008-04-07 15:30
Návrat hore
Odpovedať s citátom
|
Hi,
I don't think you can use SQL CONCAT when defining lookup fields (although it is possible when defining ordinary fields)
But take a look at the documentation at
4.5. Input restrictions->Table lookup->Column joining
it might be of help.
regards,
k
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|