0 Replies Latest reply on Nov 13, 2009 6:21 AM by Wiouou

    Why do dynamic objects get returned instead of a class with data management

    Wiouou Level 1

      I'm wondering why a call to a stored procedure returns dynamic objects although I have a client-side class associated to the result.

       

      The code in the stored procedure executes this select statement:

      SELECT PRODUCT_ID, [NAME] AS NAMES, CATEGORY, DESCRIPTION

       

      This returns an array of dynamic objects although I configured my destination as:

      <server>

        ...

        <actionscript-class>Product</actionscript-class>

        ...

      </server>

       

      and Product.as:

      [Managed]
      [RemoteClass]
      public class Product
      {

        public var PRODUCT_ID:int;

        public var NAMES:String = "";

        public var CATEGORY:String = "";

        public var DESCRIPTION:String = "";

      }