Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Table lookup via key: How ?

phpMyEdit General     Table lookup via key: How ?
Odoslať novú tému   Odpovedať na tému    
 
Silberdrache     Založený: 08.09.2006   Príspevky: 7  
Príspevok Zaslal: 2006-09-08 12:51
Návrat hore  Odpovedať s citátom     

I have two tables:

Table: maturand
key: maturand_id
Field: maturand_name


Table: beratung
foreign key: id_beratung_maturand


Where "maturand_id" equals "id_beratung_maturand".

So first I am showing table "maturand" where you can click an a name (=field "maturand_name")

The URL looks like this:

http://www.admin.acap.ethz.ch/phpmyedit/beratung.php?PME_sys_operation=Change&PME_sys_rec=383

The "383" is the correct key. After clicking on the link I'd like to see now only those records
in table "beratung" where "id_beratung_maturand" is "383".

Unfortunately at the moment just all records in "beratung" will be shown.

Here is my code:

$opts['fdd']['maturand_name'] = array(
'name' => 'Maturand name',
'select' => 'T',
'maxlen' => 255,
'textarea' => array(
'rows' => 5,
'cols' => 50),
'sort' => true,
'URL' => 'beratung.php?PME_sys_operation=Change&PME_sys_rec=$key',
'values' => array(
'table' => 'beratung',
'column' => 'id_beratung_maturand')
);

Next step would be to create a new record with the
$key in table "beratung". Can that somehow be integrated, too ?

I am really hoping to finding a solution.

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2006-09-08 14:32
Návrat hore  Odpovedať s citátom     

probably
?fl=1&PME_sys_qf3=$key

should work (the same as when you use filters)

 
Silberdrache     Založený: 08.09.2006   Príspevky: 7  
Príspevok Zaslal: 2006-09-08 14:36
Návrat hore  Odpovedať s citátom     

GREAT !

It's working and exactly what I was searching for !
Thanks a lot :-)

Additional question:

Is there some documentation für URL parameters
like PME_sys_operation, PME_sys_rec etc. ?

Could not find it anywhere.

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2006-09-08 14:44
Návrat hore  Odpovedať s citátom     

not sure,

prefixes are mentioned (in cvs or in upcoming release)

usually just opening the html file helps a lot

 
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