POST
|
Is there a way to change the layout of the templates? There are two feature layers Historic and Grant with only 1 editable feature each. They look like this now [ATTACH=CONFIG]16104[/ATTACH] but I would like it to look like this. [ATTACH=CONFIG]16105[/ATTACH]
... View more
07-14-2012
12:35 PM
|
0
|
1
|
1770
|
POST
|
Yes, it's appearing in the correct order now. Thank you for your help.
... View more
07-06-2012
10:12 AM
|
0
|
0
|
63
|
POST
|
No, I still can figure this out. The getFormItemLabel function came from the formsFieldOrder property on the AttributeInspector page of the API reference. http://resources.arcgis.com/en/help/flex-api/apiref/index.html Yes, I have upgraded to 3.0.
... View more
07-06-2012
10:02 AM
|
0
|
0
|
580
|
POST
|
Yes, they are sorted alphabetically now. How exactly do I code the body of the function? protected function getFormItemLabel(featureLayer:FeatureLayer, field:Field, fieldInspector:FieldInspector):String { what do I put here? }
... View more
07-05-2012
03:37 PM
|
0
|
0
|
580
|
POST
|
<?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:esri="http://www.esri.com/2008/ags" initialize="application1_initializeHandler(event)" pageTitle="Editor"> <fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @namespace esri "http://www.esri.com/2008/ags"; esri|InfoWindow { background-color: #FFFFFF; border-thickness: 2; } </fx:Style> <fx:Script> <![CDATA[ import com.esri.ags.FeatureSet; import com.esri.ags.utils.GraphicUtil; import mx.rpc.AsyncResponder; import mx.controls.Alert; var eFeatureSet:FeatureSet; protected function doQuery():void { GraphicsLayer.clear(); queryTask.execute(query, new AsyncResponder(onResult, onFault)); function onResult(eFeatureSet:FeatureSet, token:Object = null):void { if (eFeatureSet.features.length == 0) { Alert.show("parcel not found"); } else { var graphicsExtent:Extent = GraphicUtil.getGraphicsExtent(eFeatureSet.features); if (graphicsExtent) { myMap.extent = graphicsExtent; } } } function onFault(info:Object, token:Object = null):void { Alert.show(info.toString()); } } ]]> </fx:Script> <fx:Script> <![CDATA[ import mx.events.FlexEvent; protected function application1_initializeHandler(event:FlexEvent):void { myEditor.featureLayers = [ grant, historic ]; } ]]> </fx:Script> <fx:Declarations> <esri:GeometryService id="myGeometryService" url="http://msgis-ags-1/ArcGIS/services/C20-amanda_hutsel/Geometry/GeometryServer"/> <esri:SimpleFillSymbol id="sfs" alpha="0.7" color="0xFF0000"/> <esri:QueryTask id="queryTask" url="http://msgis-ags-1/ArcGIS/rest/services/C20-amanda_hutsel/HighlandMapSDE3/MapServer/2" useAMF="false"/> <esri:Query id="query" outSpatialReference="{myMap.spatialReference}" returnGeometry="true" where="APN = {parcelText.text}"> <esri:outFields> <fx:String>APN</fx:String> </esri:outFields> </esri:Query> </fx:Declarations> <s:BorderContainer width="370" height="560" backgroundColor="#ffffff" borderColor="#ff821c" borderWeight="4" cornerRadius="10" horizontalCenter="-456"> <s:layout> <s:VerticalLayout verticalAlign="top" horizontalAlign="left" paddingLeft="10"/> </s:layout> <s:Label text="Edit" fontWeight="bold" fontSize="18" paddingTop="5"/> <s:TextInput id="parcelText" enter="doQuery()"/> <s:Button label="Find Parcel" click="doQuery()"/> <s:Label paddingBottom="20"/> <esri:Editor id="myEditor" width="100%" height="250" geometryService="{myGeometryService}" map="{myMap}"/> </s:BorderContainer> <s:BorderContainer width="950" height="560" cornerRadius="10" borderStyle="inset" horizontalCenter="228"> <s:borderStroke> <s:SolidColorStroke color="#00923f" weight="4"/> </s:borderStroke> <esri:Map id="myMap" x="0" top="5" height="540" right="5" left="5" bottom="5" horizontalCenter="0"> <esri:extent> <esri:Extent xmin="-13049723" ymin="4043802" xmax="-13042275" ymax="4046486"> <esri:SpatialReference wkid="102100"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> <esri:FeatureLayer id="grant" mode="snapshot" outFields="[LName, Fname, Street_Address, Parcel_Number, Grant_Program, Grant_Amount, Escrow_Date, Reconveyance_Date, PaidByHomeowner]" url="http://msgis-ags-1/ArcGIS/rest/services/C20-amanda_hutsel/HighlandMapSDE3/FeatureServer/1"> <esri:renderer> <esri:UniqueValueRenderer> <esri:defaultSymbol> <esri:SimpleMarkerSymbol color="#00FF00" style="diamond" size="12"/> </esri:defaultSymbol> </esri:UniqueValueRenderer> </esri:renderer> </esri:FeatureLayer> <esri:FeatureLayer id="historic" mode="snapshot" outFields="[ReferenceNo, Street_Address, AssessorParcelNo, ConStatus, CertificateOfAppropriateness]" url="http://msgis-ags-1/ArcGIS/rest/services/C20-amanda_hutsel/HighlandMapSDE3/FeatureServer/0"> <esri:renderer> <esri:UniqueValueRenderer> <esri:defaultSymbol> <esri:SimpleMarkerSymbol color="#61280E" style="square" size="12"/> </esri:defaultSymbol> </esri:UniqueValueRenderer> </esri:renderer> </esri:FeatureLayer> <esri:GraphicsLayer id="GraphicsLayer" graphicProvider="{queryTask.executeLastResult.features}" symbol="{sfs}"/> </esri:Map> </s:BorderContainer> </s:Application>
... View more
07-05-2012
02:38 PM
|
0
|
0
|
580
|
POST
|
I'm using version 2.5, and no, I have not tried this AttributeInspector.formFieldsOrder method. I just looked it up and am quite confused as to where and how I would implement this. Could you clarify? Thanks.
... View more
07-05-2012
12:51 PM
|
0
|
0
|
580
|
POST
|
My attributes are in the correct order in Arc but when I run my Flex application the attributes in the Inspector are all out of order. Also, how do you make the attributes show with their alias instead of the actual names. Thanks.
... View more
07-05-2012
10:17 AM
|
0
|
10
|
1075
|
POST
|
I'm using the sample code for the Defualt Editor. In the <Application> tag there is the line initialize="application1_initializeHandler(event)" I keep getting a debugging message when I start my application and my templates do not show up as well. I am using a view stacks method for showing several different maps, and the edit view is on only one of the views. This is the error that I get[ATTACH=CONFIG]15770[/ATTACH] I think that I may need to move the initialize="application1_initializeHandler(event)" line of code, but I don't know to where. Any ideas?
... View more
07-04-2012
10:08 AM
|
0
|
3
|
559
|
POST
|
I'm using the sample code (http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Default_Editor/01nq0000001r000000/) to build my editing application but when I put in my services the legend area shows the acutal layer name. I would like it to be like the example and show the word "grant" instead of sde_Amanda_Hutsel."SPATIAL\AMANDA_HUTSEL".GrantHomePoints. How do I do this?
... View more
07-03-2012
09:22 AM
|
0
|
1
|
305
|
POST
|
Can someone explain what the geometry service is, what role it plays in the editing process, and how to create one? I'm very new to Flex, so make it simple please.
... View more
06-30-2012
05:46 PM
|
0
|
1
|
446
|
POST
|
I have two point feature classes, called "parcels" and "grant". The application has a form in which the user enters in attributes for a new feature that will be added to the "grant" feature class. One of those attributes will be a parcel number. I would like to query the "parcel" feature class using the entered parcel number. The query results will return an outField of "OWNER_ADDRESS". I would like to use the location of the "parcel" point, add to it the other attributes that were entered into the form (grant_Program, date, name, etc.) and OWNER_ADDRESS, then save it as a new feature in the "grant" feature class. I know how to query the "parcels" layer, but am not sure how to code the rest of this functionality. Any help, including code, would be of great help. Thanks, Amanda
... View more
06-15-2012
01:13 PM
|
0
|
0
|
1676
|
POST
|
Robert, For some reason I'm not able to download the file.
... View more
06-05-2012
11:13 AM
|
0
|
0
|
428
|
POST
|
Thanks Robert, This sounds like exactly what I need. Unfortualy when I click on the CrimeEntryWidget.mxml I get a 404 error.
... View more
06-05-2012
10:56 AM
|
0
|
0
|
428
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|