<?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 Controlling who can edit a particular feature in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/controlling-who-can-edit-a-particular-feature/m-p/405021#M9436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to set up a control mechanism that will only allow the user who created a feature to edit it.&amp;nbsp; I have the creation user stored in the feature class and I send over the creation user when a new feature is created.&amp;nbsp; I had tried setting these properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000; font-size: 2;"&gt; &lt;BR /&gt;&lt;P align="left"&gt;deleteEnabled="{Model.instance.userName == dg.selectedItem.info.CREATIONUSER}"&lt;BR /&gt;updateAttributesEnabled="{Model.instance.userName == dg.selectedItem.info.CREATIONUSER}"&lt;/P&gt;&lt;BR /&gt;updateGeometryEnabled="{Model.instance.userName == dg.selectedItem.info.CREATIONUSER}"&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color:black;"&gt;But this did not work because it appeared that the feature geometry was being created prior to the attribute of CREATIONUSER being set.&amp;nbsp; What would happen is, I would draw the polygon and it would pop up the attribute editor window but I could not edit it because I believe the CREATIONUSER was not set when the attribute window opened.&amp;nbsp; If I close the window and open it again, I can then edit the attributes.&amp;nbsp; And this only happened some of the time.&amp;nbsp; Sometimes it worked as I expected it to.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color:black;"&gt;I have tried playing with the &lt;SPAN style="font-size:2;"&gt;editsStarting event on the feature layer, and I can prevent the edit from being sent over, but I cannot get the attributes in the inspector to set back to the original value.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: black; font-size: 2;"&gt;If anyone has had success with controlling when an edit is allowed, I would greatly appreciate any help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2011 12:34:02 GMT</pubDate>
    <dc:creator>CaseyBentz</dc:creator>
    <dc:date>2011-05-03T12:34:02Z</dc:date>
    <item>
      <title>Controlling who can edit a particular feature</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/controlling-who-can-edit-a-particular-feature/m-p/405021#M9436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to set up a control mechanism that will only allow the user who created a feature to edit it.&amp;nbsp; I have the creation user stored in the feature class and I send over the creation user when a new feature is created.&amp;nbsp; I had tried setting these properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000; font-size: 2;"&gt; &lt;BR /&gt;&lt;P align="left"&gt;deleteEnabled="{Model.instance.userName == dg.selectedItem.info.CREATIONUSER}"&lt;BR /&gt;updateAttributesEnabled="{Model.instance.userName == dg.selectedItem.info.CREATIONUSER}"&lt;/P&gt;&lt;BR /&gt;updateGeometryEnabled="{Model.instance.userName == dg.selectedItem.info.CREATIONUSER}"&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color:black;"&gt;But this did not work because it appeared that the feature geometry was being created prior to the attribute of CREATIONUSER being set.&amp;nbsp; What would happen is, I would draw the polygon and it would pop up the attribute editor window but I could not edit it because I believe the CREATIONUSER was not set when the attribute window opened.&amp;nbsp; If I close the window and open it again, I can then edit the attributes.&amp;nbsp; And this only happened some of the time.&amp;nbsp; Sometimes it worked as I expected it to.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color:black;"&gt;I have tried playing with the &lt;SPAN style="font-size:2;"&gt;editsStarting event on the feature layer, and I can prevent the edit from being sent over, but I cannot get the attributes in the inspector to set back to the original value.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: black; font-size: 2;"&gt;If anyone has had success with controlling when an edit is allowed, I would greatly appreciate any help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 12:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/controlling-who-can-edit-a-particular-feature/m-p/405021#M9436</guid>
      <dc:creator>CaseyBentz</dc:creator>
      <dc:date>2011-05-03T12:34:02Z</dc:date>
    </item>
  </channel>
</rss>

