Select to view content in your preferred language

Edit widget

961
2
07-21-2010 03:54 AM
SimonMorgan
Frequent Contributor
Is there a way to exclude layers from being editable? My current method is to publich the MXD twice, the second time publishing the feature service with editing turned off so that I can query using pop up windows.
Tags (2)
0 Kudos
2 Replies
SarthakDatt
Frequent Contributor
Hey Simon,

The Edit Widget right now works of the operational layers(feature layers) that are editable. The operational layers are defined in the main config file. You can exclude layers from the edit widget by including the <excludelayer> tag in edit widget's config file.

Something like :

<?xml version="1.0" ?>
<configuration>
    <createoptions>
        <polygondrawtools>polygon,freehandpolygon,extent,autoComplete</polygondrawtools>
        <polylinedrawtools>polyline,freehandpolyline,line</polylinedrawtools>
    </createoptions>
    <deletefeatures>true</deletefeatures>
    <excludelayer>layer1</excludelayer>
    <excludelayer>layer2</excludelayer>
</configuration>

Hope that helps.

--Sarthak Datt
0 Kudos
SimonMorgan
Frequent Contributor
Thanks for the reply. I should have known that as I have used the exclude layer in the layer list widget.
0 Kudos