Discussion Area

ask questions, discuss topics, solve problems

This is a public Discussion Area  publicRSS

Thread

    • ReferenceError: Error #1065: Variable...
      Thread posted Jul 29 by s.harshas.c
      273 Views, 3 Comments
      Title:
      ReferenceError: Error #1065: Variable (employeeData) is not defined.
      Content:

      Hi every one,

        in these days i am running out with this error, variable not defined, but as far i considered that the variable was defined. so, i am unable to find why the error is occuring and where it is? please help me out from this...

      and also i am showing the code here.. please i request u to clear my doubt and help me...

      Code Snippet:

    Comments

    • Your 'employeeData' var is null when your DataGrid uses it.

      Try adding "private var employeeData:ArrayCollection = new ArrayCollection();" or in your creationCcomplete handler instantiate that variable like this:

      employeeData = new ArrayCollection();

      This should solve your problem.

    • Oh and btw:

      This line "<mx:DataGrid dataProvider="(employeeData)" height="100%" width="100%" />"

      Should be : "<mx:DataGrid dataProvider="{employeeData}" height="100%" width="100%" />"

      • Thankyou very much sir, the problem is rectified