Hi,

I have a new Property , the input type is 'select'.
'Input Options' stores my selection values.

I need these values in 'AINPUTOPTIONS' for option-select:

This is my code :

------------------------------------------------
<cfset myproperty="#this_property_uuid#">

<cfa_propertyDefinitionGetMultiple
dataSource="#application.cfaobject_dsn#"
lPropertyDefinitionIDs="#myproperty#"
r_stDefinitions="stProperty">


<cfset arr2=arrayNew(2)>
<cfset arr2="#stProperty['#myproperty#'].AINPUTOPTIONS#">
<!----from <cfa_dump var="#arr2#">, arr2 looks like a 2D array which 
contains 'label' and 'value'--->


<select name="my_type_selection">

<!-----error comes from this cfloop:------------>
<cfloop collection="#arr2#" item="this_value_item">
        <option value="1">
        #stProperty['#myproperty#'].AINPUTOPTIONS.value#
        </option>
</cfloop>

</select>



-----------------
This is the error msg:

Loop error
Invalid collection "#arr2#" - must be a valid struct or COM object
The error occurred while processing an element with a general identifier of 
(CFLOOP), occupying document position (71:1) to (71:51) in the template file

----------------
I use <cfa_dump var="#arr2#">, #arr2# is a 'struct'.

How can I get all the values from this property definition?

Thanks

Xiaoying

                       **8**
                      {(0 0)}
            +----oOO---- *   -----------------------------------------+
            |    <cfa_userProfileFind                                 |
            |         datasourse="#request.cfa.datafield.datasource#" |
            |         username="Xiaoying Kong"                        |
            |         email="[EMAIL PROTECTED]"               |
            |         url="http://www.datafield.com.au/xiaoying/"     |
            |         r_stUserProfile="ColdfusionSpectraWAPLover"     |
            |    >                                                    |
            +-----------------oOO-------------------------------------+
                      |__|__|
                       || ||
                      ooO Ooo




------------------------------------------------------------------------------
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