Have fun with this one.
Most of the functionality for this is handled in the DisplayList and DeleteRecord tags (search on massDelete). The
DeleteRecord tag will loop over the pk's provided by the DisplayList tag and invoke the DeleteRecord method of the
DatabaseBlocks component for each pk.
You will have to make heavy mods to the DisplayList tag to mimic the massDelete
functinality.
I am curious as to why you need a mass update checkbox in the first place? Updates are done to discrete rows one at a
time. I don't see the benefit of what you are trying to do.
Jeff
Mark Fuqua wrote:
I need to build a list with a "mass update" checkbox similar to mass delete.
I am guessing that the mass delete "action" takes place in the
databaseBlocks.cfc.
I notice when I look at the <displayDeleteCheckBoxInList>, that there is an
attribute named label, which has a default value of "delete". My update
will change one field value from x to x+1 and another field value from
"null" to a plumUserId(integer) value. The PlumUserId value would be a
session variable.
Does anyone have any idea how hard it would be to check the attribute.label
of the <displayDeleteCheckBoxInList> checked from within the
databaseBlock.cfc (or whatever does the mass delete) and if the value is
"update" have it run the code necessary for this type of multiple update,
instead of the mass delete?
Would anyone else find such a functionality valuable?
Mark
**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:
http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************
**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:
http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************