ReferenceError: Error #1065: 變數 dataGridArray 未定義,

來源:互聯網
上載者:User

ReferenceError: Error #1065: 變數 dataGridArray 未定義,

1、錯誤描述

ReferenceError: Error #1065: 變數 dataGridArray 未定義。at global/flash.utils::getDefinitionByName()at mx.utils::DescribeTypeCache$/describeType()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\utils\DescribeTypeCache.as:106]at mx.utils::ObjectUtil$/getClassInfo()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\utils\ObjectUtil.as:932]at mx.controls::DataGrid/generateCols()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:2753]at mx.controls::DataGrid/collectionChangeHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:4633]at mx.controls.listClasses::ListBase/set dataProvider()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:2258]at mx.controls::DataGrid/set dataProvider()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1640]at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4285]at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4160]at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3187]at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3129]at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7142]at mx.core::UIComponent/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6848]at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Group.as:1825]at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Group.as:1416]at spark.components::Group/setMXMLContent()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Group.as:512]at spark.components::Group/set mxmlContent()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Group.as:452]at spark.components::SkinnableContainer/set mxmlContent()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:604]at spark.components::SkinnableContainer/createDeferredContent()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:986]at spark.components::SkinnableContainer/createContentIfNeeded()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1014]at spark.components::SkinnableContainer/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:827]at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]at componts::WinDrag/initialize()at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1963]at mx.managers::SystemManager/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1595]at mx.managers::SystemManager/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1578]at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:345]at mx.managers::PopUpManagerImpl/createPopUp()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:236]at mx.managers::PopUpManager$/createPopUp()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\PopUpManager.as:139]at TitleWindow/clickHandler()[D:\Adobe Flash Builder 4 Installer\TitleWindow\src\TitleWindow.mxml:18]at TitleWindow/___TitleWindow_Button1_click()[D:\Adobe Flash Builder 4 Installer\TitleWindow\src\TitleWindow.mxml:30]

2、錯誤原因

     由於dataGridArray 是ArrayCollection類型,在表格中的資料繫結時,dataProvider="dataGridArray",導致出錯


3、解決辦法

     將dataProvider="dataGridArray"修改成dataProvider="{dataGridArray}",注意文法

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.