Hi Andrew,
Ok so first let me say, I'm no expert with remotting, but try either not
specifying the argument type or set to something like "any".

There maybe an issue when you call the cf function from flash, if you pass
the argument with "" around it I believe it is a string no matter the
content. I'm not 100% sure about this though.

Re #2) dunno, but sure would like to. What I would like to know is basically
how to get a similar result as using HTML tables and CF, the ever popular
<cfloop> <tr><td>#data#</td></tr></cfloop>. I find listbox and textarea to
not always be the greatest for display.

Let us know what the answer is.

-steve

-----Original Message-----
From: Andrew Clark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 8:28 PM
To: [EMAIL PROTECTED]
Subject: [CFTALKTor] Flash remoting with 2 or more variables


A couple of queries

1)
With Flash remoting is it possible to pass two arguments to a function?

The first function works fine where var1 is obtained from a list box

        <cffunction name="getFirst" >
      <cfargument name="Var1" type="numeric">

      <CFQUERY NAME="q_a">
        SELECT *
                FROM tblA
        WHERE ID=#Var1#
      </CFQUERY>


    <cfreturn q_a>
  </cffunction>

However, I then want some details related to a specific time period for that
ID
I use the calendar UI. Var2 is the date


        <cffunction name="getSecond" >
        <cfargument name="Var1" type="numeric">
      <cfargument name="Var2" type="date">

      <CFQUERY NAME="q_b">
        SELECT *
                FROM tblB
        WHERE ID=#Var1# and Date=#Var2#
      </CFQUERY>


    <cfreturn q_b>
  </cffunction>

I get an error "The argument Var1 passed to function getSecond is not of the
type numeric"
It is a number and works in function getFirst

I have tried alternatives such as just passing the var2 argument and
referring to #getFirst.Var1#
or #1_a.Var1# without success

The calendar component aspects work correctly i.e if I hardcode var1 in
getSecond I obtain
the correct answer

2)
If I want to use a listbox to report the result I can do
My_lb.setDataProvider(result);

How would I do it with a dynamic text field, My_txt.
Do I need to set the var field to anything in properties and
what would be the correct AS to show the result

Cheers
Andrew


-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "Andrew Clark" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: Steve Budan <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to