免费视频|新人指南|投诉删帖|广告合作|地信网APP下载

查看: 1317|回复: 0
收起左侧

[求助] FeatureDataGrid对象recordGrid无法执行recordGrid.clear()?具体错误如下:

[复制链接]

12

主题

657

铜板

1

好友

助理工程师

Rank: 5Rank: 5

积分
145
发表于 2013-5-9 17:10 | 显示全部楼层 |阅读模式
Error: E0003E: The index value exceeds the array range!
        at com.supermap.web.mapping::FeaturesLayer/removeFeatureAt()[F:\Iclient\01_SourceCode\truck\YIPMan6\iClientFlexLib6R\src\com\supermap\web\mapping\FeaturesLayer.as:1110]
        at com.supermap.web.mapping::FeaturesLayer/removeFeature()[F:\Iclient\01_SourceCode\truck\YIPMan6\iClientFlexLib6R\src\com\supermap\web\mapping\FeaturesLayer.as:1083]
        at com.supermap.web.components::FeatureDataGrid/clear()[E:\SuperMapiClient60\01_SourceCode\trunk\YIPMan6\iClientFlexLib6R\src\com\supermap\web\components\FeatureDataGrid.as:448]
        at com.supermap.web.components.query:ueryByGeometry/clearFeature()[E:\UnicomGis\flex-src\com\supermap\web\components\query\QueryByGeometry.mxml:509]
        at com.supermap.web.components.query::QueryByGeometry/displayQueryRecords()[E:\UnicomGis\flex-src\com\supermap\web\components\query\QueryByGeometry.mxml:417]
        at mx.rpc::AsyncResponder/result()[E:\dev\4.y\frameworks\projects\rpc\src\mx\rpc\AsyncResponder.as:95]
        at com.supermap.web.iServerJava6R.queryServices::QueryService/handleDecodedObject()[F:\Iclient\01_SourceCode\truck\YIPMan6\SuperMapiServerJava6R\src\com\supermap\web\iServerJava6R\queryServices\QueryService.as:80]
        at Function/http://adobe.com/AS3/2006/builtin::call()

代码如下:
private var recordGrid:FeatureDataGrid;
//清除查询结果
                         private function clearFeature():void
                         {
                                 if(highlayer && highlayer.numChildren > 0)
                                 {
                                         this._map.removeLayer(highlayer);
                                 }
                                 _map.action = new Pan(_map);
                                 resultFeatures = [];
                                 if(this.recordGrid)
                                 {
                                         this.recordGrid.clear();    //第509行
                                 }
                                 featuresLayer.clear();
                                 this.result.visible = false;
                                 //                                this.resultDisplay.visible=false;
                         }
好奇怪,不知道什么原因,还有这句代码:
if(!this.recordGrid)
{
......
}else
{
......
}
这里的this.recordGrid明明是一个FeatureDataGrid对象,怎么可以这样?太受打击了。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

在线客服
快速回复 返回顶部 返回列表