# Help me please (About Insert Feature to Tabfile)

**URL:** <https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977>\
**Category:** Silverlight\
**Created:** [November 25, 2011, 2:26am UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977 "2011-11-25T02:26:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumeth](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/sumeth/32/24988_2.png) [@sumeth](https://community.thinkgeo.com/u/sumeth)\
**Post date:** [November 25, 2011, 2:26am UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/1 "2011-11-25T02:26:23Z")

</div>

&nbsp;I&nbsp;got&nbsp;this.&nbsp;I&nbsp;don't&nbsp;know&nbsp;why.

![]()

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [November 25, 2011, 1:03pm UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/2 "2011-11-25T13:03:02Z")

</div>

Hi&nbsp;Sumeth,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;try&nbsp;to&nbsp;addFeature&nbsp;and&nbsp;deleteFeature&nbsp;from&nbsp;a&nbsp;tabfile,&nbsp;but&nbsp;haven’t&nbsp;reproduced&nbsp;your&nbsp;problem.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Could&nbsp;you&nbsp;review&nbsp;some&nbsp;points?&nbsp;Close&nbsp;any&nbsp;other&nbsp;program&nbsp;which&nbsp;maybe&nbsp;open&nbsp;the&nbsp;tab&nbsp;file,&nbsp;check&nbsp;whether&nbsp;the&nbsp;file&nbsp;is&nbsp;set&nbsp;readonly.&nbsp;  
&nbsp;&nbsp;  
&nbsp;And&nbsp;you&nbsp;can&nbsp;try&nbsp;to&nbsp;put&nbsp;a&nbsp;tab&nbsp;file&nbsp;under&nbsp;other&nbsp;folder&nbsp;and&nbsp;edit&nbsp;it&nbsp;for&nbsp;make&nbsp;sure&nbsp;whether&nbsp;that&nbsp;caused&nbsp;by&nbsp;the&nbsp;folder&nbsp;security.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Coud&nbsp;you&nbsp;please&nbsp;check&nbsp;these&nbsp;items&nbsp;and&nbsp;let&nbsp;me&nbsp;know&nbsp;the&nbsp;result.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![sumeth](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/sumeth/32/24988_2.png) [@sumeth](https://community.thinkgeo.com/u/sumeth)\
**Post date:** [November 27, 2011, 9:45pm UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/3 "2011-11-27T21:45:55Z")

</div>

&nbsp;Now,I&nbsp;can&nbsp;insert&nbsp;&nbsp;but&nbsp;I&nbsp;can't&nbsp;update&nbsp;feature.

here&nbsp;code.

`public string UpdateFeature(string wkt, string colValues, string fid)        {            featureSource.Open();            featureSource.ReadWriteMode = TabFileReadWriteMode.ReadWrite;            featureSource.BeginTransaction();            try            {                if (featureSource.IsEditable)                {                    BaseShape bs = new Feature(wkt).GetShape();                    Dictionary<string, string> colVal = JsonConvert.DeserializeObject<Dictionary<string, string>>(colValues);                    Feature ft = new Feature(wkt, fid, colVal);                    featureSource.UpdateFeature(ft);                }            }            catch (Exception ex)            {                featureSource.RollbackTransaction();                return ex.ToString();            }            featureSource.CommitTransaction();            featureSource.Close();            return "success";        }`

It&nbsp;succeed&nbsp;but&nbsp;in&nbsp;tabfile&nbsp;isn't&nbsp;change.

&nbsp;

And&nbsp;I&nbsp;can&nbsp;delete&nbsp;feature&nbsp;now.

I&nbsp;uses&nbsp;&nbsp;Map1.Refresh();&nbsp;&nbsp;when&nbsp;feature&nbsp;deleted&nbsp;but&nbsp;&nbsp;feature&nbsp;is&nbsp;show.(in&nbsp;tabfile&nbsp;was&nbsp;deleted)

How&nbsp;do&nbsp;I&nbsp;?

Help&nbsp;me&nbsp;again.&nbsp;thank&nbsp;you&nbsp;very&nbsp;much

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [November 28, 2011, 7:19am UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/4 "2011-11-28T07:19:27Z")

</div>

Hi&nbsp;Sumeth,&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;add&nbsp;or&nbsp;remove&nbsp;column,&nbsp;the&nbsp;UpdateFeature&nbsp;function&nbsp;won’t&nbsp;work.&nbsp;&nbsp;  
&nbsp;You&nbsp;can&nbsp;only&nbsp;modify&nbsp;the&nbsp;column&nbsp;value&nbsp;by&nbsp;the&nbsp;API&nbsp;but&nbsp;you&nbsp;cannot&nbsp;add&nbsp;or&nbsp;remove&nbsp;existing&nbsp;column&nbsp;in&nbsp;the&nbsp;shape&nbsp;file.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;implement&nbsp;that,&nbsp;you&nbsp;need&nbsp;to&nbsp;get&nbsp;all&nbsp;information&nbsp;from&nbsp;current&nbsp;layer&nbsp;first,&nbsp;then&nbsp;build&nbsp;a&nbsp;new&nbsp;tab&nbsp;file,&nbsp;delete&nbsp;original&nbsp;one&nbsp;and&nbsp;then&nbsp;rename&nbsp;the&nbsp;new&nbsp;one.&nbsp;I&nbsp;think&nbsp;that&nbsp;would&nbsp;be&nbsp;work.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![sumeth](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/sumeth/32/24988_2.png) [@sumeth](https://community.thinkgeo.com/u/sumeth)\
**Post date:** [November 29, 2011, 1:40am UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/5 "2011-11-29T01:40:21Z")

</div>

&nbsp;I&nbsp;think&nbsp;I&nbsp;found&nbsp;cause&nbsp;of&nbsp;cannot&nbsp;update&nbsp;shape.&nbsp;Because&nbsp;I&nbsp;forget&nbsp;save&nbsp;new&nbsp;WellKnowText&nbsp;on&nbsp;event&nbsp;VertexAddedEditInteractiveOverlay

Now&nbsp;I&nbsp;can&nbsp;Update&nbsp;Shape.

And&nbsp;below&nbsp;picture

![]()

&nbsp;

Is&nbsp;this&nbsp;bug?&nbsp;AffectedVertextGFeature&nbsp;&nbsp;is&nbsp;null.&nbsp;I&nbsp;think&nbsp;it&nbsp;should&nbsp;be&nbsp;have&nbsp;shape&nbsp;after&nbsp;edit&nbsp;vector.

&nbsp;

And&nbsp;please&nbsp;answer&nbsp;this:

I&nbsp;delete&nbsp;feature.&nbsp;

&nbsp;

when&nbsp;&nbsp;feature&nbsp;deleted&nbsp;but&nbsp;&nbsp;feature(shape)&nbsp;is&nbsp;show.(in&nbsp;tabfile&nbsp;was&nbsp;deleted)

It&nbsp;look&nbsp;like&nbsp;save&nbsp;in&nbsp;image&nbsp;map&nbsp;to&nbsp;cache&nbsp;memory.

When&nbsp;I&nbsp;zoom&nbsp;in&nbsp;or&nbsp;zoom&nbsp;out&nbsp;,&nbsp;feature&nbsp;switch&nbsp;to&nbsp;visible&nbsp;and&nbsp;invisible.

(Update&nbsp;feature&nbsp;is&nbsp;same&nbsp;problem&nbsp;old&nbsp;feature&nbsp;can&nbsp;see&nbsp;if&nbsp;not&nbsp;refresh&nbsp;page&nbsp;or&nbsp;pan&nbsp;to&nbsp;other&nbsp;location)

When&nbsp;I&nbsp;pan&nbsp;to&nbsp;another&nbsp;location&nbsp;&nbsp;and&nbsp;pan&nbsp;back&nbsp;feature&nbsp;is&nbsp;invisible&nbsp;(It&nbsp;should&nbsp;be&nbsp;invisible&nbsp;when&nbsp;&nbsp;feature&nbsp;deleted)

&nbsp;

&nbsp;

&nbsp;

I&nbsp;uses&nbsp;&nbsp;Map1.Refresh();&nbsp;&nbsp;\<---&nbsp;this&nbsp;not&nbsp;effect

and&nbsp;&nbsp;Map1.Overlays["NativeServer"].Refresh();&nbsp;\<--&nbsp;this&nbsp;error

see&nbsp;this&nbsp;link&nbsp;&nbsp;[up-thai.com/upload/picture/7/10805.gif](http://www.up-thai.com/upload/picture/7/10805.gif)

How&nbsp;do&nbsp;I&nbsp;?

&nbsp;

&nbsp;

thanks&nbsp;Don.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [November 30, 2011, 8:50am UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/6 "2011-11-30T08:50:46Z")

</div>

Hi&nbsp;Sumeth,&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;we&nbsp;cannot&nbsp;simply&nbsp;refresh&nbsp;it&nbsp;after&nbsp;you&nbsp;change&nbsp;the&nbsp;datasource.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Could&nbsp;you&nbsp;build&nbsp;a&nbsp;simple&nbsp;sample&nbsp;for&nbsp;this?&nbsp;So&nbsp;that&nbsp;our&nbsp;developer&nbsp;can&nbsp;help&nbsp;you&nbsp;implement&nbsp;that&nbsp;quickly.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don&nbsp;  
&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![sumeth](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/sumeth/32/24988_2.png) [@sumeth](https://community.thinkgeo.com/u/sumeth)\
**Post date:** [December 1, 2011, 9:25am UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/7 "2011-12-01T09:25:14Z")

</div>

` and  Map1.Overlays[“NativeServer”].Refresh(); <-- this error see this link  up-thai.com/upload/picture/7/10805.gif How do I ?`

I&nbsp;know&nbsp;cause&nbsp;of&nbsp;this&nbsp;now.&nbsp;I’m&nbsp;forget&nbsp;set&nbsp;layer&nbsp;ID&nbsp;with&nbsp;constructor&nbsp;method.I&nbsp;set&nbsp;name&nbsp;of&nbsp;overlay&nbsp;layer&nbsp;only&nbsp;that&nbsp;I&nbsp;got&nbsp;error&nbsp;

`Could you build a simple sample for this? `

Where&nbsp;is&nbsp;I&nbsp;can&nbsp;send&nbsp;for&nbsp;you?

Now,&nbsp;this&nbsp;is&nbsp;my&nbsp;sleep&nbsp;time.&nbsp;See&nbsp;you&nbsp;tomorrow.

&nbsp;

Regards

Sumeth

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 1, 2011, 1:39pm UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/8 "2011-12-01T13:39:45Z")

</div>

Hi&nbsp;Sumeth,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Does&nbsp;that&nbsp;refresh&nbsp;works&nbsp;after&nbsp;you&nbsp;set&nbsp;the&nbsp;layer&nbsp;ID?&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;sent&nbsp;us&nbsp;anything,&nbsp;you&nbsp;can&nbsp;sent&nbsp;to&nbsp;[support@thinkgeo.com](mailto:support@thinkgeo.com)&nbsp;or&nbsp;contact&nbsp;your&nbsp;rep&nbsp;to&nbsp;get&nbsp;the&nbsp;FTP&nbsp;account&nbsp;and&nbsp;password.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don&nbsp;

---

<div class="post-metadata">

**Author:** ![sumeth](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/sumeth/32/24988_2.png) [@sumeth](https://community.thinkgeo.com/u/sumeth)\
**Post date:** [December 2, 2011, 10:52am UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/9 "2011-12-02T10:52:14Z")

</div>

Now,&nbsp;I&nbsp;sent&nbsp;requirement&nbsp;to&nbsp;you.but&nbsp;I’m&nbsp;not&nbsp;send&nbsp;code&nbsp;to&nbsp;you&nbsp;because&nbsp;silverlight&nbsp;edition&nbsp;can’t&nbsp;not&nbsp;support&nbsp;overview&nbsp;map&nbsp;that&nbsp;is&nbsp;my&nbsp;customer&nbsp;requirement.&nbsp;  
&nbsp;I&nbsp;will&nbsp;be&nbsp;learn&nbsp;after&nbsp;make&nbsp;WebEdition&nbsp;demo&nbsp;complete.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 2, 2011, 2:07pm UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/10 "2011-12-02T14:07:44Z")

</div>

Hi&nbsp;Sumeth,&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;have&nbsp;recieved&nbsp;your&nbsp;email.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;some&nbsp;of&nbsp;them&nbsp;I&nbsp;cannot&nbsp;give&nbsp;you&nbsp;a&nbsp;exactly&nbsp;reply,&nbsp;I&nbsp;have&nbsp;provide&nbsp;that&nbsp;to&nbsp;our&nbsp;developer,&nbsp;I&nbsp;think&nbsp;they&nbsp;will&nbsp;reply&nbsp;you&nbsp;next&nbsp;Monday&nbsp;because&nbsp;they&nbsp;already&nbsp;not&nbsp;in&nbsp;office&nbsp;now.&nbsp;And&nbsp;we&nbsp;will&nbsp;update&nbsp;the&nbsp;status&nbsp;in&nbsp;your&nbsp;other&nbsp;post.&nbsp;  
&nbsp;[gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/28/aft/9791/afv/topic/Default.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/28/aft/9791/afv/topic/Default.aspx)&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 2, 2011, 2:07pm UTC](https://community.thinkgeo.com/t/help-me-please-about-insert-feature-to-tabfile/6977/11 "2011-12-02T14:07:48Z")

</div>

Hi&nbsp;Sumeth,&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;have&nbsp;recieved&nbsp;your&nbsp;email.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;some&nbsp;of&nbsp;them&nbsp;I&nbsp;cannot&nbsp;give&nbsp;you&nbsp;a&nbsp;exactly&nbsp;reply,&nbsp;I&nbsp;have&nbsp;provide&nbsp;that&nbsp;to&nbsp;our&nbsp;developer,&nbsp;I&nbsp;think&nbsp;they&nbsp;will&nbsp;reply&nbsp;you&nbsp;next&nbsp;Monday&nbsp;because&nbsp;they&nbsp;already&nbsp;not&nbsp;in&nbsp;office&nbsp;now.&nbsp;And&nbsp;we&nbsp;will&nbsp;update&nbsp;the&nbsp;status&nbsp;in&nbsp;your&nbsp;other&nbsp;post.&nbsp;  
&nbsp;[gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/28/aft/9791/afv/topic/Default.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/28/aft/9791/afv/topic/Default.aspx)&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don
