Advertisement

04.08.2008 at 06:44AM PDT, ID: 23304510
[x]
Attachment Details

ColdFusion cfloop problem

Asked by erikTsomik in ColdFusion Application Server, ColdFusion Studio, Cold Fusion Markup Language

In my query I need to loop through the courses and find out wheather or not
perosn require to take courses. if the do not require to take any courses then
mark the cell N/a. If they do require then check for completion. If they had
already taking the course and completed then leave the cell blank. If they
required but never completed then marked X. I did the cfloop over this issue but
does not seems to be working . I do not know what to do next

SO the way I loop is follow:

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
<cfloop query="getReport">
    
                     
			<cfif lastEmp neq EmployeeiD>
				<cfif lastEmp neq "***">
					<tr>
						<td valign="top" >#arryEmployees[1]#</td>
						<td valign="top" class="tdctr">#arryEmployees[2]#</td>
						<td valign="top">#holdemp#</td>
                      
						<cfloop from="1" to="#ArrayLen(arryCourses)#" index="i">
                    
                        	<cfif coursename eq "#arryCourses[i][3]#"  and completionDate gt "">
                      <td valign="top" class="tdctr"></td>  
                      <cfelseif coursename neq "#arryCourses[i][3]#" and completiondate eq "">
                      	<td valign="top" class="tdctr">X</td>  
                      <cfelse>
                        <td valign="top" class="tdctr">N/A</td>
 
</cfif>
 
						</cfloop>
                        
					</tr>
				</cfif>
				<cfset holdemp = "#last_Name#, #First_Name#">
				
			</cfif>
			<cfif lastLocation neq LocationID>
				<cfif lastLocation neq "***">
					<tr>
						<th valign="top" class="yellowBgCenter">#arryEmployees[1]#</th>
						<th valign="top" class="yellowBgCenter">#arryEmployees[2]#</th>
						<th valign="top" class="yellowBgCenter">Totals</th>
						<cfloop from="1" to="#ArrayLen(arryCourses)#" index="i">
							<td valign="top" class="yellowBgCenter">#arryCntTotals[i][1]#</td>
							<cfset arryCntTotals[i][1] = 0>
						</cfloop>
					</tr>
				</cfif>
			</cfif>
			<!--- process this record --->
			<cfset arryEmployees[1] = "#Name#">
			<cfset arryEmployees[2] = "#locationID#">
   
 
 
			<cfset lastEmp = EmployeeiD>
			<cfset lastLocation = LocationID>
		</cfloop>
 
Loading Advertisement...
 
[+][-]04.08.2008 at 08:55AM PDT, ID: 21306496

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.08.2008 at 09:12AM PDT, ID: 21306733

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.08.2008 at 07:03PM PDT, ID: 21311327

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.08.2008 at 07:28PM PDT, ID: 21311430

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.08.2008 at 08:53PM PDT, ID: 21311685

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.08.2008 at 08:57PM PDT, ID: 21311704

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.08.2008 at 09:00PM PDT, ID: 21311710

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.08.2008 at 09:07PM PDT, ID: 21311728

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.08.2008 at 09:29PM PDT, ID: 21311795

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.08.2008 at 09:35PM PDT, ID: 21311810

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.08.2008 at 09:50PM PDT, ID: 21311844

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.08.2008 at 10:08PM PDT, ID: 21311908

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: ColdFusion Application Server, ColdFusion Studio, Cold Fusion Markup Language
Sign Up Now!
Solution Provided By: digicidal
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.08.2008 at 10:19PM PDT, ID: 21311948

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.09.2008 at 07:25AM PDT, ID: 21315219

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.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628