<?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: Can't Edit Attributes on the Fly in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86352#M422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I have replied in your thread.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot thank you enough for your reply!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG style="color: &amp;quot;red&amp;quot;;"&gt;i have added the globle ids,but it can not work&lt;BR /&gt;just like the code:&lt;BR /&gt;private void menuItemSave_Click(object sender, EventArgs e)&lt;BR /&gt;{&lt;BR /&gt;ESRI.ArcGIS.Mobile.MobileServices.FeatureLayer featureLayer = this.mobileService1.Layers[2] as ESRI.ArcGIS.Mobile.MobileServices.FeatureLayer;&lt;BR /&gt;if (featureLayer.AllowNew)&lt;BR /&gt;{&lt;BR /&gt;......&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;the featurelayer.allownew is also false&lt;BR /&gt;how can i do now? &lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jan 2011 23:59:55 GMT</pubDate>
    <dc:creator>dingleonardo</dc:creator>
    <dc:date>2011-01-12T23:59:55Z</dc:date>
    <item>
      <title>Can't Edit Attributes on the Fly</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86348#M418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have a problem editing attributes of a feature class in ArcGIS Mobile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to try and simplify the explanation so bear with me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have successfully modified a feature's attribute while in the data collection process using code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DataCollection_Complete - Eventhandler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Find the layer, modify a field in all the features in that layer and change it to a particular value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fDataReader.SetValue(1,"Hello");&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fDataReader.Update();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I use the Identify tool and identify any point on the map and that field will have "Hello".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is I want to change the attribute value to Hello on a button click. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Button1_Click();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Find the layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Modify the field for all features in that layer and change it to a particular value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fDataReader.SetValue(1,"Hello");&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fDataReader.Update();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I use the Identify tool and identify any point on the map and that field will NOT have "Hello", it will be whatever it was before. Then I would close the application, load the application, Identify the point and now the field shows "Hello". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is I had to close the application and open it again to see the new results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I can see, the cache receives the change to "Hello" for the attribute field but does not display it on the map, meaning some kind of refresh or invalidate would be needed to resolve this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note1: I can't use map1.Refresh or map1.Invalidate because I am using the Out-of-the-Box Tablet PC version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note2: I tried accessing the storage cache and using map.AddRange(mobileCache1) after the fDataReader.Update() but that still didn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note3: I have simplified the problem but there really is a button click event that will trigger a change in the attribute value of a particular feature class. I don't want to have to close the app and open the app just to see the change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me if you can.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Akhil P.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 19:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86348#M418</guid>
      <dc:creator>AkhilParujanwala</dc:creator>
      <dc:date>2010-12-09T19:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Edit Attributes on the Fly</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86349#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok I have solved it, but it is very weird as to why this works and not the other, have a look below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) This works&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
using (FeatureDataReader fDataReader = featureLayer.GetDataReader(pQFilter))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (fDataReader.Read())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fDataReader.SetValue(colEventIndex, txtEvent.Text);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fDataReader.SetValue(colDevicesIndex, txtBarcodes.Text);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fDataReader.Update();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Does not work&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 // queries the datatable and prepares it to be read from 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureDataReader fDataReader = featureLayer.GetDataReader(pQFilter);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ESRI.ArcGIS.Mobile.Client.Windows.MessageBox.ShowDialog(fDataReader.GetDataTypeName(columnNameIndex));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // allows the datatable to be read
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fDataReader.Read();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // sets the current event and radiation devices to the team's info
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fDataReader.SetValue(colEventIndex, txtEvent.Text);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fDataReader.SetValue(colDevicesIndex, txtBarcodes.Text);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fDataReader.Update();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice the subtle difference? One is looping the other is not looping. The interesting thing is I have code elsewhere that is not using a loop and yet it works. ArcGIS Mobile is picky &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Akhil P.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86349#M419</guid>
      <dc:creator>AkhilParujanwala</dc:creator>
      <dc:date>2021-12-10T23:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Edit Attributes on the Fly</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86350#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your note!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i am a new man on the road of arcgis mobile learning&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;having seen your note, i know that you can help me to slove a problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1,when i want to edit the layer&amp;nbsp; in the emulator , the message will show that "it can not be edited"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2,can i new a layer in the emulator ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;expecting your reply&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 03:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86350#M420</guid>
      <dc:creator>dingleonardo</dc:creator>
      <dc:date>2011-01-11T03:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Edit Attributes on the Fly</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86351#M421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have replied in your thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 13:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86351#M421</guid>
      <dc:creator>AkhilParujanwala</dc:creator>
      <dc:date>2011-01-11T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Edit Attributes on the Fly</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86352#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I have replied in your thread.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot thank you enough for your reply!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG style="color: &amp;quot;red&amp;quot;;"&gt;i have added the globle ids,but it can not work&lt;BR /&gt;just like the code:&lt;BR /&gt;private void menuItemSave_Click(object sender, EventArgs e)&lt;BR /&gt;{&lt;BR /&gt;ESRI.ArcGIS.Mobile.MobileServices.FeatureLayer featureLayer = this.mobileService1.Layers[2] as ESRI.ArcGIS.Mobile.MobileServices.FeatureLayer;&lt;BR /&gt;if (featureLayer.AllowNew)&lt;BR /&gt;{&lt;BR /&gt;......&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;the featurelayer.allownew is also false&lt;BR /&gt;how can i do now? &lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 23:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86352#M422</guid>
      <dc:creator>dingleonardo</dc:creator>
      <dc:date>2011-01-12T23:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Edit Attributes on the Fly</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86353#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;do you have QQ or email&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i can send my project to you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 03:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86353#M423</guid>
      <dc:creator>dingleonardo</dc:creator>
      <dc:date>2011-01-13T03:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Edit Attributes on the Fly</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86354#M424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i guess that&amp;nbsp; it may relate with my data&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;personal geodatabase&amp;nbsp;&amp;nbsp;&amp;nbsp; ,name is&amp;nbsp;&amp;nbsp;&amp;nbsp; NorthAmerica&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map document&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,name is&amp;nbsp;&amp;nbsp;&amp;nbsp; NorthAmerica&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 07:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/can-t-edit-attributes-on-the-fly/m-p/86354#M424</guid>
      <dc:creator>dingleonardo</dc:creator>
      <dc:date>2011-01-13T07:26:45Z</dc:date>
    </item>
  </channel>
</rss>

