[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

08/24/2004 at 09:30AM PDT, ID: 21105518
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.8

How to limit the number of Checkboxes Selected?

Asked by kgarnto in ColdFusion Application Server

Tags: cf_dccom

Thanks to some help from mrichmon, I now have a Withdrawal form that does a query for CRNs for a student for the current term.  The form returns the CRNs and also some drop down grade boxes and date input text boxes for the instructor to submit Withdrawal Information for each CRN that is returned.  When a student withdrawals from the school, they are removed from all classes.

I then needed to kind of duplicate the withdrawal form for dropping (1) or more classes (but not all classes), and I have done it by using dynamically created checkboxes that are associated with each CRN that is returned from the query and then appending the same grade drop down boxes and date input boxes to each CRN that is returned.  The instructor can then get all the CRNs that are for the student, and then just select the CRN that they are dropping.  They could submit (1) CRN or multiple CRNs, but we don't want them to be able to check all the CRNs.

My problem is that I don't know how to limit the instructor from being able to check all the checkboxes, because if they do that they really need to be submitting the withdrawal form instead of the drop form.

Does anyone know how I might go about doing this?  My checkboxes are created dynamically from the query, and on my processing page, I want to be able to loop through the CRNs that are processed and allow the instructor to be able to select each CRN checkbox that they need to select.  If the instructor tries to submit all the CRNs, I think I want a pop-up window or an error message to display saying that they can't submit all CRNs from the drop class form, they must use the withdrawal form.

This may not be the best way to handle this, and I'm open to another suggestion.  The main thing is that we need to have seperate forms because we ask for different information in each circumstance.

Thanks in advance for any help that you can offer.

Here is the code for the drop form:
<cfset CrnList = ValueList(get_classes.crn)>
<CFOUTPUT query="get_classes">
     <tr>
     <td><div align="center"><input type="Checkbox" name="class#currentrow#" value="#get_classes.crn#" <cfif ListFind(CrnList, get_classes.crn)>unchecked</cfif>>#get_classes.class#</div></td>
                  <td><div align="center">
                    <select name="grd#currentrow#" id="grd">
                      <option value="A">A</option>
                      <option value="B">B</option>
                      <option value="C">C</option>
                      <option value="D">D</option>
                      <option value="F">F</option>
                      <option value="W" selected>W</option>
                      <option value="WF">WF</option>
                      <option value="WP">WP</option>
                    </select>
                  </div></td>
                  <td><div align="center">
                    <select name="wegrd#currentrow#" id="wegrd">
                      <option value="1" selected>1</option>
                      <option value="2">2</option>
                      <option value="3">3</option>
                      <option value="4">4</option>
                    </select>
                  </div></td>
                  <td><div align="center"><CF_DCCOM controlNumber="#currentrow#" component="calendarControl" dateFormat="dd-%b-%y" showTime="no" startdate="#DateFormat(now(),"DD-MMM-YYYY")#" name="ldoa#currentrow#"></CF_DCCOM></div></td>
  <td><div align="center"><input type="text" name="reason#currentrow#" id="reason"></div></td>
                </tr>
       </cfoutput>
<input type= "hidden" name="counter" value="<cfoutput>#get_classes.recordcount#</cfoutput>">
              </table>

Here is the code for processing the dropped CRNs:
<cfloop index="i" from="1" to="#form.counter#">
<CFOUTPUT>
   <tr>
     <td>#Form['class' & i]#</td>
     <td>#FORM['GRD' & i]#</td>
     <td>#FORM['WEGRD' & i]#</td>
     <td>#FORM['ldoa' & i]#</td>
     <td>#FORM['reason' & i]#</td>
    </tr>
</CFOUTPUT></cfloop>
[+][-]08/24/04 09:51 AM, ID: 11883841

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/04 09:52 AM, ID: 11883856

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/04 10:00 AM, ID: 11883965

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/24/04 10:01 AM, ID: 11883987

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/04 10:02 AM, ID: 11884001

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/04 10:11 AM, ID: 11884093

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/04 10:34 AM, ID: 11884333

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/24/04 12:38 PM, ID: 11885745

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/30/04 03:26 PM, ID: 11936652

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: cf_dccom
Sign Up Now!
Solution Provided By: lxdev
Participating Experts: 3
Solution Grade: A
 
 
[+][-]08/31/04 01:22 PM, ID: 11946157

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91