> don't understand
> why BD can't handle this, but what are gonna do right?
> <cfloop query="iquery">
> <cfif ivalue eq evaluate(valcol)><cfset selected =
> "selected"><cfelse><cfset selected = ""></cfif>
> <cfset iout[x] = "<option value=""#evaluate(valcol)#""
> #selected#>#htmleditformat(evaluate(labelcol))#</option>">
> <cfset x = x+1>
> </cfloop>
> Anyway, that seems to be working pretty well now. When I
> have some more
> time I'm going to put some real energy into figuring out
> why BD was
> choking on that code.
Only problem I see with this is if you want to use the function for a
multiple-select list, you'll lose prepopulation in the form if
multiple items have been selected... That's what the listfind()
function call was about -- but it looks like you've removed it... here
I think it ought to be <cfif listfind(ivalue,evaluate(valcol))> ...
although that makes me nervous since valcol is usually just the column
name -- I generally prefer to fully-qualify things myself. Anyway,
just thought I'd give you a heads up on that.
s. isaac dealey 954.927.5117
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

