Hi, I have a problem editing attributes of a feature class in ArcGIS Mobile.
I am going to try and simplify the explanation so bear with me.
I have successfully modified a feature's attribute while in the data collection process using code:
DataCollection_Complete - Eventhandler
Find the layer, modify a field in all the features in that layer and change it to a particular value.
fDataReader.SetValue(1,"Hello");
fDataReader.Update();
Then I use the Identify tool and identify any point on the map and that field will have "Hello".
The problem is I want to change the attribute value to Hello on a button click. For example:
Button1_Click();
Find the layer
Modify the field for all features in that layer and change it to a particular value.
fDataReader.SetValue(1,"Hello");
fDataReader.Update();
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".
The problem is I had to close the application and open it again to see the new results.
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?
Note1: I can't use map1.Refresh or map1.Invalidate because I am using the Out-of-the-Box Tablet PC version.
Note2: I tried accessing the storage cache and using map.AddRange(mobileCache1) after the fDataReader.Update() but that still didn't work.
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.
Please help me if you can.
Thanks,
Akhil P.