| Index
» Projekty
» phpMyEdit
» Fórum
» Problems with JOIN => Difference in Edit and Display |
 |
beatjost
Založený: 31.03.2004
Príspevky: 10
Zaslal: 2004-03-31 10:13
Návrat hore
Odpovedať s citátom
|
I have a table1 with a fk of table2.
Now I want instead to show the user key its name..
This works perfectly in the list view and also for the display (even though in new).
why is nothing displayed in edit-modus? is there a fault in my options?
| Kód: |
$opts['fdd']['user'] = array(
'name' => 'Benutzer',
'select' => 'D',
'maxlen' => 30,
'required' => true,
'sort' => true,
'options' => 'ACPDVL'
);
//JOIN...
$opts['fdd']['user']['values']['table' = 'xmentor103_user';
$opts['fdd']['user']['values']['column'] = 'userid';
$opts['fdd']['user']['values']['description'] = 'realname'; |
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2004-03-31 11:55
Návrat hore
Odpovedať s citátom
|
There should be pulldown menu with you user names.
Also note missing bracket (']') in your table lookup configuration.
_________________ Ondrej Jombik (Nepto)
Visit my
homepage
, review my recent
CV
or
projects
and give me some
feedback
.
|
beatjost
Založený: 31.03.2004
Príspevky: 10
Zaslal: 2004-03-31 12:39
Návrat hore
Odpovedať s citátom
|
thank you for your reply!
but in fact i did not forget this bracket... unfortunately i missed it in this forum post.
as i said... new and display works properly.
but edit or copy shows an empty page (except of title and buttons).
again my code sample...
| Kód: |
$opts['fdd']['user'] = array(
'name' => 'Benutzer',
'select' => 'D',
'maxlen' => 11,
'required' => true,
'sort' => true,
'options' => 'ACPDVL'
);
//JOIN...
$opts['fdd']['user']['values']['table'] = 'xmentor103_user';
$opts['fdd']['user']['values']['column'] = 'userid';
$opts['fdd']['user']['values']['description'] = 'realname';
|
any ideas???
| nepto Napísal: |
There should be pulldown menu with you user names.
Also note missing bracket (']') in your table lookup configuration. |
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2004-03-31 13:49
Návrat hore
Odpovedať s citátom
|
This has no connection to lookup table.
Have you got table primary key properly defined and configured?
_________________ Ondrej Jombik (Nepto)
Visit my
homepage
, review my recent
CV
or
projects
and give me some
feedback
.
|
beatjost
Založený: 31.03.2004
Príspevky: 10
Zaslal: 2004-03-31 14:02
Návrat hore
Odpovedať s citátom
|
thank you - the bug was in the key configuration...
greetz
| nepto Napísal: |
This has no connection to lookup table.
Have you got table primary key properly defined and configured? |
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|