<?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 Bug with editable fields in AttributeInspector in 3.19 api in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-with-editable-fields-in-attributeinspector-in/m-p/443426#M40936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the attribute inspector with the 3.19 api. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When i set a field to isEditable : false it works fine.&lt;/P&gt;&lt;P&gt;2. If i set an EDITABLE field to a customfield with&lt;/P&gt;&lt;P&gt;var customFormat1 = new NumberTextBox({&lt;BR /&gt; constraints: {pattern: "0.00"}&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerInfos = [&lt;BR /&gt; {&lt;BR /&gt; 'featureLayer': teamsFL,&lt;BR /&gt; 'showAttachments': false,&lt;BR /&gt; 'isEditable': true,&lt;BR /&gt; 'fieldInfos': [&lt;BR /&gt; {'fieldName': 'University', 'isEditable': false, 'label': 'School:'},&lt;BR /&gt; {'fieldName': 'WINPER', 'isEditable': true, 'tooltip': 'Win percentage', 'label': 'Win percentage:', 'customField': customFormat1},&lt;BR /&gt; {'fieldName': 'Rd_64_Venue', 'isEditable': false, 'label': 'Rd 1 Venue:'},&lt;BR /&gt; {'fieldName': 'Rd_64_Result', 'isEditable': true, 'tooltip': 'First round result (W/L)', 'label': 'Rd 1 Result:'},&lt;BR /&gt; {'fieldName': 'Rd_64_Margin', 'isEditable': false, 'tooltip': 'First round margin of victory/loss', 'label': 'Rd 1 Margin:'}&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WINPER field correctly formats as 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. However, if i set the WINPER field to isEditable:false, AND add the customField formating, the field remains editable and there is no way to disable editing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://jsbin.com/qocawef/edit?html,output" title="https://jsbin.com/qocawef/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/khutchins-esristaff"&gt;khutchins-esristaff&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 17:01:02 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2017-02-21T17:01:02Z</dc:date>
    <item>
      <title>Bug with editable fields in AttributeInspector in 3.19 api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-with-editable-fields-in-attributeinspector-in/m-p/443426#M40936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the attribute inspector with the 3.19 api. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When i set a field to isEditable : false it works fine.&lt;/P&gt;&lt;P&gt;2. If i set an EDITABLE field to a customfield with&lt;/P&gt;&lt;P&gt;var customFormat1 = new NumberTextBox({&lt;BR /&gt; constraints: {pattern: "0.00"}&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerInfos = [&lt;BR /&gt; {&lt;BR /&gt; 'featureLayer': teamsFL,&lt;BR /&gt; 'showAttachments': false,&lt;BR /&gt; 'isEditable': true,&lt;BR /&gt; 'fieldInfos': [&lt;BR /&gt; {'fieldName': 'University', 'isEditable': false, 'label': 'School:'},&lt;BR /&gt; {'fieldName': 'WINPER', 'isEditable': true, 'tooltip': 'Win percentage', 'label': 'Win percentage:', 'customField': customFormat1},&lt;BR /&gt; {'fieldName': 'Rd_64_Venue', 'isEditable': false, 'label': 'Rd 1 Venue:'},&lt;BR /&gt; {'fieldName': 'Rd_64_Result', 'isEditable': true, 'tooltip': 'First round result (W/L)', 'label': 'Rd 1 Result:'},&lt;BR /&gt; {'fieldName': 'Rd_64_Margin', 'isEditable': false, 'tooltip': 'First round margin of victory/loss', 'label': 'Rd 1 Margin:'}&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WINPER field correctly formats as 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. However, if i set the WINPER field to isEditable:false, AND add the customField formating, the field remains editable and there is no way to disable editing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://jsbin.com/qocawef/edit?html,output" title="https://jsbin.com/qocawef/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/khutchins-esristaff"&gt;khutchins-esristaff&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-with-editable-fields-in-attributeinspector-in/m-p/443426#M40936</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2017-02-21T17:01:02Z</dc:date>
    </item>
  </channel>
</rss>

