hi dan...

just posted to your blog.

readers digest version:

seems you need to add the record position in the query where you're
looping over the query to populate the struct.

you had:

<cfset testStruct[col] = rs[col] />

which, for some reason, does not create simple values for the struct values.

<cfset testStruct[col[ = rs[col][1] />

seems to resolve it.

i don't know why.  i had assumed that omitting the [1] would default
to the first record in the query...but something funky definitely
happens somewhere.

i was able to do:

<cfoutput>#testStruct.firstName#</cfoutput>

but i was -not- able to do:

<cfoutput>#testStruct["firstName"]#</cfoutput>

the latter would error stating that it's not a simple value.

in any event, adding the [1] when populating testStruct seems to work
(and return YES on an isNumeric() function for the ID value).



On 1/4/07, Daniel Short <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a blog post which details my problem here:
>
> http://www.dansshorts.com/?day=1/4/2007#blog360
>
> What's happening is that if I take a recordset row, and build a structure
> based on it's columns, and then pass that structure as an ArgumentCollection
> to a CFC, the method tosses a "not of type numeric" on a value that is
> indeed numeric.
>
> Has anyone else seen a problem like this? The only way around it has been to
> set the type to "any" and then just accept any old crap that someone wants
> to pass in.
>
> Thanks,
>
> --
> Daniel Short
> Web Application Architect
> lynda.com, Inc.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265710
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to