Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

Complex object types cannot be converted to simple values?

$
0
0

Hello,

 

I am a newbie to coldfusion attempting to list the contents of a directory and keep getting an error that reads Complex object types cannot be converted to simple values. The error is occurring on line 11, at .<cfloop collection="#picturelist#.  Any help would be greatly appreciated!

 

<cfset basefolder = "\\url\Corner_Reports" >          


<cfdirectory recurse="no" action="list" directory="#basefolder#" filter="*.pdf" name="picturelist">

 

<cfdump var="#picturelist#">      


<cfloop collection="#picturelist# " item="thefile">       

 
  <cfset filetoread = "#picturelist.directory#\#picturelist.name#">  
 
  <cfoutput query ="corner_reports">
  Looking in: #filetoread# --                                
    <cffile action="read" file="#filetoread#" variable="filetext">
<a href="#picturelist.Directory#\#picturelist.name#index.htm" title="#picturelist.name#">
  </cfoutput>
</cfloop>

 


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>