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

47 views
Skip to first unread message

Tanja Zogg

unread,
May 30, 2012, 5:38:02 AM5/30/12
to ColdBox Platform
Hi

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?

Thanks!

Luis Majano

unread,
May 30, 2012, 11:48:18 AM5/30/12
to col...@googlegroups.com
You need to pass the query into the options argument
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

Tanja Zogg

unread,
May 31, 2012, 2:44:59 AM5/31/12
to ColdBox Platform
Thanks a lot!

On 30 Mai, 17:48, Luis Majano <lmaj...@gmail.com> wrote:
> You need to pass the query into the options argument
>
> Luis F. Majano
> CEO
> Ortus Solutions, Corpwww.ortussolutions.com(http://www.ortussolutions.com)
> Social: twitter.com/lmajano (http://twitter.com/lmajano) facebook.com/lmajano (http://facebook.com/lmajano)
>
>
>
>
>
>
>
> On Wednesday, May 30, 2012 at 2:38 AM, Tanja Zogg wrote:
> > Hi
>
> > 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?
>
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
> > To post to this group, send email to col...@googlegroups.com (mailto:col...@googlegroups.com)
> > To unsubscribe from this group, send email to coldbox-u...@googlegroups.com (mailto:coldbox-u...@googlegroups.com)
Reply all
Reply to author
Forward
0 new messages