Checkbox.selected should be passed as true/false

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Rottman
Sent: Tuesday, February 21, 2006 11:06 AM
To: [email protected]
Subject: [flexcoders] Passing a checkbox to a cfc

I have two check boxes that are being used to determine weither the
agent that is selected is the buyer agent or the selling agent. When a
user selects one and hits submit it should be passed to my cfc where
my cfc takes over and handles the rest from there. But this does not
seem to be working correctly. 

I have one question, are checkboxs passed are 1-0 or as true false. 

Here is my current code I am trying.

CFC.

                <cffunction name="quAdminUpdateBAgent" access="remote"
returntype=""
output="false">
                        <cfargument name="fileNum" type="string"
required="no" />
                        <cfargument name="agentId" type="string"
required="no" />
                        <cfargument name="btype" type="boolean"
required="no" />
                        <cfargument name="stype" type="boolean"
required="no" />                        
                                <cfif arguments.btype eq 1>
                                <cfquery name="updateAgent"
datasource="#application.dsn#">
                                update tbl_smartPanel_propInfo_Sale
                                set
                                fld_bagentId1 =
'#listAppend(check.fld_bagentId1, arguments.agentId)#'
                                where fld_fileNum =
'#arguments.fileNum#'
                                </cfquery>
                                <cfelseif arguments.stype eq 1>
                                <cfquery name="updateAgent"
datasource="#application.dsn#">
                                update tbl_smartPanel_propInfo_Sale
                                set
                                fld_sagentId1=
'#listAppend(check.fld_sagentId1, arguments.agentId)#'
                                where fld_fileNum =
'#arguments.fileNum#'
                                </cfquery>
                                </cfif>                 
                </cffunction> 


Onclick: 
click="quAdminUpdateBAgent(agentId.text, btype., stype.selected,
fileNum.text)"

Method:
                // ADD AGENTS used to call the service
                        function quAdminUpdateBAgent(agentId, btype,
stype, fileNum){
        
SaleMod.quAdminUpdateBAgent(agentId, btype, stype, fileNum);}






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to