I tried to set that once and started getting J-Run errors.  We are running MX7.

I am not exactly doing that.  The related code that is run when that message shows up is below where Person_List is a datagrid, and otd_tech_after_db is empty at the time of the cfc call

var otd_tech_after_db:String = new String();
var otd_tech_before_db:String = new String();

function initFunction() {
    MainNavigation.visible=false;
    Selections.visible=false;
    otd_tech_before_db = getToday();
}

function getToday():String {
    var today_date:Date = new Date();
    var date_str:String = ((today_date.getMonth()+1)+"/"+today_date.getDate()+"/"+today_date.getFullYear());
    return date_str;
}

private function getTechSearch():Void {
        mr_cfc.get_tech_search(otd_tech_before_db, otd_tech_after_db, getPIDs());
}

private function getPIDs():Array {
     var SelectionPIDs:Array = new Array();
     for (var i=0; i<Person_List.length; i++) {
         SelectionPIDs[i] = Person_List.dataProvider[i].PERSON_ID;
     }
     return SelectionPIDs;
}

private function doResultGetTechSearch(result:Array):Void {
    var TempObject:Object = new Object();
    var GetTechSearchArray:Array = new Array();
    for(var i=0; i < result.length; i++){
     TempObject = result[i];
     GetTechSearchArray.push(TempObject);
    }
    OTD_TECH_RESULTS.dataProvider = GetTechSearchArray;
}




Peter Farland wrote:
Are you setting remote-objects-debug in flex-config.xml? What version of ColdFusion are you using?
 
Re: the unsupported type in stream message... are you doing anything like the following:
 
var s:String = new String("foo");
var b:Boolean = new Boolean(true);
var n:Number = new Number(4);
 
Unfortunately in AS1/AS2 the Flash Player does not recognize the Object form of String, Boolean or Number type for serialization purposes so it sends them (yes, oddly) as an unsupported type when serialized as AMF which the remoting gateway rejects. If you use the "primitive" forms of these types in ActionScript:
 
var s:String = "foo";
var b:Boolean = true;
var n:Number = 4;
 
It should work fine.
 
Out of curiosity, how are you generating the data that is sent to the CFC? Are you loading a web service first by any chance and then trying to send that result to a CFC via remote object?
 
Can you post the <cffunction> and accompanying <cfargument> tags from your CFC method that you're invoking? Can you also post the ActionScript line you're using to call the RemoteObject abstraction of your CFC?
 
Thanks,
   Pete
 
 
 





--
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




Reply via email to