|
POST
|
Alex, I don't quite see any code that is pulling field information from a layer. Maybe I am missing it just like how I can't find it in the ESRI doc's either.. Can you point me to a line number in your source? Basically I want to get an array of Fields from a given layer (i.e. Parcels) Drew
... View more
10-13-2010
12:25 PM
|
0
|
0
|
1526
|
|
POST
|
Hello, I am doing a small ESRI JS API project and don't use it too often so the library is new to me.. Anyways.. I cant find anyway to get field information. I am trying to write a function that will determine what the the OBJECTID field name is based on its data type (esriFieldTypeOID) The object is in the documentation (Field) but I can't find a way to get a field? In the Flex API you can call a a function like so...
mapServiceLayer.getLayerDetails(...)
Please help me get a fields array. Drew
... View more
10-13-2010
11:30 AM
|
0
|
18
|
5957
|
|
POST
|
Also.. Set your dataProvidor outside of the loop... Here is a working sample of code populating a combo box.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:esri="http://www.esri.com/2008/ags">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import com.esri.ags.Graphic;
import com.esri.ags.tasks.FeatureSet;
import com.esri.ags.events.QueryEvent;
private function queryData():void
{
queryTask.execute(query);
queryTask.addEventListener(QueryEvent.EXECUTE_COMPLETE, onQueryComplete);
}
private function onQueryComplete(event:QueryEvent):void
{
var featureSet:FeatureSet = event.featureSet;
var results:ArrayCollection = new ArrayCollection();
for each (var graphic:Graphic in featureSet.features)
{
var fieldValue:String = graphic.attributes["STATE_NAME"].toString();
results.addItem({label: fieldValue, data:graphic});
}
cmb.labelField = "label";
cmb.dataProvider = results;
}
]]>
</mx:Script>
<esri:QueryTask
id="queryTask"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5"/>
<esri:Query
id="query"
returnGeometry="false"
where="1=1"
outFields='["STATE_NAME"]'/>
<mx:ComboBox id="cmb" x="179" y="205" labelField=""></mx:ComboBox>
<mx:Button x="87" y="205" label="Load Data" click="queryData();"/>
</mx:Application>
Drew
... View more
10-12-2010
11:39 AM
|
0
|
0
|
906
|
|
IDEA
|
Either embed the REST admin into the Online AGS Manager, or link to it... The AGS services managment is too disconnected.
... View more
10-01-2010
01:21 PM
|
39
|
2
|
592
|
|
POST
|
You can find information in the ArcGIS Viewer for Flex �??Concepts�?� section http://help.arcgis.com/en/webapps/flexviewer/help/Default.htm#CSHID=widgets%2Ftimeslider_widget.htm|StartTopic=widgets%2Ftimeslider_widget.htm
... View more
09-29-2010
04:31 AM
|
0
|
0
|
201
|
|
POST
|
You will have to modify the particular widget and add a button/image/link and set the click event to a function that contains code similar to the below..
System.setClipboard("text to copy");
Drew
... View more
09-27-2010
07:13 PM
|
0
|
0
|
237
|
|
POST
|
I would like a field in our access database to contain a hyperlink that has co-ordinates in which in turn opens up a new webpage to the flexveiwer There are a lot of examples on how to do this on both Google and in the ESRI forums. I would do some digging around and see what you can find, it�??s very easy to do. Google results: http://www.google.ca/search?hl=&q=flex+url+parameters&sourceid=navclient-ff&rlz=1B3GGGL_enUS357US357&ie=UTF-8&aq=0&oq=Flex+URl+Par Simple Demo On passing URL parameters in Flex: http://www.abdulqabiz.com/files/test/QueryStringSample.html?myName=Abdul&myHomeTown=Bangalore Demos Source: http://www.abdulqabiz.com/blog/archives/2006/03/06/how-to-get-url-query-string-variables-within-flex-application/
... View more
09-27-2010
07:06 AM
|
0
|
0
|
491
|
|
POST
|
You will have to get a reference to your map component to get the extent. The best way to do this would be to pass the map in as a parameter in your classes constructor. Once you have the map you can then use the Extent object to see if the map point is contained within that extent... Sample code (untested)
var isContained:Boolean = myMap.extent.contains(myMapPoint);
Hopefully that helps a little... Post some sample code if you need further assistance. ESRI Sample project using the "contains(point:MapPoint)" method http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=SelectPointsWithExtent Drew
... View more
09-24-2010
06:01 PM
|
0
|
0
|
511
|
|
POST
|
You cannot change the map�??s appearance unless it�??s your own map service. If it�??s your own �??Dynamic�?� map service (published using ArcGIS Server) you can change the look and feel using ArcMap , then restart service. If it�??s your own �??Tiled�?� map service, edit the mxd/msd using ArcMAp, then recreate your tiles. If it�??s an ESRI or another map service you did not create, you have to live with what they have published. Drew
... View more
09-24-2010
08:52 AM
|
0
|
0
|
322
|
|
POST
|
It sounds like you have done everything correct. A sample would be better to ensure your syntax is right... Here is a sample if my class was called "PropertySearch"
var search:PropertySearch = new PropertySearch();
var address:String = search.GetAddress(pid);
Drew
... View more
09-21-2010
06:58 PM
|
0
|
0
|
412
|
|
POST
|
A quick Google using the key words "ESRI Error #2032" found this.. http://www.judahfrangipane.com/blog/?p=87 Maybe it will help. Drew
... View more
08-31-2010
04:44 PM
|
0
|
0
|
1226
|
|
POST
|
I tried to create a copy of the component and ran into too many issues to assist. The event TitleButtonClickEvent is missing along with a lot of embedded resources & classes (com.model.Model). I would suggest posting a complete project as an attachment to get further assistance. Drew
... View more
08-27-2010
09:31 AM
|
0
|
0
|
291
|
|
POST
|
Could it be a browser cache issue and ultimately an error somewhere in your code that's causing this? I have seen similar where you try and execute a method before the map information is loaded and the application crashes, BUT if you come back to your application it seems to have cached a few things to make it work. I would make a basic app with just a map and see if you get a similar error. Drew
... View more
08-26-2010
11:04 AM
|
0
|
0
|
1695
|
|
POST
|
Its probably the crossdomain.xml policy file. I would suggest posting that file and/or take a read on the link below http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/index.html#references/using_crossdomain_xml.htm# Drew
... View more
08-20-2010
05:56 PM
|
0
|
0
|
1695
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2013 09:40 AM | |
| 1 | 12-11-2012 10:19 AM | |
| 1 | 05-25-2015 10:46 AM | |
| 1 | 05-10-2016 06:31 AM | |
| 1 | 01-17-2017 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2021
09:54 AM
|