kalel
09-06-2005, 04:59 PM
import mx.remoting.*
import mx.rpc.*
var myresponder:RelayResponder = new RelayResponder(this,"getCombobox_con_Result","getCombobox_con_Fault");
var getCombobox_con:Service = new Service("http://localhost/flashservices/gateway",null,"getData_uf",null,myresponder);
var pc:PendingCall = getCombobox_con.getComboxitems();
function getCombobox_con_Result(result){
// display successful result
trace(getCombobox_con.results.getLength())
}
function getCombobox_con_Fault(fault){
trace("error")
}
is there something I am missing to get the result back as a recordset obj? I am getting undefined.
in my cfc I have the returntype="query" do I have to change that?
when using the remoting connector component its fine but I rather do it manually.
is relay responder the quickest way to have a function called when the results get back?
thanks.
import mx.rpc.*
var myresponder:RelayResponder = new RelayResponder(this,"getCombobox_con_Result","getCombobox_con_Fault");
var getCombobox_con:Service = new Service("http://localhost/flashservices/gateway",null,"getData_uf",null,myresponder);
var pc:PendingCall = getCombobox_con.getComboxitems();
function getCombobox_con_Result(result){
// display successful result
trace(getCombobox_con.results.getLength())
}
function getCombobox_con_Fault(fault){
trace("error")
}
is there something I am missing to get the result back as a recordset obj? I am getting undefined.
in my cfc I have the returntype="query" do I have to change that?
when using the remoting connector component its fine but I rather do it manually.
is relay responder the quickest way to have a function called when the results get back?
thanks.