|
POST
|
Ben, is this editwidget.xml works fine? Looks like:
<!-- Not a geometry service -->
<geometryservice>
http://175.41.137.150/ArcGIS/rest/services/Invisible_Landscapes_edits/FeatureServer
</geometryservice>
<!-- sample geometry service -->
<geometryservice>
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer
</geometryservice>
... View more
07-12-2011
04:57 AM
|
0
|
0
|
1153
|
|
POST
|
1 - Robert, here is flex api forum (not flex viewer forum) 2 - You do not need any (Adobe, ESRI, Microsoft) support for it. (Microsoft has a link to fiddler in msdn) 3 - It's not decompiler 😄 4 - It's seems like firebug.png & fiddler.png 5 - It just helps overview browser & application background work - and nothing more. Good luck.
... View more
07-11-2011
04:28 AM
|
0
|
0
|
2275
|
|
POST
|
1 - What about Fiddler2 web debugger for "IE" or Firebug web debugger for "FF"? It gives you a look of all problems you have while sending requests to your ArcGIS server. 2 - What about tracing LayerEvent.load and LayerEvent.loadError events for your map layers?
... View more
07-11-2011
03:39 AM
|
0
|
0
|
2275
|
|
POST
|
...when the extent changes... 1 - listen Map.extenChange event. Now you can handle. ...to automatically query new graphics... 2 - clear selection on FeatureLayer. 3 - make a new selection, where Query parameter "Input Geometry" is Extent you just listened with Map.extenChange handler.
... View more
07-11-2011
01:23 AM
|
0
|
0
|
536
|
|
POST
|
Sorry, but my English is so poor... i can't describe you how to... I tried to give you links to ESRI help. Just feel the difference between screen3.png (ESRI sample service) - support asynchronous geoprocessing and screen2.png (your service) - NOT support asynchronous geoprocessing
... View more
07-06-2011
06:26 AM
|
0
|
0
|
1828
|
|
POST
|
Hmmm. Now I understood the meaning of your question. :confused: "ykchin" advised you how to solve you problem. No more - only 3 steps. I just tried to show you where you can get help.
... View more
07-06-2011
02:31 AM
|
0
|
0
|
1828
|
|
POST
|
Just download Flex Viewer 2.3.1 source code - in widgets package find DataExtractWidget.mxml
... View more
07-06-2011
01:01 AM
|
0
|
0
|
1828
|
|
POST
|
http://193.204.163.134/ArcGIS/sdk/rest/index.html?gpserver.html - ArcGIS Server REST API gpService.execute(params, new AsyncResponder(gpServiceResultHandler, gpServiceFaultHandler));
...
private function gpServiceResultHandler(data:Object, token:Object = null):void
{ //do smthing with results }
private function gpServiceFaultHandler(fault:Fault, token:Object = null):
{ //do smthing with faults } Also in last Flex Viewer from ESRI you can find DataExtractWidget - it works with GPServices. looking on your service, i cant find "SubmitJob" in supported operations execute() submitJob()
... View more
07-05-2011
10:11 PM
|
0
|
0
|
1828
|
|
POST
|
ArcGIS API for flex -> Concepts -> Geoprocessing tasks Also, the last Flex Viewer has "DataExtractWidget" - i works perfectly with my GP-Service, but sometimes returns exceptions working with ESRI sample GP-Service. You are looking for any ideas=start point? Look for help: http://yourservername/ArcGIS/SDK/REST/index.html?gpserver.html Ivan
... View more
06-21-2011
02:09 AM
|
0
|
0
|
595
|
|
POST
|
I know. 1 - Flex API Reference. 2 - featureLayer.applyEdits(). 3 - FeatureLayerEvent.featureEditResults. 4 - FeatureEditResults. 5 - FeatureEditResult.objectId. All you need is listen FeatureLayerEvent after calling applyResults(adds:Array, updates:Array, deletes:Array, new AsyncResponder(resultListenerFunctionName, faultListenerFunctionName)).
... View more
06-20-2011
12:41 AM
|
0
|
0
|
273
|
|
POST
|
Related Records sample in Samples -> FeatureLayer -> RelatedRecords Multiple Related Records sample in Samples -> FeatureLayer -> Multiple Related Records
... View more
06-12-2011
10:43 PM
|
0
|
0
|
473
|
|
POST
|
May be this code helps: <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:esri="http://www.esri.com/2008/ags">
<s:layout>
<s:VerticalLayout paddingBottom="6"/>
</s:layout>
<fx:Script>
<![CDATA[
import com.esri.ags.Graphic;
import com.esri.ags.events.MapMouseEvent;
import com.esri.ags.geometry.Geometry;
import com.esri.ags.geometry.MapPoint;
import mx.collections.ArrayCollection;
import mx.utils.StringUtil;
private var lastAddedGraphic:Graphic = null;
/**
* Listen map mouse down handler
*/
protected function myMap_mapMouseDownHandler(event:MapMouseEvent):void
{
var grGeometry:MapPoint = event.mapPoint;
var grAttributes:Object = new Object();
grAttributes.creationDate = new Date().toString();
var gr:Graphic = new Graphic(grGeometry, sms, grAttributes);
gr.toolTip = gr.attributes.creationDate;
var grId:String = myGraphicsLayer.add(gr);
trace(StringUtil.substitute("Graphic with id: {0} added.", grId));
lastAddedGraphic = gr;
}
/**
* Listen clear all button click handler
*/
protected function btnClearClick(event:MouseEvent):void
{
myGraphicsLayer.clear();
lastAddedGraphic = null;
}
/**
* Listen remove button click handler
*/
protected function btnRemoveClick(event:MouseEvent):void
{
if (lastAddedGraphic != null)
{
try
{
var grId:String = lastAddedGraphic.id;
myGraphicsLayer.remove(lastAddedGraphic);
trace(StringUtil.substitute("Graphic with id: {0} removed.", grId));
lastAddedGraphic = null;
}
catch (err:Error)
{
trace(err.message);
}
}
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Symbol for all point shapes -->
<esri:SimpleMarkerSymbol id="sms"
color="0x00FF00"
size="12"
style="{SimpleMarkerSymbol.STYLE_DIAMOND}"/>
</fx:Declarations>
<esri:Map id="myMap"
mapMouseDown="myMap_mapMouseDownHandler(event)"
level="3"
wrapAround180="true">
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<esri:GraphicsLayer id="myGraphicsLayer"/>
</esri:Map>
<s:Button id="btnClearAll" label="Clear all graphics" click="btnClearClick(event)"/>
<s:Button id="btnRemove" label="Remove last graphics" click="btnRemoveClick(event)"/>
</s:Application>
... View more
06-08-2011
09:50 PM
|
0
|
0
|
279
|
|
POST
|
As i see in your fault message: "Execute operation is not allowed on this service". Read help to find witch operations (submit job, execute ...) are allowed: http://yoursevername/ArcGIS/SDK/REST/index.html?gpserver.html
... View more
06-08-2011
09:20 PM
|
0
|
0
|
459
|
|
POST
|
Yes, actually, you can not add a the same Graphic to a GraphicsLayer twice. Can you tell, what is the base idea? Why do you need in 2 absolutely equals graphics in 1 layer? <fx:Script>
<![CDATA[
import com.esri.ags.Graphic;
import com.esri.ags.events.MapMouseEvent;
import com.esri.ags.geometry.Geometry;
import com.esri.ags.geometry.MapPoint;
import mx.utils.StringUtil;
/**
* Listen map mouse down handler
*/
protected function myMap_mapMouseDownHandler(event:MapMouseEvent):void
{
var grGeometry:MapPoint = event.mapPoint;
var grAttributes:Object = new Object();
grAttributes.creationDate = new Date().toString();
var gr1:Graphic = new Graphic(grGeometry, sms, grAttributes);
gr1.toolTip = gr1.attributes.creationDate;
var gr2:Graphic = new Graphic(grGeometry, sms, grAttributes);
gr2.toolTip = gr2.attributes.creationDate;
var grId1:String = myGraphicsLayer.add(gr1);
var grId2:String = myGraphicsLayer.add(gr2);
trace(StringUtil.substitute("Graphic with id: {0} added.", grId1));
trace(StringUtil.substitute("Graphic with id: {0} added.", grId2));
}
]]>
</fx:Script>
... View more
06-06-2011
04:17 AM
|
0
|
0
|
537
|
|
POST
|
http://help.arcgis.com/en/webapi/flex/samples/index.html Here are 11 samples, the 1-st of them "Adding Graphics" - i shows how to add graphics.
... View more
06-06-2011
02:04 AM
|
0
|
0
|
537
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-03-2017 11:25 PM | |
| 1 | 10-06-2016 11:49 PM | |
| 2 | 06-07-2012 01:38 AM | |
| 1 | 06-03-2012 09:42 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|