[coldbox-3.5.1] html.select doesn't work


I would like to use html.select populating it with the records of a
query. I have tried the following:

html.select( name="page.moduleId", bind=prc.qryGetModules,
nameColumn="variabelname", column="id",
selectedValue=prc.objPage.getModuleId(), label="Modul" )

query: prc.qryGetModules
value-column: id
name-column: variabelname

When I dump the query before outputting the select field, the query
has records, however the select is empty. Could you please tell me,
what I'm doing wrong?


You need to pass the query into the options argument

Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Thanks a lot!