[Maypole] Ordering in HTML select fields
Pete Barlow
pete.barlow@ntlworld.com
Thu, 17 Jun 2004 21:49:09 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C454B4.EBD6B5E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
A beginner's question I expect - but how do I change the order in the =
select
field generated (eventually) by the edit template? I have a table with =
an
integer field that holds the id of a row in another table (i.e. has_a) - =
the
items in the select come out ordered by id, whereas I want to order by =
name.
=20
Pete
=20
=20
------=_NextPart_000_000C_01C454B4.EBD6B5E0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D875134320-17062004><FONT face=3DArial size=3D2>A =
beginner's=20
question I expect - but how do I change the order in the select field =
generated=20
(eventually) by the edit template? I have a table with an integer field =
that=20
holds the id of a row in another table (i.e. has_a) - the items in the =
select=20
come out ordered by id, whereas I want to order by =
name.</FONT></SPAN></DIV>
<DIV><SPAN class=3D875134320-17062004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D875134320-17062004><FONT face=3DArial=20
size=3D2>Pete</FONT></SPAN></DIV>
<DIV><SPAN class=3D875134320-17062004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D875134320-17062004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV></BODY></HTML>
------=_NextPart_000_000C_01C454B4.EBD6B5E0--