| Index
» Projekty
» phpMyEdit
» Fórum
» Another Join question |
 |
bentuinstra
Založený: 12.09.2004
Príspevky: 29
Zaslal: 2006-09-28 12:12
Návrat hore
Odpovedať s citátom
|
Hi all,
I've a pme form that reads two fields from another (same) table. So the normal join does not function in pme 5.6 (5.5 it works fine).
How can I get it to work in 5.6?
Kind regards
Ben
My code is:
| Kód: |
$opts['fdd']['AANVRAGER']['values']['table'] = 'prepress_naam';
$opts['fdd']['AANVRAGER']['values']['column'] = 'ID';
$opts['fdd']['AANVRAGER']['values']['description']['columns'][0] = 'VOORNAAM';
$opts['fdd']['AANVRAGER']['name'] = 'AANVR';
$opts['fdd']['AANVRAGER']['select'] = 'D';
$opts['fdd']['AANVRAGER']['sort'] = 'true';
$opts['fdd']['AANVRAGER']['values2'] = ' Selecteer Aanvrager ...';
$opts['fdd']['AANVRAGER']['values']['filters']='AANVRAGER = "YES" ';
$opts['fdd']['KLANT']['values']['table'] = 'prepress_naam';
$opts['fdd']['KLANT']['values']['column'] = 'ID';
$opts['fdd']['KLANT']['values']['description']['columns'][0] = 'NAAM';
$opts['fdd']['KLANT']['name'] = 'KLANT';
$opts['fdd']['KLANT']['select'] = 'D';
$opts['fdd']['KLANT']['sort'] = 'true';
$opts['fdd']['KLANT']['values2'] = ' Selecteer klant ...';
$opts['fdd']['KLANT']['values']['filters']='KLANT = "YES" ';
|
|
bentuinstra
Založený: 12.09.2004
Príspevky: 29
Zaslal: 2006-10-04 12:08
Návrat hore
Odpovedať s citátom
|
Hi all,
Hope there is someone who can help with this problem. It keeps me from upgrading to 5.6
Kind regards,
Ben
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2007-01-04 12:57
Návrat hore
Odpovedať s citátom
|
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html :
last sentence:
Please note that ['values']['filters'] is used for filtering items in dropdown during Add/Edit mode (with a SQL WHERE clause) while ['values']['join'] is useful for having a correct LEFT JOIN against the main table in List/View mode.
however, current cvs version breaks this, lines 572 to 575 should be deleted (imho).
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|