Yep, there're some bugs in the dataset.find method, check
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19362A manual approach:
Drag a couple of dataset named "data1_ds" and "foundset_ds" plus a button (not a component) named "myButton". Use this code:
function search(searchTerm){
for(var z in data1_ds.items)
if(data1_ds.items[z].Name==searchTerm){
trace("Match !!")
foundset_ds.addItem(data1_ds.items[z]);
}
}
for(i=0; i<10; i++) data1_ds.addItem({Name:"Name"+i})
listener = {}
listener.modelChanged = function (evt) {
for(var i in evt.target.items) trace(evt.target.items[i].Name)
}
foundset_ds.addEventListener("modelChanged", listener)
myButton.onPress = function(){
this._parent.search("Name5")
}
The foundset_ds dataset will store the searched term
Jorge