zoukankan      html  css  js  c++  java
  • ReferenceError: Error #1065: 变量 dataGridArray 未定义

    1、错误描述

    ReferenceError: Error #1065: 变量 dataGridArray 未定义。
    	at global/flash.utils::getDefinitionByName()
    	at mx.utils::DescribeTypeCache$/describeType()[E:dev4.0.0frameworksprojectsframeworksrcmxutilsDescribeTypeCache.as:106]
    	at mx.utils::ObjectUtil$/getClassInfo()[E:dev4.0.0frameworksprojectsframeworksrcmxutilsObjectUtil.as:932]
    	at mx.controls::DataGrid/generateCols()[E:dev4.0.0frameworksprojectsframeworksrcmxcontrolsDataGrid.as:2753]
    	at mx.controls::DataGrid/collectionChangeHandler()[E:dev4.0.0frameworksprojectsframeworksrcmxcontrolsDataGrid.as:4633]
    	at mx.controls.listClasses::ListBase/set dataProvider()[E:dev4.0.0frameworksprojectsframeworksrcmxcontrolslistClassesListBase.as:2258]
    	at mx.controls::DataGrid/set dataProvider()[E:dev4.0.0frameworksprojectsframeworksrcmxcontrolsDataGrid.as:1640]
    	at mx.core::Container/createComponentFromDescriptor()[E:dev4.0.0frameworksprojectsframeworksrcmxcoreContainer.as:4285]
    	at mx.core::Container/createComponentsFromDescriptors()[E:dev4.0.0frameworksprojectsframeworksrcmxcoreContainer.as:4160]
    	at mx.core::Container/createChildren()[E:dev4.0.0frameworksprojectsframeworksrcmxcoreContainer.as:3187]
    	at mx.core::UIComponent/initialize()[E:dev4.0.0frameworksprojectsframeworksrcmxcoreUIComponent.as:7250]
    	at mx.core::Container/initialize()[E:dev4.0.0frameworksprojectsframeworksrcmxcoreContainer.as:3129]
    	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:dev4.0.0frameworksprojectsframeworksrcmxcoreUIComponent.as:7142]
    	at mx.core::UIComponent/addChildAt()[E:dev4.0.0frameworksprojectsframeworksrcmxcoreUIComponent.as:6848]
    	at spark.components::Group/addDisplayObjectToDisplayList()[E:dev4.0.0frameworksprojectssparksrcsparkcomponentsGroup.as:1825]
    	at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:dev4.0.0frameworksprojectssparksrcsparkcomponentsGroup.as:1416]
    	at spark.components::Group/setMXMLContent()[E:dev4.0.0frameworksprojectssparksrcsparkcomponentsGroup.as:512]
    	at spark.components::Group/set mxmlContent()[E:dev4.0.0frameworksprojectssparksrcsparkcomponentsGroup.as:452]
    	at spark.components::SkinnableContainer/set mxmlContent()[E:dev4.0.0frameworksprojectssparksrcsparkcomponentsSkinnableContainer.as:604]
    	at spark.components::SkinnableContainer/createDeferredContent()[E:dev4.0.0frameworksprojectssparksrcsparkcomponentsSkinnableContainer.as:986]
    	at spark.components::SkinnableContainer/createContentIfNeeded()[E:dev4.0.0frameworksprojectssparksrcsparkcomponentsSkinnableContainer.as:1014]
    	at spark.components::SkinnableContainer/createChildren()[E:dev4.0.0frameworksprojectssparksrcsparkcomponentsSkinnableContainer.as:827]
    	at mx.core::UIComponent/initialize()[E:dev4.0.0frameworksprojectsframeworksrcmxcoreUIComponent.as:7250]
    	at componts::WinDrag/initialize()
    	at mx.managers.systemClasses::ChildManager/childAdded()[E:dev4.0.0frameworksprojectsframeworksrcmxmanagerssystemClassesChildManager.as:189]
    	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E:dev4.0.0frameworksprojectsframeworksrcmxmanagersSystemManager.as:1963]
    	at mx.managers::SystemManager/addChildAt()[E:dev4.0.0frameworksprojectsframeworksrcmxmanagersSystemManager.as:1595]
    	at mx.managers::SystemManager/addChild()[E:dev4.0.0frameworksprojectsframeworksrcmxmanagersSystemManager.as:1578]
    	at mx.managers::PopUpManagerImpl/addPopUp()[E:dev4.0.0frameworksprojectsframeworksrcmxmanagersPopUpManagerImpl.as:345]
    	at mx.managers::PopUpManagerImpl/createPopUp()[E:dev4.0.0frameworksprojectsframeworksrcmxmanagersPopUpManagerImpl.as:236]
    	at mx.managers::PopUpManager$/createPopUp()[E:dev4.0.0frameworksprojectsframeworksrcmxmanagersPopUpManager.as:139]
    	at TitleWindow/clickHandler()[D:Adobe Flash Builder 4 InstallerTitleWindowsrcTitleWindow.mxml:18]
    	at TitleWindow/___TitleWindow_Button1_click()[D:Adobe Flash Builder 4 InstallerTitleWindowsrcTitleWindow.mxml:30]

    2、错误原因

         由于dataGridArray 是ArrayCollection类型,在表格中的数据绑定时,dataProvider="dataGridArray",导致出错


    3、解决办法

         将dataProvider="dataGridArray"修改成dataProvider="{dataGridArray}",注意语法

  • 相关阅读:
    Linux上VNC 启动和关闭
    oracle sql查询日期
    jmeter压力测试(多用户登录、选择商品、选择支付方式、下单)
    Java 8 新特性对比
    根据网络地址把图片保存到本地
    cron
    查看windows笔记本电池使用状况
    IIS7.5上的REST服务的Put操作发生HTTP Error 405.0
    .net core发布自定义配置web.config
    ASP.NET Core 3.1 发布时swagger xml缺失问题
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13314722.html
Copyright © 2011-2022 走看看