Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / April 2007



Tip: Looking for answers? Try searching our database.

No Display of Results in Data Grid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Forsberg - 02 Apr 2007 22:47 GMT
I have the following code. The logger shows that the connection to the remote
service t is successful. If I dump the results of the CFC I get the data I'm
looking for. I haven't done this in a while. Any ideas on why I'm not getting
results in the datagrid?
Thanks.

//Import Stuff
import mx.remoting.*;
import mx.rpc.*;
import mx.services.Log;

//Data type the components
var name_txt:mx.controls.TextArea;
var myGrid_dg:mx.controls.DataGrid;

//Remoting Stuff

mx.remoting.debug.NetDebug.initialize();

var myLogger:Log = new Log( Log.DEBUG, "logger1" );

//override the default log handler
myLogger.onLog = function(message:String):Void{
   trace("myLogger:  " + message);   
}

//Create the service
myService = new
Service("http://localhost/flashservices/gateway",myLogger,"Phonebook.CFC.phoneDa
ta",null,null);

//Hander for results
function onGetData(msg:ResultEvent){
    mx.remoting.debug.NetDebug.trace({level:"Debug",message:"onGetData" });
    myGrid_dg.dataProvider = msg;
}

//Handler for errors
function onDataFault(rs: FaultEvent){
   mx.remoting.debug.NetDebug.trace({level:"None", message:"Oops!: " +
fault.fault.faultstring });      
}

var pc:PendingCall = myService.getNetworkUsers;
pc.responder = new RelayResponder(this._parent, "onGetData", "onDataFault");
lazures - 17 Apr 2007 17:45 GMT
try

msg._items
cyberluna - 18 Apr 2007 20:33 GMT
Perhaps you should be taking the data into a RecordSet object which is displayed by the datagrid very easily.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.