2 Replies Latest reply on Jun 27, 2006 7:38 PM by doug777

    RemoteObject

    doug777 Level 1
      I have a simple mxml file that connects to a cfc using RemoteObject. The data is returned correctly and populates a datagrid.

      But I don't really want to populate a datagrid, I want to use the data in the program. So I have moved the RemoteObject to a class file, but now when I run the app, I get the error: Cannot access a property or method of a null object reference.

      I get a similar sort of error from the original mxml file setup if I remove the datagrid: Argument error - One of the parameters is invalid. How does the RemoteObject call know that I've removed the datagrid??

      This makes me think that I need to pass some reference in the RemoteObject call to the object I want to populate with the result, but there seems no way to do this, What is the mxml compiler doing that I can't do in my class file??

      Doug