Advertisement

09.05.2008 at 11:59AM PDT, ID: 23707388
[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!

5.0

Need help outputting query loop

Asked by rudodoo in Cold Fusion Markup Language

Tags:

I'm working on a web app for my company where a user can submit values that will update a table.  However, the part I'm having trouble with is displaying the values on the screen once the user submits the data.  For some reason its only displaying the first set of data but not the entire data.  Below is the functions that I created to pull the list of employees under a VP.  I'll also display how I'm trying to output the data on my next entry.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:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
<!--- Retrieve Sales Managers reporting under VP --->
	<cffunction name="ReportSmMgrList" access="public" returntype="any" output="true">
          <cfargument name="Posnbr" required="true">
		  <!--- Set current date to todays date --->
          <cfset currentDate = #DateFormat(now(),'mm/dd/yyyy')#>
          <cfquery name="GetSalesManagerList" datasource="#request.datasource#">
				SELECT DISTINCT a.mgrname, a.smemplid, b.cycledate, a.smposnbr, b.vpposnbr
			    FROM qa_salesmgr_input a, qa_vp_sales_input b
			    where b.vpposnbr = '#arguments.Posnbr#'
			    AND b.cycledate=to_date('8/31/2008','MM/DD/YYYY')
				and a.vpposnbr = b.vpposnbr
			    and a.SMPOSNBR = b.smposnbr
			    and a.CYCLEDATE = b.CYCLEDATE
			    order by a.mgrname
		  </cfquery>
		  <cfif GetSalesManagerList.RecordCount NEQ 0>
               <cfset rtnValue = GetSalesManagerList>
          <cfelse>
               <cfset rtnValue = "false">
          </cfif>
          
		  <cfreturn rtnValue>
	 </cffunction>
	 
	 
	 	
     <!---  Retrieve Sales Managers Forecast  --->
     <cffunction name="ReportingSMForecast" access="public" returntype="any" output="true">
          <cfargument name="Posnbr" required="true">
 
<cfquery  name="qPullID" datasource="#request.datasource#">
			Select distinct a.forecast_id, b.VpPosNbr, b.cycleDate
			from QA_FORECAST_QUOTA_TYPE a, QA_VP_SALES_INPUT b
			Where b.VpPosNbr = '#arguments.PosNbr#'
			and a.forecast_id = b.forecast_id
			AND b.cycledate=to_date('8/31/2008','MM/DD/YYYY')
		</cfquery>
		
		<cfloop from="1" to="#qPullID.recordcount#" index="i">
          <cfquery name="qSMForecast" datasource="#request.datasource#">
				select distinct b.forecast_id, b.forecast, a.mgrname, a.smposnbr 
				from qa_salesmgr_input a, qa_vp_sales_input b 
				where b.vpposnbr = '#qPullID.VpPosNbr[i]#'
				and a.SMPOSNBR = b.smposnbr
				and b.forecast_id = a.forecast_id
				and a.VpPosNbr = b.VpPosNbr
				and a.CycleDate = b.CycleDate
				AND b.cycledate=to_date('8/31/2008','MM/DD/YYYY')
				and b.forecast_id = '#qPullID.forecast_id[i]#'
				order by b.FORECAST_ID
          </cfquery>
 
  <cfif qSMForecast.RecordCount NEQ 0>
               <cfset rtnValue = qSMForecast>
          <cfelse>
               <cfset rtnValue = "false">
          </cfif>
          
<cfreturn rtnValue/>
 </cffunction>
[+][-]09.05.2008 at 12:03PM PDT, ID: 22402508

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.

 
[+][-]09.05.2008 at 12:04PM PDT, ID: 22402517

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.

 
[+][-]09.05.2008 at 12:14PM PDT, ID: 22402641

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.

 
[+][-]09.05.2008 at 12:19PM PDT, ID: 22402692

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.

 
[+][-]09.05.2008 at 12:19PM PDT, ID: 22402699

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.

 
[+][-]09.05.2008 at 12:33PM PDT, ID: 22402869

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.

 
[+][-]09.05.2008 at 12:50PM PDT, ID: 22403042

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.

 
[+][-]09.05.2008 at 12:53PM PDT, ID: 22403072

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.

 
[+][-]09.05.2008 at 12:56PM PDT, ID: 22403119

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.

 
[+][-]09.05.2008 at 12:57PM PDT, ID: 22403125

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.

 
[+][-]09.05.2008 at 12:58PM PDT, ID: 22403130

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.

 
[+][-]09.05.2008 at 12:58PM PDT, ID: 22403133

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.

 
[+][-]09.05.2008 at 12:59PM PDT, ID: 22403151

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.

 
[+][-]09.05.2008 at 01:11PM PDT, ID: 22403288

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.

 
[+][-]09.05.2008 at 01:15PM PDT, ID: 22403321

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.

 
[+][-]09.05.2008 at 01:20PM PDT, ID: 22403363

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.

 
[+][-]09.05.2008 at 01:53PM PDT, ID: 22403695

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.

 
[+][-]09.05.2008 at 02:29PM PDT, ID: 22404008

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

Zone: Cold Fusion Markup Language
Tags: Coldfusion MX 7
Sign Up Now!
Solution Provided By: rudodoo
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628