Sounds like a question more for CommonSpot. This is list is for basic coldfusion questions and I think your issue is beyond simply how to interrogate an array.
I could try to help, but you'd need to show us what is in the eventdata dump. Maybe you can take a screen cap of it and post it online somewhere for us to see. Dave -----Original Message----- From: Corey, Pamela L [mailto:[email protected]] Sent: Tuesday, April 03, 2012 11:59 AM To: cf-newbie Subject: The element at position 1 of dimension 1, of array variable "EVENTDATA," cannot be found I'm trying to format a datasheet in our CMS (CommonSpot) and I have this code: <cfscript> eventData = application.ADF.ceData.getCEData( customElementName = "Event", customElementFieldName="event_name", item=request.datasheet.currentColumnValue ); </cfscript> <!---<cfdump var="#eventdata#">---> <cfsavecontent variable="request.dataSheet.currentFormattedValue"> <cfoutput><td style="padding-right:10px;" valign="top" align="left"><a href="#application.ADF.csData.getCSPageURL(eventData[1].pageID)#"> #eventData[1].values.event_name# </a></td></cfoutput> </cfsavecontent> And I'm getting this error for a segment of the records (about 20% of the records): The element at position 1 of dimension 1, of array variable "EVENTDATA," cannot be found. If I do the dump I get the data returned so I know the data is there. Any ideas? The page is still behind the scenes so I can't share a URL. Thanks, Pam ________________________________ Pamela Corey IT Specialist Public and Business Affairs Office National Institute of Standards and Technology (NIST) 301-975-2170 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5841 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
