学习笔记之Arcgis server开发中identify查询结果显示问题
来源:互联网 发布:传感器网络 sci期刊 编辑:程序博客网 时间:2024/06/08 10:31
在网上找了很多例子,在Arcgis server的开发中,关于identify查询绑定字段,都写的比较模糊,虽然查出了结果,但是显示的字段却仅限那几个layerid、layername和value,很难满足需要,显示效果也不好,后来通过自己亲测,发现是数据源绑定的问题。
之前的案例绑定的数据源都是:“datalist.dataProvider=identifyTask.executeLastResult;”
将其结果属性打印出来,会发现
........
accessibilityProperties = (mx.accessibility::UIComponentAccProps)#2
description = ""
forceSimple = false
name = ""
noAutoLabeling = false
shortcut = ""
silent = false
accessibilityShortcut = ""
activeEffects = (Array)#3
alpha = 1
attributes = (Object)#4
FID = "14"
name = "怒江傈僳族自治州"
Shape = "Polygon"
WRLD30_ID = "87"
automationDelegate = (null)
automationEnabled = true
automationName = ""
automationOwner = (com.esri.ags.layers::GraphicsLayer)#5
accessibilityDescription = ""
accessibilityEnabled = true
.........
validationSubField = (null)
verticalCenter = (null)
visible = true
width = 0
x = 422
y = 78.15
z = 0
layerId = 0
layerName = "world30"
value = "87"
..........
我们会发现,其实我们需要的字段在属性里,但是为什么却获取不到,后来我改变了绑定的数据源,将其改成:“datalist.dataProvider=lastIdentifyResultGraphic.attributes;”
然后就可以在表格中直接绑定其属性字段名称了。
<mx:DataGrid id="datalist" x="10" y="149" width="206" height="298">
<mx:columns>
<mx:DataGridColumn width="56" dataField="FID" headerText="序号"/>
<mx:DataGridColumn width="150" dataField="name" headerText="所选地名"/>
</mx:columns>
</mx:DataGrid>
- 学习笔记之Arcgis server开发中identify查询结果显示问题
- ArcGIS API for JavaScript 解决identify Task 和QueryTask查询结果限制(1000)问题
- Arcgis server查询结果的条数
- 关于网页中显示php查询数据库结果乱码问题
- ArcGIS server+Silverlight学习笔记
- (十)ArcGIS Server之开发SOE(中)
- ArcGis for flex 中QueryTask查询结果限制(1000)问题
- sql server 2005 显示中文查询结果
- 【SQL学习笔记】查询结果resultset无法回滚问题
- ArcGIS Server之高亮查询要素
- arcgis javascript api identify 查询功能一例
- 基于Arcgis server API开发查询时报错“。。。。流错误,”等问题
- (七)ArcGIS Server之发布结果地图服务
- 关于查询结果的显示问题
- plsql 查询结果显示问题(请教)
- sqlplus显示查询结果自动换行问题
- Arcgis Server javascript— ExtJS显示查询数据
- arcgis api for flex 开发入门(六)identify
- 容器的归纳和总结系列之一
- 用立方差证平方和及用四次方差证立方和_20160510
- STM32 RTC实时时钟
- 初学反射
- JDK JRE JVM
- 学习笔记之Arcgis server开发中identify查询结果显示问题
- PL/SQL---创建用户、指定表空间、授权。
- eclipse中的快捷键
- VS 2015 拖动numericUpDown控件VS无响应(包括VS2013)
- 雷神Quake3引擎
- 混合积的几何意义_20160512
- Android FragmentManage FragmentTransaction介绍
- 深入理解容器系列之二--------ArrayList的总结
- Nginx配置负载均衡