Advertisement

04.27.2007 at 12:14PM PDT, ID: 22539280
[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.6

Coldfusion 1 dynamic drop down to select next drop down list

Asked by smares323 in Cold Fusion Markup Language, Web Languages/Standards

Tags: , , , ,

Coldfusion code with MS SQL back end.

My question is how do make my dorp down list dynamic.

My first drop down has a query= "qQuestTypes". Table name "tCLETestType" The primary key is qTypeID and qType as a coulmn name for the product name.
My Second dropdown has a query= "qTestDates" . Table Name  "tCLETestVersion" The foreign key is qTypeID and qVersionIssuedate is my other colunm I need from the table.

Basically I have two products in my first drop down the qtypeid is the identifier I want to select one item from the first  drop down and have it query based on qTypeID  after selecting the item  query the second table by qTypeId from first drop down which also is a column in the second table. Output qVersionIssueDate according to the first drop down qtypeId selection.

<cfparam name="qVersionIssueDate" default="">
<cfparam name="qType" default="">
<cfparam name="qTypeID" default="">
<cfparam name="lastname" default="">
<cfparam name="firstname" default="">
<cfparam name="barnumber" default="">
<cfparam name="PersonID" default="PCID">
<cfparam name="AddressID" default="AID">



<html>
<link rel="stylesheet" type="text/css" href="../../common/styles/styles.css">

<head>
<script language="javascript">
          function fnGetqVersionIssueDate(){
               document.quicktestsearch.method = "post"
               document.quicktestsearch.action = "cle_quicktestbyadmin.cfm?PCID=#PersonID#&LastName=#LastName#&FirstName=#FirstName#&BarNumber=#BarNumber#"
               document.quicktestsearch.submit()
          }
</script>
</head>

<body>



      <table border="0">


<form name="quicktestsearch">
            
<cfquery name="qQuestTypes" datasource="#odbcName#">
            SELECT      qTypeID, qType, qTypeDeleted
            FROM            tCLETestType
            WHERE      qTypeDeleted = 0 AND (qType = 'CLE' or qType ='DJ')
            ORDER BY      qType
      </cfquery>


<tr>
                  <td width="200" class="txt">Select Publication Type</td>
                  <td width="200" class="txt">Select Test by Month and Year</td>
            </tr>
                  
      <tr>
            <td>
                  <select name="qType" class="txt" onChange="fnGetqVersionIssueDate()"  >
                        <option value="" <cfif qType EQ "">selected</cfif>>
                  <cfloop query="qQuestTypes">
                  <option value="#qType#">#qType#</option>
                  </cfloop>
                  </select>
            </td>



<cfif isDefined("form.qType") and form.qType is not "">

<cfquery name="qTestDates" datasource="#odbcName#">
            SELECT qVersionID,qVersionIssueDate, qVersionDeleted, qTypeID
            FROM tCLETestVersion
            WHERE  qVersionDeleted = 0 AND qVersionActive = 1 AND (qTypeID = 7 or qTypeID =8)
            ORDER BY qVersionIssueDate ASC
      </cfquery>
</cfif>


            <td>
                  <select name="qVersionIssueDate" class="txt" onChange="this.form.submit();">
                        <option value="" <cfif qVersionIssueDate EQ "">selected</cfif>>
                         <cfif isDefined("qTestDates")>
                              <cfloop query="qtestdates">
                        <option value="#qVersionissueDate#">#DateFormat(qVersionIssueDate, 'mmm yyyy')#</option>
                        </cfloop>
                      </cfif>
                        </select>
                              </cfoutput>      
                  
            </td>
            
            
                        
      </tr>
      </form>




      
            </table>
      
      
</body>
</html>

<cfinclude template="cle_quicktestbyadminresults.cfm">



Start Free Trial
[+][-]04.29.2007 at 09:10AM PDT, ID: 18997607

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.29.2007 at 09:11AM PDT, ID: 18997613

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.29.2007 at 02:12PM PDT, ID: 18998438

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.29.2007 at 02:13PM PDT, ID: 18998441

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 06:04AM PDT, ID: 19001040

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 08:14AM PDT, ID: 19001928

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 09:02AM PDT, ID: 19002352

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 09:32AM PDT, ID: 19002571

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 09:58AM PDT, ID: 19002790

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 11:26AM PDT, ID: 19003424

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 12:53PM PDT, ID: 19004132

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.01.2007 at 02:33PM PDT, ID: 19011811

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.01.2007 at 03:06PM PDT, ID: 19012082

View this solution now by starting your 7-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

Zones: Cold Fusion Markup Language, Web Languages/Standards
Tags: coldfusion, drop, down, dynamic, list
Sign Up Now!
Solution Provided By: mrichmon
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32