Yes, it would work. (or should work - yell at me if it doesnt) On 8/19/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > Sometimes, no, make that usually, Macromedia's documentation for CF > just barely scratches the surface. > > I have an existing collection that is populated from a query. The > data returned from this query gets updated quite often. In order to > allow accurate searches, I would like to add (for new records) or > update a record in a collection from query data...actually, I'll be > passing the data in via a CFC... > > Is there a way to do this? Here is the original tag call to populate > the collection: > > <cfindex action="UPDATE" collection="coll_datacards" type="CUSTOM" > key="id" title="name" query="getDatacardsForIndexing" body="name, > cardcontent, metadata"> > > So, in order to do this, would I do something like: > > <cfindex action="UPDATE" collection="coll_datacards" type="CUSTOM" > key="#arguments.id#" title="#arguments.name#" body="#arguments.name#, > #arguments.cardcontent#, #arguments.metadata#"> > > (note that I omitted the query attribute). Would this update just a > single record in the coll_datacards collection? > > Thanks, > > Pete > > PS Is it time to create an "Undocumented CF" web site? If there's > enough interest and enough content, I'm willing to start this as a > project...I just know that between things like cfcollection (and > related tags), cfdocument, cfchart, and more that there's a lot of > stuff that Macromedia doesn't cover in their docs. > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215826 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54