Hi All,


I am trying to get the values from an array by doing the following. Please 
let me know where I am going wrong. I am using <cfa_Content... as follows

<cfa_contentobject
      datasource="#request.datasource#"
      objectid="4C79E901-404E-4426-BD02F15AD2A7B2C5"
      method="display"
      r_stobjects="stitems"
      r_stparams="param" >

After this I dump using the following...

          <cfa_dump var="#stitems#">

There is an array in the stitems named categories. I want to access values 
of this array and for that I do the following

          <cfset lcategories = #arrayToList (stitems.categories)#>


          <cfoutput>
          <CFLOOP list="#lcategories#" index="category">
          value is #category#
          </cfloop>

          </cfoutput>

But I get the following error

An error occurred while evaluating the expression:


lcategories = #arrayToList (stitems.categories)#

can anybody point where I am going wrong.


Thanks,

Manoj.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to