| Index
» Projekty
» phpMyEdit
» Fórum
» Multiple display of same records when using lookup |
 |
Tathagata
Založený: 14.06.2013
Príspevky: 1
Zaslal: 2013-06-14 19:02
Návrat hore
Odpovedať s citátom
|
When I use a lookup like this:
| Kód: |
'values' => array(
'table'=>'gender',
'column'=>'Gender_Code',
'description'=>'Gender_Desc') |
for my main table form
then for the list I get multiple display of same record of the main table. This is because of the join that it creates I believe. Can anyone suggest a solution.
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2013-10-01 23:05
Návrat hore
Odpovedať s citátom
|
I do believe there must be some problem with your primary key identifier.
phpMyEdit can handle only tables with proper primary key.
Maybe your table definition is missing primary key, or phpMyEdit is not aware about this primary key.
Please post your table definition and $fdd definition from your calling script.
Ondrej
_________________ Ondrej Jombik (Nepto)
Visit my
homepage
, review my recent
CV
or
projects
and give me some
feedback
.
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2013-10-02 17:24
Návrat hore
Odpovedať s citátom
|
Perhaps you need to reference the unique identifier in the lookup table.
| Kód: |
$opts['fdd']['your_field_name'] = array(
'default' => '',
'input' => '',
'name' => 'Gender',
'options' => 'ACPVDFL',
'values' => array(
'table' => 'gender',
'column' => 'id_column_in_gender',
'description'=> array(
'columns' => array('0' => 'Gender_Desc'),
)
)
); |
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|