<?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 Re: [POSSIBLE BUG] FeatureTable.CanAdd() lacks Feature argument in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/possible-bug-featuretable-canadd-lacks-feature/m-p/103226#M1164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. But there is something unclear to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that CanUpdate(feature) and CanDelete(feature) both should check&amp;nbsp;specific cases, inapplicable to CanAdd()&amp;nbsp;(for example - to be updated/deleted, a feature must already exists, which is not the case with adding new feature). But there are also checks applicable to both CanAdd() and CanUpdate(feature) equally:&lt;/P&gt;&lt;P&gt;- a feature with text field should be checked whether text value fits in field size;&lt;/P&gt;&lt;P&gt;- a feature should be checked for invalid values in&amp;nbsp;an attribute (e.g. null value in NOT NULL field);&lt;/P&gt;&lt;P&gt;- a feature with unique field constraint should be checked whether constraint will not be violated by a feature field value;&lt;/P&gt;&lt;P&gt;- a feature should be checked whether it contains additional fields (added by code) not present in the FeatureTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these checks in mind in beta&amp;nbsp;I&amp;nbsp;realize following workflow (for update, but also for add):&lt;/P&gt;&lt;P&gt;- Check FeatureTable.IsEditable&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Create new Feature/Obtain Feature to edit&lt;/P&gt;&lt;P&gt;- Edit feature attributes/geometry&lt;/P&gt;&lt;P&gt;- Check FeatureTable.CanAdd(feature)/FeatureTable.CanUpdate(feature)&lt;/P&gt;&lt;P&gt;- Call FeatureTable.AddFeaturesAsync/FeatureTable.UpdateFeaturesAsync&lt;/P&gt;&lt;P&gt;- Handle the exception (if any)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously now these checks&amp;nbsp;cannot be&amp;nbsp;performed prior to adding feature and catching exception - is this correct?. I am also curious&amp;nbsp;- are these checks performed at CanUpdate(feature)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Plamen Ivanov&lt;/P&gt;&lt;P&gt;ESRI Bulgaria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Nov 2016 15:27:13 GMT</pubDate>
    <dc:creator>PlamenIvanov1</dc:creator>
    <dc:date>2016-11-26T15:27:13Z</dc:date>
    <item>
      <title>[POSSIBLE BUG] FeatureTable.CanAdd() lacks Feature argument</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/possible-bug-featuretable-canadd-lacks-feature/m-p/103224#M1162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FeatureTable.CanAdd() lacks Feature argument - is this intentionally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that FeatureTable.CanUpdate(feature) and FeatureTable.CanDelete(feature)&amp;nbsp;have Feature argument. Note also that in Beta FeatureTable.CanAdd(feature) also had Feature argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plamen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 10:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/possible-bug-featuretable-canadd-lacks-feature/m-p/103224#M1162</guid>
      <dc:creator>PlamenIvanov1</dc:creator>
      <dc:date>2016-11-24T10:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: [POSSIBLE BUG] FeatureTable.CanAdd() lacks Feature argument</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/possible-bug-featuretable-canadd-lacks-feature/m-p/103225#M1163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the question. When reviewing the design post-beta, we decided CanAdd(feature) was unnecessary. It&amp;nbsp;was essentially a convenience method which checks the service capabilities which are either true or false, regardless of the feature. Therefore the workflow is:&lt;/P&gt;&lt;P&gt;- Check FeatureTable.IsEditable&lt;/P&gt;&lt;P&gt;- Check FeatureTable.CanAdd()&lt;/P&gt;&lt;P&gt;- Create new Feature&lt;/P&gt;&lt;P&gt;- Call FeatureTable.AddFeatureAsync&lt;/P&gt;&lt;P&gt;- Handle the exception (if any)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 23:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/possible-bug-featuretable-canadd-lacks-feature/m-p/103225#M1163</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2016-11-25T23:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: [POSSIBLE BUG] FeatureTable.CanAdd() lacks Feature argument</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/possible-bug-featuretable-canadd-lacks-feature/m-p/103226#M1164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. But there is something unclear to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that CanUpdate(feature) and CanDelete(feature) both should check&amp;nbsp;specific cases, inapplicable to CanAdd()&amp;nbsp;(for example - to be updated/deleted, a feature must already exists, which is not the case with adding new feature). But there are also checks applicable to both CanAdd() and CanUpdate(feature) equally:&lt;/P&gt;&lt;P&gt;- a feature with text field should be checked whether text value fits in field size;&lt;/P&gt;&lt;P&gt;- a feature should be checked for invalid values in&amp;nbsp;an attribute (e.g. null value in NOT NULL field);&lt;/P&gt;&lt;P&gt;- a feature with unique field constraint should be checked whether constraint will not be violated by a feature field value;&lt;/P&gt;&lt;P&gt;- a feature should be checked whether it contains additional fields (added by code) not present in the FeatureTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these checks in mind in beta&amp;nbsp;I&amp;nbsp;realize following workflow (for update, but also for add):&lt;/P&gt;&lt;P&gt;- Check FeatureTable.IsEditable&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Create new Feature/Obtain Feature to edit&lt;/P&gt;&lt;P&gt;- Edit feature attributes/geometry&lt;/P&gt;&lt;P&gt;- Check FeatureTable.CanAdd(feature)/FeatureTable.CanUpdate(feature)&lt;/P&gt;&lt;P&gt;- Call FeatureTable.AddFeaturesAsync/FeatureTable.UpdateFeaturesAsync&lt;/P&gt;&lt;P&gt;- Handle the exception (if any)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously now these checks&amp;nbsp;cannot be&amp;nbsp;performed prior to adding feature and catching exception - is this correct?. I am also curious&amp;nbsp;- are these checks performed at CanUpdate(feature)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Plamen Ivanov&lt;/P&gt;&lt;P&gt;ESRI Bulgaria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2016 15:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/possible-bug-featuretable-canadd-lacks-feature/m-p/103226#M1164</guid>
      <dc:creator>PlamenIvanov1</dc:creator>
      <dc:date>2016-11-26T15:27:13Z</dc:date>
    </item>
  </channel>
</rss>

