Join our DNN Community    (Newsletter, Tips, Tricks and Forums for DNN Skins & Modules)

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Friday, November 21, 2008 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
Tips and Tricks
You asked for it, and we added it. We have so many great developers using ListX right now - it would be best to get some samples straight from the gurus who swear by it. View and Add your samples and tips here!
Subject: How to pass the state of a number of List Item Detail row checkboxes to an Action?

You are not authorized to post a reply.   
Author Messages
lneville
Middleweight
Posts:64

01/11/2008 6:17 PM Alert 
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_chumley
Please Wait...
Posts:595

01/14/2008 11:21 AM Alert 
Hello lneville,
You can do this very easily by naming all of your checkboxes the same thing.
Thanks,

Robert Chumley
r2integrated (formally bi4ce)
lneville
Middleweight
Posts:64

01/14/2008 3:51 PM Alert 
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_chumley
Please Wait...
Posts:595

01/14/2008 4:07 PM Alert 
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
r2integrated (formally bi4ce)
lneville
Middleweight
Posts:64

01/14/2008 4:36 PM Alert 
Excellent! Thanks.
You are not authorized to post a reply.
Forums > Bi4ce.Modules.ListX > Tips and Tricks > How to pass the state of a number of List Item Detail row checkboxes to an Action?



ActiveForums 3.6
Latest Post
 
At R2integrated (formerly Bi4ce), we take support seriously.  That's why we support our customers and DNN community with daily monitoring from our experienced engineering team.  We ask that the first step taken is to read the relevant documentation and support forums prior to submitting any questions that may already be available or have been answered.  We ask that you review the documentation that we provide for our products before posting a question.

The Forums are for our customers to chat, exchange ideas and strategies, and submit feedback.  Please be sure to perform keyword searches for previous related forum responses.

To be helpful when submitting a new item, please include the following: 
  1. DNN Version
  2. Module Version
  3. Admin Log Viewer Information
  4. Environment detail: Operating system, .NET framework version, database and version, IIS version, Browser version (if appropriate)
We always try to respond quickly and monitor the forums daily during business hours (EST).  Occasionally, requests for a specific project requirement may not apply for the free support offered. For project specific support please submit via our Information Request form.

Thank you for using our Forums.

Click here to register for the Forums
 
© 2008 by R2integrated (formerly Bi4ce) | DNN® is a registered trademark of DotNetNuke Corporation