<?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 Editor Tracking fields not listed in Web APPBuilder in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-tracking-fields-not-listed-in-web/m-p/592219#M55385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am editing a feature class in Web AppBuilder and I declared the fields&amp;nbsp;&lt;SPAN&gt;CRTBY and MODBY in the feature class editor tracking field with ArCatalog&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Web AppBuilder populates these fields automatically, but I&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;am also testing if I can populate these fields in the program.&amp;nbsp;The issue is that&amp;nbsp;&lt;/SPAN&gt;I am not able to see these fields in the source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the code below it never finds&amp;nbsp;&lt;SPAN&gt;CRTBY and MODBY. They are not in evt.adds[0].attributes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Widget.js&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //&lt;BR /&gt; // Populate CRTBY and MODBY &lt;BR /&gt; //&lt;/P&gt;&lt;P&gt;if (evt.adds[0].attributes.hasOwnProperty('CRTBY')) {&lt;BR /&gt; evt.adds[0].attributes.CRTBY = esri.id.credentials[0].userId;&lt;BR /&gt; }&lt;BR /&gt; if (evt.adds[0].attributes.hasOwnProperty('MODBY')) {&lt;BR /&gt; evt.adds[0].attributes.MODBY = esri.id.credentials[0].userId;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.editor.attributeInspector.refresh();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2016 19:57:27 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2016-12-19T19:57:27Z</dc:date>
    <item>
      <title>Editor Tracking fields not listed in Web APPBuilder</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-tracking-fields-not-listed-in-web/m-p/592219#M55385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am editing a feature class in Web AppBuilder and I declared the fields&amp;nbsp;&lt;SPAN&gt;CRTBY and MODBY in the feature class editor tracking field with ArCatalog&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Web AppBuilder populates these fields automatically, but I&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;am also testing if I can populate these fields in the program.&amp;nbsp;The issue is that&amp;nbsp;&lt;/SPAN&gt;I am not able to see these fields in the source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the code below it never finds&amp;nbsp;&lt;SPAN&gt;CRTBY and MODBY. They are not in evt.adds[0].attributes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Widget.js&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //&lt;BR /&gt; // Populate CRTBY and MODBY &lt;BR /&gt; //&lt;/P&gt;&lt;P&gt;if (evt.adds[0].attributes.hasOwnProperty('CRTBY')) {&lt;BR /&gt; evt.adds[0].attributes.CRTBY = esri.id.credentials[0].userId;&lt;BR /&gt; }&lt;BR /&gt; if (evt.adds[0].attributes.hasOwnProperty('MODBY')) {&lt;BR /&gt; evt.adds[0].attributes.MODBY = esri.id.credentials[0].userId;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.editor.attributeInspector.refresh();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 19:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-tracking-fields-not-listed-in-web/m-p/592219#M55385</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2016-12-19T19:57:27Z</dc:date>
    </item>
  </channel>
</rss>

