1 Reply Latest reply on Nov 12, 2008 4:25 PM by ntsiii

    Actionscript Data Service Errors


      I am trying to accomplish a task to allow users modify and view the data from DataGrid service, but the problem I have right now is that it is based on the selections the users have made using check boxes, which this portion is written in Actionscript.

      I stored the selection into a string, and try to use HTTPService to "POST" the data, and it did not return me anything from my DataGrid. Could someone please help me with the syntax of how to allow my two defined string variables be posted to the service correctly?

      Thanks in advance.

        • 1. Re: Actionscript Data Service Errors
          ntsiii Level 3
          Don't build the request object declaratively. Instead do:

          var oRequest:Object = new Object();
          oRequest.message = message2;

          Also, it is very dangerouys to use "lastResult" anywhere but in a binding expression, since the framework can overwrite it at any time.

          Instead, use a result handler and put your result data into a variable and bind to and use that where needed.

          Finally, on HTTPService set resultFormat="e4x". otherwise Flex converts your xml into a nexted dynamic object structure. Thsi is almost never a good thing.