PDA

View Full Version : dataGrid dataProvider not displaying Values but [type function]


WahLDS
06-01-2005, 05:31 PM
Hey all i have been searching for what i have been doing wrong for a week or so now and i bet its just some an easy fix that i am too stupid to see.

I am using flash remoting to PHP to access a mysql data base. I get the data into flash fine can i can see the values in the debug menu but theen i put them into an array and set that array as the dataProvider for a dataGrid comp. i hvae on stage but the problem is instead of displaying the data it only displays [type function]


these functions call to PHP and are saved in an .as file

ta = function (pat_id) {
this.ta = new PHPObject("FAFlash");
this.ta.ta(pat_id);
this.ta.ta_onResult = function(result) {
this.taa = result[0];
this.taaa = result[1];
};
};
Row = function (i, ta) {
this.row = new PHPObject("FAFlash");
this.row.row(i, ta);
this.row.row_onResult = function(result) {
this.ar = result;
this.entry = result[0];
this.code = result[1];
this.tooth = result[2];
this.surface = result[3];
this.des = result[4];
this.fee = result[5];
this.ins_adj = result[6];
this.pins = result[7];
this.sins = result[8];
this.pat_est = result[9];
};
};


Then once i enter the pat_id and press a submit button on the stage it goes through this code on (release) {
#include "FAFlash.as"
getTA = new ta(pat_id);
getRow = new Row(0, "waddell_trent_05_05_05");
Rows = new Array({Code:getRow.Row.code, Tooth:getRow.Row.tooth, Surface:getRow.Row.surface, Des:getRow.Row.des, Fee:getRow.Row.fee, InsAdj:getRow.Row.ins_adj, PriIns:getRow.Row.pins, SecIns:getRow.Row.sins, PatEst:getRow.Row.pat_est});
_root.test_dg.setSize(800, 300);
_root.test_dg.dataProvider = Rows;
}


Any help would be greatly aprriacted, this little problem is really holdin me up.

webmedium
08-03-2005, 01:51 AM
Possible Typo in XML, look for missing < in XML File...