Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): barnaby relph / barnaby relph (ybanrab)
Created: 12/22/2008
Components: AJAX, UI Components
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 221383
Priority/Frequency: Normal / Unknown
Locale/System: English / Mac 10 All
Vote Count: 0
Problem:
CFMAPITEM seems not to be 'aware' of loop constructs.
When calling <cfMapItem> inside of a <cfQuery or <cfLoop tag, only the last item is displayed correctly.
pseudo-code to replicate:
[code]
<cfquery name="sites">
select * from sites
</cfquery>
<cfmap ....
<cfloop query="sites">
<cfmapItem latitude="#sites.latitude#" ...>
</cfloop>
</cfmap>
[/code]
Looking at the generated javascript, the last Item in the query is repeated 3 times when using a query with 3 items in it.
I have tried this using <cfoutput, <cfloop query="sites" and <cflooop array="sites" (with array of CFCs coming from an ORM EntityLoad call) and all produce the same behaviour
Method:
<cfquery name="sites">
select latitude, longtitude from sites
</cfquery>
<cfmap ....
<cfloop query="sites">
<cfmapItem latitude="#sites.latitude#" ...>
</cfloop>
</cfmap>
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037117
External Customer Info:
External Company:
External Customer Name: barnaby relph
External Customer Email: 15567101450938F3992015A9
External Test Config: 12/22/2008
Attachments:
Comments: