Select to view content in your preferred language

Editor Widget - Features

490
4
05-18-2011 10:52 AM
GarrettMoeller
Deactivated User
Greetings,
I have been struggling to get this particular widget to work.

I have it so that it will display a pop-up box with the tools available.
However, there is no list of features to choose from.
It simply says: "select template to create feature"

I have tried placing the widget in both the widgetcontainer as well as UI elements - same thing.

I have tried using both dynamic and feature operational layers.

It seems like the only other thing that could be wrong is from the creation of the features, themselves.
I have made a polygon as a basemap, as well as blank point, blank line, and blank polygon features (which are to be the user-editable ones).

I have noticed that using the tools, I am actually able to do some editing of the polygon basemap, however, it also does not show up in the list under "select template to create feature."
I have since excluded this layer, as I only want users to be able to create things on top of the basemap.

Is it not enough to simply create features.  Looking at the feature template in ArcMap edit menu, it appears to be the same thing as creating features the traditional way.

What could I be doing wrong?
Tags (2)
0 Kudos
4 Replies
JenniferGrew1
Emerging Contributor
I had a similar issue with this widget where it would not show the templates no matter what i did. I have to ask because this is what fixed it for me...Did you go into your map project in ArcMap and manually set up templates for the layers you want to edit?


  • If not, right click on the layer and under "Edit Features" select organize templates.

  • If this area is blank, there is your issue.

  • To remedy, just click the new template button at the tip of the window.

  • Select all the layers you want to have templates and hit finish.

  • It takes your symbology and creates a template for it that the edit tool pulls. I hope this helps.

0 Kudos
TomáO_Flaherty
New Contributor
Hi,

I had a similar problem where there were no list of features to choose from.

The solution I used:

In the config.xml file make sure you are referencing the 'feature class' and NOT the webservice, for example:

<layer label="Editable Features" type="feature" visible="true"
url="http://....../ArcGIS/rest/services/...../FeatureServer/0"/>

I hope this helps!
0 Kudos
ShawnKraft
Occasional Contributor
My config.xml starts like this

<map initialextent="506359 283843 559527 309834 3736" top="40">
        <basemaps>
            <mapservice label="Aerial" type="image" visible="true" alpha="1"
            url="http://icarus/ArcGIS/rest/services/Aerial/ImageServer"/>                   
        </basemaps>
        <operationallayers>
            <layer label="CityLayers" type="dynamic" visible="true"
                   url="http://icarus/ArcGIS/rest/services/PublicWorksFlex/MapServer"/>
        </operationallayers>

So could I just add what you have above to this and have it work?
0 Kudos
DanielSmith
Frequent Contributor
your layer tag should look something a bit more like this:

<layer label="CityLayers" type="feature" visible="true"
                   url="http://icarus/ArcGIS/rest/services/PublicWorksFlex/FeatureServer/index number of layer to edit"/>

in short you need to specify your type as "FEATURE" and the url needs to point directly to the layer you want to edit through the the FeatureServer (e.g. http://icarus/ArcGIS/rest/services/PublicWorksFlex/FeatureServer/0 to edit the first layer in the feature service)

hope this helps....
0 Kudos