| Index
» Projekty
» phpMyEdit
» Fórum
» Sorting in dropdown box while adding new record |
 |
sportytom
Založený: 10.12.2009
Príspevky: 2
Zaslal: 2009-12-10 10:10
Návrat hore
Odpovedať s citátom
|
Hi Folks,
while adding a record to a table, I make reference to a foreign key. I resolve the foreign key (it is an integer) with a humanly understandable and readable label from the foreign key table (actually several concotenated labels using the "description" functionality with "colums" and "divs").
So when you add a record to the table in question, you have also - using a drop down - to choose a foreign key which is displayed as text for the user.
My question now is the following: How can I sort the text-choices in the drop-down box itself?
I know how to sort them in the normal list view and that works very well, but while adding new records in the drop-down box of the "Add" template the sorting is not applied (it sorts alphabetically as default (not what I have specified for the list view)).
Any support would be greatly appreciated.
Tom.
|
sportytom
Založený: 10.12.2009
Príspevky: 2
Zaslal: 2010-11-16 12:16
Návrat hore
Odpovedať s citátom
|
Hi, it has almost been a year... It would be great if anybody had an answer to this.
In short, the question is: How do you sort the drop-down lists, when you add a record? (more details see below).
Any help is appreciated.
Thanks.
Tom
| sportytom Napísal: |
Hi Folks,
while adding a record to a table, I make reference to a foreign key. I resolve the foreign key (it is an integer) with a humanly understandable and readable label from the foreign key table (actually several concotenated labels using the "description" functionality with "colums" and "divs").
So when you add a record to the table in question, you have also - using a drop down - to choose a foreign key which is displayed as text for the user.
My question now is the following: How can I sort the text-choices in the drop-down box itself?
I know how to sort them in the normal list view and that works very well, but while adding new records in the drop-down box of the "Add" template the sorting is not applied (it sorts alphabetically as default (not what I have specified for the list view)).
Any support would be greatly appreciated.
Tom. |
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-11-16 21:17
Návrat hore
Odpovedať s citátom
|
You might elicit a response by posting the code for the lookup. There's an 'orderby' option in the documentation at
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html#AEN958
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|