the 3rd argument of 'createLcdsEvent()' is 'args', which is the
local.signature coming from the caller. i'm using a thread inside of that
function.... hence the attributes scope. i have verified that
local.signature is indeed an array... as is attributes.args. the problem i'm
having is with case: "refresh".
<cffunction name="createLcdsEvent" access="private" hint="Used to create
lcds events manually">
<cfargument name="destination">
<cfargument name="type" default="update">
<cfargument name="args">
<!--- spawn new thread --->
<cfthread action="run" name="LDS_EVENT_#createUUID()#"
priority="HIGH" attributeCollection="#arguments#">
<cfscript>
switch ( attributes.type )
{
case "update" :
{
// Create update notification
thread.event = {};
thread.event.action="update";
thread.event.newversion = attributes.args;
thread.event.destination = attributes.destination;
thread.event.result = sendGatewayMessage("boards",
thread.event);
}
case "refresh" :
{
// Refresh a signature
thread.event = {};
thread.event.action = "refreshFill";
thread.event.destination = attributes.destination;
thread.event.fillparameters = attributes.args;
thread.event.result = sendGatewayMessage("boards",
thread.event);
}
}
</cfscript>
</cfthread>
</cffunction>
--
Jim Rising
Serial Entrepreneur
Cold Fusion Developer
"Concentration is the key to profits. Greater profits require that you
concentrate your efforts on the smallest number of activities that will
produce the largest amount of revenue." -Peter Drucker
2008/10/21 João_Fernandes <[EMAIL PROTECTED]>
> Hi Jim,
>
> Can you should me more of your code? Can you tell me what the value of
> attributes.args is? Did you try just to pass an empty array?
> --
>
> João Fernandes
>
> Adobe Community Expert
> http://www.onflexwithcf.org
> http://www.riapt.org
> Portugal Adobe User Group (http://aug.riapt.org)
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314181
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4