T
|
thesofa 7/15/2008 |
Hi All, I have 2 questions relating to Lookup Tables _Table Schema _Table: journey Table: country Field: country I have set the country field as a lookup table in journey_add with the following switch 'Allow to add new values on the fly' Q1 How do i display the contents on the drop down list to be first letter uppercase, remaining lowercase. i.e. something like $value = ucwords(strtolower($value)); England Germany Scotland Q2 Assuming i have a country list as: Belgium France Germany Holland Scotland UK How can i change this so that it will always display UK Scotland ... followed by the ascending order of countries entered. Thank you in advance. Lisa
|
J
|
Jane 7/15/2008 |
Regarding the first question. |
L
|
Lisa2006 author 7/15/2008 |
Regarding the first question. Use custom expression as display field on the "Edit as" settings dialog. Here is the list of MySQL string functions: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html
|
J
|
Jane 7/16/2008 |
Please read thread more carefully. |
L
|
Lisa2006 author 7/16/2008 |
Please read thread more carefully. You need to use MySQL functions in the custom expression on the "Edit as" settings dialog.
|
J
|
Jane 7/16/2008 |
Use custom expression as display field on the "Edit as" settings dialog. |
L
|
Lisa2006 author 7/16/2008 |
Jane, |
K
|
kdeloach 7/16/2008 |
|
L
|
Lisa2006 author 7/16/2008 |
Hi Kdeloach, |
K
|
kdeloach 7/16/2008 |
Replace ucwords with ucfirst ucfirst(strtolower($value)) |
L
|
Lisa2006 author 7/17/2008 |
Replace ucwords with ucfirst ucfirst(strtolower($value))
|
J
|
Jane 7/17/2008 |
Hi, CONCAT(UPPER(SUBSTRING(FieldName, 1, 1)), LOWER(SUBSTRING(FieldName FROM 2))) |
L
|
Lisa2006 author 7/17/2008 |
Hi, there is no ucfirst MySQL function. You need to use only MySQL functions in the custom expression on the "Edit as" settings dialog. Here is just a sample:
|
L
|
Lisa2006 author 7/21/2008 |
Hi forum, |
J
|
Jane 7/21/2008 |
Hi, |