unable to save edits on Map Cache

445
2
Jump to solution
09-05-2012 05:39 PM
KetanPatel
New Contributor
Hi,

I have a editable layer which I am editing in Mobile device. I am not getting any error during adding data but, I can see added data on scree. when I synchronize Mapcache and check feature class it's  not adding new data to it.

Why is this. Is am I doing anything wrong.
Here is my code snippets..

private void featurecollection()
        {
            if (map1.MapAction != addVertexSketchTool1)
            {
                MessageBox.Show("Not in Editable");
                return;
               
            }
            attributeForm inspectionattribute = new attributeForm();
            try
            {
                FeatureSource currentlyWorkingWith;
              
                if (addingMain)
                {
                    currentlyWorkingWith = waterMainsLayer;
                }
                else
                {
                    currentlyWorkingWith = valveInspectionsLayer;
                }
                FeatureDataTable fTable = currentlyWorkingWith.GetDataTable();
                FeatureDataRow newFeature = fTable.NewRow();
                if (currentlyWorkingWith == valveInspectionsLayer)
                {
                    inspectionattribute.dataRow = newFeature;
                    if (inspectionattribute.ShowDialog() == DialogResult.OK)
                    {

                    }
                }
              
                fTable.Rows.Add(newFeature);
                newFeature[currentlyWorkingWith.GeometryColumnIndex] = sketchGraphicLayer1.Geometry;
                fTable.SaveInFeatureSource();
                sketchGraphicLayer1.Geometry = null;
                addingData = false;
                PanMapAction PanMapAction1 = new PanMapAction();
                map1.MapAction = PanMapAction1;

            }

I got this code from resource centre.

Regards,
0 Kudos
1 Solution

Accepted Solutions
KarenPinkerton
New Contributor II
0 Kudos
2 Replies
Andréde_Mattos_Ferraz
Occasional Contributor
Some problem! Any Result?
0 Kudos
KarenPinkerton
New Contributor II
We have had the same issue but we have solved the problem.

See the forum post below.

http://forums.arcgis.com/threads/71945-unable-to-add-save-new-feature-point-to-mobile-cache-on-ArcMo....
0 Kudos