|
Re: Possible Error in tartan.vo.ValueObject.cfc
|
Paul Kenney
|
Feb 09, 2006 21:05 PST
|
I can answer your second question easily.
Instead of calling the remote method like:
service.methodName(valueObject);
Do it like this:
service.methodName( {vo:valueObject} );
This is a FlashRemoting/CF issue, and it is just the way it is. Basically,
its like using named arguments or argumentCollection in CF, sort of.
On 2/9/06, Sam Shrefler <sshre-@gmail.com> wrote:
| |
Paul and others:
When passing a ValueObject from Flash Remoting to Coldfusion, the
following was giving me an error in tartan.vo.ValueObject.cfc
<cfif NOT StructKeyExists(this, key)>
<cfset this[key] = ArrayNew(1)>
<cfelse>
<cfset ArraySet(this[key], 1, ArrayLen(this[key]), "")>
</cfif>
More specifically, the ArraySet command. I wonder for what reason we can
not just do
<cfset this[key] = ArrayNew(1)>
and then populate the array.
Also, whenever I send an VO from flash remoting, I need to add a second
param that I set to true in the function call. If i don't, coldfusion says
that my vo argument wasnt' passed in. Any thoguhts?
Thanks
sam
|
--
Paul Kenney
pa-@pjk.us
pken-@gmail.com
http://www.pjk.us
|
|
 |
|