Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Coldfusion 仍在研究如何提高效率,但这可能意味着对我的许多代码进行更多更改listfind不应该遍历它只找到并显示的第一条记录吗?listfind本质上会告诉您在查询中的任何记录的csedept_id字段中是否会出现一个ieldValue后果你的问题中还不清楚的部分是_Coldfusion_Cfloop - Fatal编程技术网

Coldfusion 仍在研究如何提高效率,但这可能意味着对我的许多代码进行更多更改listfind不应该遍历它只找到并显示的第一条记录吗?listfind本质上会告诉您在查询中的任何记录的csedept_id字段中是否会出现一个ieldValue后果你的问题中还不清楚的部分是

Coldfusion 仍在研究如何提高效率,但这可能意味着对我的许多代码进行更多更改listfind不应该遍历它只找到并显示的第一条记录吗?listfind本质上会告诉您在查询中的任何记录的csedept_id字段中是否会出现一个ieldValue后果你的问题中还不清楚的部分是,coldfusion,cfloop,Coldfusion,Cfloop,仍在研究如何提高效率,但这可能意味着对我的许多代码进行更多更改listfind不应该遍历它只找到并显示的第一条记录吗?listfind本质上会告诉您在查询中的任何记录的csedept_id字段中是否会出现一个ieldValue后果你的问题中还不清楚的部分是,如果一个ieldValue出现在一些记录中,而不是所有记录中,你想显示什么?如果它只出现在一些记录中,那么显示会显示,但不匹配的记录会忽略。它似乎只是在看它找到的第一条记录,然后它退出,这就是为什么我不确定它是否真的全部消失的原因。 <


仍在研究如何提高效率,但这可能意味着对我的许多代码进行更多更改listfind不应该遍历它只找到并显示的第一条记录吗?listfind本质上会告诉您在查询中的任何记录的csedept_id字段中是否会出现一个ieldValue后果你的问题中还不清楚的部分是,如果一个ieldValue出现在一些记录中,而不是所有记录中,你想显示什么?如果它只出现在一些记录中,那么显示会显示,但不匹配的记录会忽略。它似乎只是在看它找到的第一条记录,然后它退出,这就是为什么我不确定它是否真的全部消失的原因。
<cfset counter3= 0>

<table cellpadding="0" cellspacing="0" class="tablecolors">
<h2> Comments </h2>
 <thead> <th>Name</th> <th>Positive Comment</th> <th>Negative Comment</th></thead>
  <cfloop  query="GetResults2">
    <cfif GetResults2.csedept_id eq aFieldValue>     

      <tr>
        <td nowrap="nowrap">#emp_namefirst# #Left(emp_namelast, 1)#  </td>
        <td>#Replace(commentpositive, emp_namefirst, "<B>" & emp_namefirst & "</B>")#</td>
        <td>#Replace(commentnegative, emp_namefirst, "<B>" & emp_namefirst & "</B>")#</td>
      </tr>
<cfelse><p>no records</p>

    </cfif>
  </cfloop>    
    </table>
'<cfloop query="GetEmployeeTotals3">
        <cfif GetEmployeeTotals3.csedept_id eq aFieldValue> '
select GetResults.* , GetEmployees.emp_namefirst, GetEmployees.emp_namelast
    from GetResults, GetEmployees
    where employee = emp_id
    order by csedept_id
<table>
<cfif getresults2.recordcount AND ListFind(ValueList(GetResults2.csedept_id), aFieldValue)> 
<tr>
    <th>name</th> 
    <th>positive comment</th> 
    <th>negative comment</th>
</tr>

<cfoutput query="getresults2">
<tr>
    <td nowrap="nowrap">#emp_namefirst# #left(emp_namelast, 1)#  </td>
    <td>#replace(commentpositive, emp_namefirst, "<b>" & emp_namefirst & "</b>")#</td>
    <td>#replace(commentnegative, emp_namefirst, "<b>" & emp_namefirst & "</b>")#</td>
</tr>
</cfoutput> 

<cfelse>
<tr colspan="3">
    <td><p>no records</p></td>
</tr>
</cfif>
</table>
<cfloop query="getresults2">
  <tr>
    <td nowrap="nowrap">#emp_namefirst# #left(emp_namelast, 1)#  </td>
    <td>#replace(commentpositive, emp_namefirst, "<b>" & emp_namefirst & "</b>")#</td>
    <td>#replace(commentnegative, emp_namefirst, "<b>" & emp_namefirst & "</b>")#</td>
  </tr>
</cfloop> 
<cfset showRecords = false>
<cfloop query="GetResults2">
  <cfif GetResults2.csedept_id eq aFieldValue> 
    <cfset showRecords = true>
    <cfbreak>
  </cfif>
</cfloop>

<h2> Comments </h2>
<cfif showRecords>
  <table cellpadding="0" cellspacing="0" class="tablecolors">
  <thead> <th>Name</th> <th>Positive Comment</th> <th>Negative Comment</th></thead>
  <cfloop query="GetResults2">
    <cfif GetResults2.csedept_id eq aFieldValue> 
      <tr>
        <td nowrap="nowrap">#emp_namefirst# #Left(emp_namelast, 1)#  </td>
        <td>#Replace(commentpositive, emp_namefirst, "<B>" & emp_namefirst & "</B>")#    </td>
        <td>#Replace(commentnegative, emp_namefirst, "<B>" & emp_namefirst & "</B>")#</td>
      </tr>
    </cfif>
  </cfloop>    
  </table>
<cfelse>
  <p>no records</p>
</cfif>
<cfif ListFind(ValueList(GetResults2.csedept_id), aFieldValue)> 
your existing code to display results in a table
<cfelse>
<p>No Records Found</p>
ListFind(ValueList(GetResults2.csedept_id), aFieldValue)
<cfquery name = "q3" dbtype = "query">
select * from GetResults2
where csedept_id = #aFieldValue#
<cfquery>

<table>
column header row
<cfoutput query="q3">
data rows
</cfoutput>
<table>