Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 16. apríl 2024
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  another table dropdown and onchange fill the input field

phpMyEdit Configuration     another table dropdown and onchange fill the input field
Odoslať novú tému   Odpovedať na tému    
 
dhomi     Založený: 05.03.2010   Príspevky: 4  
Príspevok Zaslal: 2010-03-05 15:16
Návrat hore  Odpovedať s citátom     

I have a question, (problem sounds so negative, bah)
I want in the ADD screen to get a dropdown list from table2.NAME column, which onchange fills the Code input filed with the table2.CODE (of the selected table2.NAME). So, it is not joined, just this table uses another table2 for filling two fileds of the originaltable.

Table 2 looks like:
CODE NAME
123 Beni
232 Mary

Is it clear? I tried a lot of postings/solutions here but still didnt got it to work

greetings from The Netherlands,

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2010-03-06 15:45
Návrat hore  Odpovedať s citátom     

Assuming `CODE` is a unique key, you can create a trigger which automatically updates the `NAME` field after the record is inserted. Refer to the documentation on triggers.

 
dhomi     Založený: 05.03.2010   Príspevky: 4  
Príspevok Zaslal: 2010-03-06 17:01
Návrat hore  Odpovedať s citátom     

but how?

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2010-03-06 19:19
Návrat hore  Odpovedať s citátom     

Locate examples for using triggers by using the forum's Search feature to search for 'trigger' and 'update' ... one example is outlined at the following link.

http://opensource.platon.sk/forum/projects/viewtopic.php?t=502127&highlight=trigger+update

 
dhomi     Založený: 05.03.2010   Príspevky: 4  
Príspevok Zaslal: 2010-03-10 10:46
Návrat hore  Odpovedať s citátom     

i got the one dropdown filled with the select query. So: one down
Now:
But cant get the textfield autofilled when the dropdown is changed. This fields column corresponds to the row selected from dropdown

 
dhomi     Založený: 05.03.2010   Príspevky: 4  
Príspevok Zaslal: 2010-03-14 08:56
Návrat hore  Odpovedať s citátom     

anybody please help

greetings

 
Paulo Fernando     Založený: 05.10.2014   Príspevky: 19  
Príspevok Zaslal: 2015-01-02 18:32
Návrat hore  Odpovedať s citátom     

there is no way.

All editors handle the events, but offer only triggers is a major flaw. I'm researching and found the https://mysqlajaxtableeditor.com/ but how to integrate it to phpmyedit?

 
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