AnsweredAssumed Answered

parameter pass from as to webscript

Question asked by gokceng on Mar 11, 2011
ActionScript Code:



namedValueArray["projectCombo"]=(projectCombo.selectedItem as Project).id;
namedValueArray["parentDocumentCombo"]=(parentDocumentCombo.selectedItem as ParentDocumentType).id;
namedValueArray["documentCombo"]=(documentCombo.selectedItem as DocumentType).id;
params.namedValueArray = namedValueArray;
params.alf_ticket=Application.application._alfTicket;
var service:HTTPService=new HTTPService;
service.url=ConfigService.instance.url + "/alfresco/service/tr/biz/myURL";
service.method="POST";
var token:AsyncToken=service.send(params);
token.addResponder(this);

Webscript Code(Javascript)

var customFormQueryData1 =  argsM["namedValueArray"];
var customFormQueryData2 = argsM.namedValueArray;
var customFormQueryData3 = args.namedValueArray;

They are all null.
How can I pass an associative array from actionscript to webscript?

Outcomes