Hi Raymond,

This tag (selectbox.cfm) is just what I need. Insdead of looping using 
collection of entire struct, it loops thru 1 dimension array 'aInputoptions'.

Many thanks!
Xiaoying


At 08:24 AM 7/13/00 -0400, you wrote:
>Check out this tag in the Dev Exchange:
>
>http://devex.allaire.com/developer/gallery/info.cfm?ID=CA3477E4-2830-11D4-AA
>9700508B94F380&method=Full
>
>
>=======================================================================
>Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
>Allaire Certified Instructor and Member of Team Allaire
>
>Email   : [EMAIL PROTECTED]
>ICQ UIN : 3679482
>
>"My ally is the Force, and a powerful ally it is." - Yoda
>
>
> > -----Original Message-----
> > From: Xiaoying [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 13, 2000 3:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: [spectra-talk] how to get 'AINPUTOPTIONS.value' from
> > cfa_propertyDefinitionGetMultiple ?
> >
> >
> > 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