<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Non-editable Layer in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332518#M1466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For some reason all feature layers of my mobile cache are read-only. Would you know what &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;needs to be done in order to be able to add values (points, polylines, etc) to a feature layer ?&amp;nbsp; My suspicion is that I need to setup something in my map document, mxd file. Or perhaps when I make the cache I need to do some extra step?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the following code I get exception that the feature layer is not editable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Selects a specific cache layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer featureLayer = _cacheData.Layers[0] as FeatureLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Gets the feature layer data table schema
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureDataTable featureDataTable = featureLayer.GetDataTable( );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Creates a new row
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureDataRow featureDataRow = featureDataTable.NewRow( ); 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Last line raises exception "The target feature layer does not allow creation of new features."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Aug 2010 21:23:19 GMT</pubDate>
    <dc:creator>AlexProtyagov</dc:creator>
    <dc:date>2010-08-16T21:23:19Z</dc:date>
    <item>
      <title>Non-editable Layer</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332518#M1466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For some reason all feature layers of my mobile cache are read-only. Would you know what &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;needs to be done in order to be able to add values (points, polylines, etc) to a feature layer ?&amp;nbsp; My suspicion is that I need to setup something in my map document, mxd file. Or perhaps when I make the cache I need to do some extra step?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the following code I get exception that the feature layer is not editable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Selects a specific cache layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer featureLayer = _cacheData.Layers[0] as FeatureLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Gets the feature layer data table schema
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureDataTable featureDataTable = featureLayer.GetDataTable( );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Creates a new row
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureDataRow featureDataRow = featureDataTable.NewRow( ); 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Last line raises exception "The target feature layer does not allow creation of new features."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 21:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332518#M1466</guid>
      <dc:creator>AlexProtyagov</dc:creator>
      <dc:date>2010-08-16T21:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Non-editable Layer</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332519#M1467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To check if it is possible to edit data you can use&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if (featureLayer.AllowNew || featureLayer.AllowModify)
{
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only condition for editing data is an existing GLOBAL_ID field in the feature class. You can add it in ArcCatalog.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332519#M1467</guid>
      <dc:creator>MaximilianGlas</dc:creator>
      <dc:date>2021-12-11T15:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Non-editable Layer</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332520#M1468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. That appears to be the only way, the GLOBALID on the feature class. When I did that it was editable on mobile just fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just for curiosity, - is it possible to make an editable layers for mobile devices from shape files? Somehow when I make a layer from a shape file it read-only on mobile. However, it is ok since I can edit SDE feature classes derived from oracle db.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously a feature class built from a database view does not support globalid simply because views are not editable. Is there a trick to make a feature class derived a view editable on mobile device. The&amp;nbsp; idea is that the layer only gets downloaded to the device, it never gets back to database via Sync method. Again, I am just curious on that part&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 14:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332520#M1468</guid>
      <dc:creator>AlexProtyagov</dc:creator>
      <dc:date>2010-08-20T14:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Non-editable Layer</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332521#M1469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To check if it is possible to edit data you can use&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if (featureLayer.AllowNew || featureLayer.AllowModify)
{
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The only condition for editing data is an existing GLOBAL_ID field in the feature class. You can add it in ArcCatalog.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the Operation Allowed in ArcGIS Server Mobile Service must be ON (to insert/delete/update). Are you agree with me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ezequias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/non-editable-layer/m-p/332521#M1469</guid>
      <dc:creator>EzequiasRodrigues_da_Rocha</dc:creator>
      <dc:date>2021-12-11T15:45:08Z</dc:date>
    </item>
  </channel>
</rss>

