J
|
Jane 7/12/2006 |
Hi, select `_person`.`ID`, `Name`&' '&`Vorname`&' '&`Geburtsdatum` as `full info`, `Geschlecht`, `Grund`, `Wohnort`, `Straße`, `Absender`, `Datum`, `PEID`, `Vorgang`, `Person`, `tgbNr`, `Sb`, `Oe`, `Bemerkungen`, `Art`, `erledigt` From `_person` inner join `_posteingang` on (`_person`.`ID`=`_posteingang`.`PEID`) |
D
|
dieter author 7/12/2006 |
Hi, use & for concat two or more fields. See my example:
|
J
|
Jane 7/12/2006 |
Sorry for my fault. select `_person`.`ID`, concat(`Name`,' ',`Vorname`,' ',`Geburtsdatum`) as `full info`, `Geschlecht`, `Grund`, `Wohnort`, `Straße`, `Absender`, `Datum`, `PEID`, `Vorgang`, `Person`, `tgbNr`, `Sb`, `Oe`, `Bemerkungen`, `Art`, `erledigt` From `_person` inner join `_posteingang` on (`_person`.`ID`=`_posteingang`.`PEID`) |
D
|
dieter author 7/12/2006 |
Sorry for my fault. Here is the correct query:
|
J
|
Jane 7/12/2006 |
You can use html tag to format full info field. ... concat('<i>',`Name`,'</i> ',`Vorname`,' ',`Geburtsdatum`) as `full info`, ...
|
D
|
dieter author 7/13/2006 |
You can use html tag to format full info field. Here is an example: And then select HTML in the View as dropdown box on the Formatting tab. To format datetime field use date_format MySQL function.
|
J
|
Jane 7/13/2006 |
Hi, if("TableName"==$table && $field=="full info") return "`TableName`.`full info`";
if("TableName"==$table && $field=="full info") return "concat('<i>',`Name`,'</i>
|
D
|
dieter author 7/14/2006 |
Hi, sorting works correct for concat fields on my test box. Could you give me a URL to your pages where I can see this List page? You need to modify include/dbcommon.php file for search. Open this file, find function GetFullFieldName and replace following line: with this one: where TableName is your actual table name.
|
![]() |
Alexey admin 7/14/2006 |
Dieter, DATE_FORMAT(`Geburtsdatum`,'%d.%m.%Y')
`Geburtsdatum` |
D
|
dieter author 7/14/2006 |
Dieter, use DATE_FORMAT function to format your date field. I.e. instead of just
|
J
|
Jane 7/14/2006 |
Use this function in your SQL query: ... concat('<i>',`Name`,'</i> ',`Vorname`,' ',DATE_FORMAT(`Geburtsdatum`,'%d.%m.%Y') as `full info`, ...
if("TableName"==$table && $field=="full info") return "concat('<i>',`Name`,'</i> |
D
|
dieter author 7/14/2006 |
Use this function in your SQL query: Make the same changes in the include/dbcommon.php file:
|