PDA

View Full Version : Unpopulated DataGrid


acidbaby
09-22-2004, 01:27 PM
I am having trouble getting a DataGrid called display_dg to populate. I can't figure out why. It traces 12 records back with the column names of:
ICATEGORYID
VCHCATEGORYNAME
VCHDESCRIPTION
VCHCATEGORYURL
VCHCATEGORYSTATUS
VCHLASTPOSTER
ITHREADCOUNT
DTLASTMSGDATE
VCHAPPROVAL
IHEADERID
ftreccount
errorcode
extrainfo

//INCLUDES
#include "NetServices.as"
#include "NetDebug.as"
#include "DataGlue.as"

//FTVAR_VALUES
var struct1 = new Array();
struct1["FTVAR_FORUMID"] = 41;

//CONNECT
if (isGatewayOpen == null) {
isGatewayOpen = true;
NetServices.setDefaultGatewayUrl("http://dev.knlearn.com/flashservices/gateway");
gw = NetServices.createGatewayConnection();
server = gw.getService("fusetalk.com.wrapper", this);
server.RemoteFunction("GetCategories", struct1, "username", "password");
trace("Sent Request");
}

//SERVER RESPONSE
function RemoteFunction_Result(result) {
trace("Records: " + result.getLength());
trace("Column Names: " + result.getColumnNames());
display_dg.dataProvider = result;
}

acidbaby
09-23-2004, 05:46 PM
Ok. I'm an idiot. I copy and pasted it into a new doc and it work perfectly. After all the time I wasted trying to figure out a problem I thought would be complicated it is just some quark in Flash I guess. Has any one else every had this happen?