OK, 그래서 당신은 이런 종류의 싶지 :
<cfoutput query="query1">
<!--- stuff --->
<cfoutput query="query2" group="col>
<!--- more stuff --->
<cfoutput>
<!--- still more stuff --->
</cfoutput>
<!--- almost the last stuff --->
</cfoutput>
<!--- last stuff --->
</cfoutput>
를?
그리고 두 번째 루프는 당신에게 오류 제공 :
Invalid tag nesting configuration.
A query driven cfoutput tag is nested inside a cfoutput tag that also has a query attribute. This is not allowed. Nesting these tags implies that you want to use grouped processing. However, only the top-level tag can specify the query that drives the processing.
당신은 그에게 개정 할 수 있어야한다 :
<cfloop query="query1">
<cfoutput>
<!--- stuff --->
</cfoutput>
<cfoutput query="query2" group="col>
<!--- more stuff --->
<cfoutput>
<!--- still more stuff --->
</cfoutput>
<!--- almost the last stuff --->
</cfoutput>
<cfoutput>
<!--- last stuff --->
</cfoutput>
</cfloop>
당신이해야하는 경우 그룹 루프를 모방하는 또 다른 옵션이있다합니다. 그러나 그것은 생각과 입력의 무리입니다. 나는 poss를 선호하지 않으므로이 방법이 먼저 작동하는지 알려주십시오.
''으로 가능한 한 쿼리를 반복하려면 ''을 사용하지 않는 이유는 무엇입니까? –
이미 ''이 (가) 사용 된 경우 다른 것을 삽입 할 수 없습니다. 필요하지 않은 경우 최신 ColdFusion에 포함시키지 않았을 것입니다. –
Daniel
잘 보일 필요가 없습니다. 나는 당신의 문제를 이해하려고 노력하고 있습니다. 처음부터 그렇게 말했 냐고 묻지 않아도 될까요? 필자는 CF10 기능이 신의 선물이 아니라고 제안한 적은 한 번도 없었습니다. 내가 물었던 것은 당신이 당신의 질문에 결코 설명하지 않은 ''을 사용할 수없는 이유입니다. 이 정보를 포함하도록 질문을 업데이트해야합니다.이 정보는 매우 중요합니다. –