<?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 edit a feature attribute in versioned dataset and update label of feature in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/edit-a-feature-attribute-in-versioned-dataset-and/m-p/411790#M11027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am tryign to create an arcmap tool which will update an attribute (the attribute that is used to display labels in arcmap) of a versioned featureclass and will show the updated value on the label of that feature before actually saving the feature .... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have this scenario - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have a versioned datasets and I have two versions -version1 and version2 of that dataset. Now, user has arcmap document and has added the featurelayer of version1.&amp;nbsp; Now, the user will manually start an editsession(by clicking on editor -start edit session) and select version1 as version to be edited .. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next thing user will do is select features in that versioned feature-layer(by dragging rectangle etc) . then user clicks on my tool and mytool should update an attribute-field of my featureclass (just for that particular version - version1 ). My tool should not yet save the changes to the feature class, i.e. it should not end the edit session-i.e. it should not do myWorkspaceEdit.StopEditing(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//edit session is already started by the user &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myworkspaceedit.starteditoperation();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//update my feature attribute &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myfeature.set_value(myfield)="mynewval";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myworkspaceedit.stopeditoperation(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//my code will not close the edit session and save the edits... User will manually click on Editor--&amp;gt;stop editing blah blah... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after doing that, it does not change the label on the feature... myfield is used to label the feature-layer in my arcmap document.. why it is not updating the label?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;am i missing something? , do i need to do myfeature.store(), i thought myfeature.store() is for nonversioned data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pl help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2012 03:47:02 GMT</pubDate>
    <dc:creator>AshakaThakore</dc:creator>
    <dc:date>2012-04-13T03:47:02Z</dc:date>
    <item>
      <title>edit a feature attribute in versioned dataset and update label of feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/edit-a-feature-attribute-in-versioned-dataset-and/m-p/411790#M11027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am tryign to create an arcmap tool which will update an attribute (the attribute that is used to display labels in arcmap) of a versioned featureclass and will show the updated value on the label of that feature before actually saving the feature .... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have this scenario - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have a versioned datasets and I have two versions -version1 and version2 of that dataset. Now, user has arcmap document and has added the featurelayer of version1.&amp;nbsp; Now, the user will manually start an editsession(by clicking on editor -start edit session) and select version1 as version to be edited .. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next thing user will do is select features in that versioned feature-layer(by dragging rectangle etc) . then user clicks on my tool and mytool should update an attribute-field of my featureclass (just for that particular version - version1 ). My tool should not yet save the changes to the feature class, i.e. it should not end the edit session-i.e. it should not do myWorkspaceEdit.StopEditing(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//edit session is already started by the user &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myworkspaceedit.starteditoperation();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//update my feature attribute &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myfeature.set_value(myfield)="mynewval";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myworkspaceedit.stopeditoperation(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//my code will not close the edit session and save the edits... User will manually click on Editor--&amp;gt;stop editing blah blah... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after doing that, it does not change the label on the feature... myfield is used to label the feature-layer in my arcmap document.. why it is not updating the label?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;am i missing something? , do i need to do myfeature.store(), i thought myfeature.store() is for nonversioned data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pl help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 03:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/edit-a-feature-attribute-in-versioned-dataset-and/m-p/411790#M11027</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2012-04-13T03:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: edit a feature attribute in versioned dataset and update label of feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/edit-a-feature-attribute-in-versioned-dataset-and/m-p/411791#M11028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you need to call store after changing the value. Store pushes the changes back to the geodatabase, in this case your edit session delta tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See also, the editor topic &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Updating_attributes_of_existing_features/0001000001mm000000/"&gt;Updating attributes of existing features&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and the geodatabase topic &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Updating_features/0001000002rs000000/"&gt;Updating features&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 18:39:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/edit-a-feature-attribute-in-versioned-dataset-and/m-p/411791#M11028</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-13T18:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: edit a feature attribute in versioned dataset and update label of feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/edit-a-feature-attribute-in-versioned-dataset-and/m-p/411792#M11029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you so much, it worked....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/edit-a-feature-attribute-in-versioned-dataset-and/m-p/411792#M11029</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2012-04-18T18:14:31Z</dc:date>
    </item>
  </channel>
</rss>

