I am still playing with SELECT(OPTION()), am having a challenge
adding a ---select--- option to a list of options generated from a
table. I have this, when it excites it adds an option with no content
but with a value of all options see below:
print SELECT(CAT(OPTION('--select--'),*[OPTION(s.name, _value=s.id)
for s in db(db.file_subject).select()]))
<select>
<option value="<option
value="--select--">--select--</option><option value="1">Information
Technology</option><option value="2">Correspondance</option>">
<option value="--select--">--select--</option>
<option value="1">Information Technology</option>
<option value="2">Correspondance</option></option>
</select>
This output is not what is expected, the SELECT is rendered all
wrongly, any idea what the helper should look like?
Teddy L.
--
.......................................................................................
Teddy Lubasi Nyambe
Opensource Zambia
Lusaka, ZAMBIA
Cell: +260 97 7760473
website: http://www.opensource.org.zm
~/
Human Knowledge belongs to the world! - AntiTrust
Man is a tool-using animal. Without tools he is nothing, with tools he
is all - Thomas Carlyle 1795-1881
/~
--