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...
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