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

phpMyEdit Configuration     combine fields for saving
Odoslať novú tému   Odpovedať na tému    
 
Loki     Založený: 28.04.2006   Príspevky: 6  
Príspevok Zaslal: 2006-05-08 15:40
Návrat hore  Odpovedať s citátom     

Hi all,

can anybody tell me, how I can combine fields (e.g. 3 different fields) for saving into ONE DB-field.
There are 3 "dummy" fields with values from joined tables. This three field should be stored in only one db-field.

Is is possible?

Thanks for help

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2006-05-08 19:49
Návrat hore  Odpovedať s citátom     

Have a look at virtual fields with 'sql' and 'sqlw'.

 
Loki     Založený: 28.04.2006   Príspevky: 6  
Príspevok Zaslal: 2006-05-09 14:11
Návrat hore  Odpovedať s citátom     

okay, thx.
If I use sql and/or sqlw I can combine the fields for saving into the database, but how can I split the stored entry into the original 3 field for additional editing? Any ideas?

 
MG     Založený: 28.06.2006   Príspevky: 5  
Príspevok Zaslal: 2006-06-28 07:15
Návrat hore  Odpovedať s citátom     

Did you manage to get this working.

I have something similar that I am struggling with.

I have a latitude field which is in the format 37.12. I want to display it as 37 7.20' - i.e. have one field for the degrees (37) and another for the minutes (7.20).

I've managed to do that using the sql syntax. That bit was easy.

What I can't do is combine the virtual fields of degrees and minutes back into the original latitiude field.

I tried:
Kód:
'sqlw'     => $latdeg . ' + (' . $latmin . '* 60)'


but it just doesn't recognise the virtual field names - presumably because they don't exist in the database.

Does anyone know how I can reference these two virtual fields in an expression and how I can update the single database field with it?

 
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