Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  PME and subforms

phpMyEdit Configuration     PME and subforms
Odoslať novú tému   Odpovedať na tému    
 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2003-07-29 13:50
Návrat hore  Odpovedať s citátom     

I was not able to track a previous discussion about sub forms.

What I would like is to be able to handle 2 instance of phpMyEdit.class in the same page....

Can somebody point me to the initial discussion or put some hints... ?

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2003-07-31 12:27
Návrat hore  Odpovedať s citátom     

Your question is a good one, this is not really subforming, it deals with having to instances of phpMYEdit on the same page.

In MySQL: (specific things with dual-keys are out of the scope of this topic)
table0:
ID (Primary Key concatenate ID1+ID2 with triggers)
ID1
ID2
[Some fields]

Table1:
ID1 (primary key)
[some fields]

On the Web Page :
[
First instance of phpMyEdit with table1
Url linking to set $myvalue=ID1
]
[
Second instance of phMyEdit with table0.
Filter set to ID1 = $myvalue when table1 is in listmode
Filter set to ID1 = [ID1 key when table1 is in others mode]
]

The troubles to achieve this are :
- Currently I must have a different language file for the second form, in order not to have 'operation' same name.
- erratic Javascript validation
=> Both are namespace problem. Maybe I should fill a bug report and post a patch to make custom prefix set in ALL variables, funcs, of phpMyEdit output.

Another way (but quite different usuability) could be to have only table1 but then, I need to patch pme to do specific 'left join on' stuff and reload onfocus, this could be a separate topic)

 
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