R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
How to pass the state of a number of List Item Detail row checkboxes to an Action?
Last Post 01 Jan 1900 05:00 AM by . 4 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
lnevilleUser is Offline
New Member
New Member
Posts:67

--
11 Jan 2008 11:17 PM  
I am designing a ListX form where a number of records (i.e. List Item Detail rows) are displayed each with a checkbox. The user checks one or more of them and then clicks a button in the header. This triggers an action that should set a flag on the records that were checked.

The question is - how can I pass the set of records that were checked into my SQL update? If I could pass a string containing the IDs of the records, for example '3,7,10,23' to the action, I could write a stored procedure that parses the string and updates the relevant records.

Any suggestions?
robert_chumleyUser is Offline
Advanced Member
Advanced Member
Posts:592

--
14 Jan 2008 04:21 PM  
Hello lneville,
You can do this very easily by naming all of your checkboxes the same thing.
Thanks,
Robert Chumley<br>r2integrated (formally bi4ce)
lnevilleUser is Offline
New Member
New Member
Posts:67

--
14 Jan 2008 08:51 PM  
Could you explain a bit further? Are you suggesting I give them all the same name, e.g. frmFlag, then create a mapping of frmFlag->@Flag in Variables? What would @Flag contain then?
robert_chumleyUser is Offline
Advanced Member
Advanced Member
Posts:592

--
14 Jan 2008 09:07 PM  
That would give you a comma separated list of values. You can always output the result of this through a value of [frmFlag, Form] to the screen to see exactly what it looks like.
Thanks,
Robert Chumley<br>r2integrated (formally bi4ce)
lnevilleUser is Offline
New Member
New Member
Posts:67

--
14 Jan 2008 09:36 PM  
Excellent! Thanks.
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share