POST
|
Does anyone know if there's been any movement on this? We're using 10.2.1 and getting the same problems. Even when I point the script to the proper toolbox, I get the error: ERROR 000617: Error accessing tool Extract Data Failing an actual fix for this, does anyone know of a decent way to replicate the speed of Extract Data in the ArcPy environment? Clip works, but it's far slower than Extract Data.
... View more
09-25-2015
08:32 AM
|
0
|
4
|
704
|
POST
|
Hi all. I would like to disable popups for certain layers while still drawing the layers on the screen. As an example, imagine a city boundary line. I noticed that if I remove the popupconfig field from the sublayer's XML entry in config.xml, the popup would be disabled, but making any changes in Application Builder just puts the field back (as does removing the entry entirely).
<sublayer id="33" popupconfig="popups/PopUp_33.xml"/>
<sublayer id="34"/>
<sublayer id="35" popupconfig="popups/PopUp_35.xml"/>
I've searched and can't find anything on this. Is there any way to toggle off popups for specific layers? Thanks!
... View more
05-02-2014
12:04 PM
|
0
|
0
|
2012
|
POST
|
Thanks Robert! That does indeed work. For anyone looking at this thread in the future:
<s:DropDownList width="200" visible="{queryTask.executeLastResult != null}"
prompt = "Choose Building" id="dropdown2"
labelField = "BUILDING_ID"
dataProvider="{new ArrayCollection(queryTask.executeLastResult.attributes)}"/>
... View more
04-29-2014
08:43 AM
|
0
|
0
|
198
|
POST
|
Hi all. I'm new to Flex development, so I may be missing something stupidly easy here, but I'm having an issue which I just can't find a solution for. I'm attempting to populate a DropDownList with all of the unique values from a certain field from the result of a query. As an example, think of a feature class of buildings with a field called "BUILDING_ID". I'd like each unique value in BUILDING_ID to appear in the DropDownList. The closest I've been able to come is using the esri:QueryTask methodology. I can get back the right number of returns, but I can't find a way to access the data. Every example of using this method seems to use a DataGrid, but I have to imagine that it's easy to pull out the data myself. The relevant parts of the code are as follows: private function widgetOpenedHandler(event:Event):void { queryTask.execute(queryX); ... } ... <fx:Declarations> <esri:QueryTask id="queryTask" url="http://myserverinfo/rest/.../4" useAMF="false"/> <esri:Query id="queryX" outfields="[BUILDING_ID]" text="%" returnGeometry="false"/> </fx:Declarations> ... <s:DropDownList width="200" visible="{queryTask.executeLastResult != null}" prompt = "Choose Building" id="dropdown2" dataProvider="{new ArrayCollection(queryTask.executeLastResult.attributes)}"/> So the query runs and the DropDownList gets populated with what appears to be the correct number of features. From my understanding, the values stored in queryTask.executeLastResult.attributes are pairs of JSON keys and values. I've tried getting at these and printing them out to a TextArea for debugging purposes, but I can never get anything besides [object Object]. I've attempted things like this to no avail: <s:TextArea text="{queryTask.executeLastResult.attributes[5].valueOf('BUILDING_ID')}"/> So I suppose my question is really two questions. Is this the best way to populate a DropDownList and if so, how can I get to the delicious values inside queryTask.executeLastResult.attributes? If it's not the best way (or even possible), can someone point to some code? Thanks
... View more
04-25-2014
09:00 AM
|
0
|
2
|
536
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|