deleting multiple records?

0 views
Skip to first unread message

fusionserve.net

unread,
Feb 26, 2009, 11:20:03 AM2/26/09
to Reactor
I've seen this question asked before on the old mailing list but there
seemed to be no final answer.

Is there a way of deleting multiple records in Reactor? I know it
sounds pretty basic but i'm finding if I do the following:


categoryProduct = Reactor.createRecord("mCategoryProduct") ;
categoryProduct.delete(productID=form.productID) ;

productID is not the primary key but I still want to be able to delete
by a different field other than the primary key.

I guess it needs a gateway as it is multiple records but I can't find
a function that does this.

Any help would be much appreciated!

Matt

Dave Phipps

unread,
Feb 27, 2009, 6:34:06 PM2/27/09
to reacto...@googlegroups.com
I think there is a DeleteByFields() method in the Gateway. Create a
gateway and do a cfdump to see the available methods.

Cheers,

Dave

2009/2/26 fusionserve.net <dance...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages