<?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 Re: FeatureLayer.AllowNew returns false. How to create a cache which is editable. in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/featurelayer-allownew-returns-false-how-to-create/m-p/295622#M1325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you create a GLOBAL_ID field on the FeatureLayer to be edited? That is essential for editing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Aug 2010 05:58:32 GMT</pubDate>
    <dc:creator>MaximilianGlas</dc:creator>
    <dc:date>2010-08-02T05:58:32Z</dc:date>
    <item>
      <title>FeatureLayer.AllowNew returns false. How to create a cache which is editable.</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/featurelayer-allownew-returns-false-how-to-create/m-p/295621#M1324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;am using an editor user name on a SDE SQLServer database connection. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A Map Document is created using the data with the connection above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A map service is created on the arcgis server with mobile capabilities.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A mobile cache is created from this service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the application I have to edit feature layers from the cache. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the code I have put a check FeatureLayer.AllowNew for which I get a Boolean FALSE. So I have to exit the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Question is : How to create a service cache on which the FeatureLayer is editable. And I get the AllowNew as True to proceed further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code Block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;internal void AddVertex(object o)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; selectedMobileMapServiceLayer = CoM_SWToCModule.ToCViewModel.SelectedMobSvrMapLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (selectedMobileMapServiceLayer == null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MessageBox.Show("Select Feature From The ToC");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; selectedFeatureLayer = selectedMobileMapServiceLayer.Layer as FeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (!selectedFeatureLayer.AllowNew) &amp;gt;&amp;gt;&amp;gt;&amp;gt;Returns FALSE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MessageBox.Show("Geometry in " + selectedFeatureLayer.Name + " is not editable");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 21:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/featurelayer-allownew-returns-false-how-to-create/m-p/295621#M1324</guid>
      <dc:creator>Jitendrudulacaraju</dc:creator>
      <dc:date>2010-07-30T21:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer.AllowNew returns false. How to create a cache which is editable.</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/featurelayer-allownew-returns-false-how-to-create/m-p/295622#M1325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you create a GLOBAL_ID field on the FeatureLayer to be edited? That is essential for editing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 05:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/featurelayer-allownew-returns-false-how-to-create/m-p/295622#M1325</guid>
      <dc:creator>MaximilianGlas</dc:creator>
      <dc:date>2010-08-02T05:58:32Z</dc:date>
    </item>
  </channel>
</rss>

