Re: Determining if a value exists in a query result

2004-04-09 Thread Austin Govella
Austin Govella wrote: I have a list of generic features. And I have a list of features assigned to a specific item. I want to print out the generic features with checkboxes next to them. If the item in question has been assigned one of the features, I would like the checkbox for that

RE: Determining if a value exists in a query result

2004-04-09 Thread Mark W. Breneman
That is very similar to the way I do it. I think you can skip the query loop by using valuelist(): cfset variables.selected_features = valuelist(q_selected_features. feature_id) Note you can simplify that cfif statement in the checkbox down to: cfif listfind(variables.selected_features,

Re: Determining if a value exists in a query result

2004-04-09 Thread Austin Govella
Mark W. Breneman wrote: I think you can skip the query loop by using valuelist(): cfset variables.selected_features = valuelist(q_selected_features. feature_id) Note you can simplify that cfif statement in the checkbox down to: cfif listfind(variables.selected_features, feature_id)