<?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: Attribute table not showing time component in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1005826#M20022</link>
    <description>&lt;P&gt;Victor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Unfortunately I don't see a way around it either.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 13:24:46 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-12-01T13:24:46Z</dc:date>
    <item>
      <title>Attribute table not showing time component</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1004981#M20010</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi I have a feature layer that i add through the Add data widget however the time isn't showing in the attribute table. I can see it in the popup however.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone advise what needs to be done?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VictorTey_0-1606383501350.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1046i26C37A40D0DD0EEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VictorTey_0-1606383501350.png" alt="VictorTey_0-1606383501350.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 09:39:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1004981#M20010</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2020-11-26T09:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute table not showing time component</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1005510#M20015</link>
      <description>&lt;P&gt;Victor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You will have to edit the jimu/utils.js&amp;nbsp;&amp;nbsp;mo.getDefaultPortalFieldInfo function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  //return {fieldName,label,tooltip,visible,format,stringFieldOption}
  mo.getDefaultPortalFieldInfo = function(serviceFieldInfo){
    //serviceFieldInfo: {name,alias,type,...}
    var fieldName = serviceFieldInfo.name;
    var item = {
      fieldName: fieldName,
      label: serviceFieldInfo.alias || fieldName,
      tooltip: '',
      visible: false,
      format: null,
      stringFieldOption: 'textbox'
    };

    //https://developers.arcgis.com/javascript/jsapi/field-amd.html#type
    var type = serviceFieldInfo.type;
    switch (type) {
      case 'esriFieldTypeSmallInteger':
      case 'esriFieldTypeInteger':
        item.format = {
          places: 0,
          digitSeparator: true
        };
        break;
      case 'esriFieldTypeSingle':
      case 'esriFieldTypeDouble':
        item.format = {
          places: 2,
          digitSeparator: true
        };
        break;
      case 'esriFieldTypeDate':
        item.format = {
          dateFormat: "longMonthDayYearLongTime"
        };
        break;
    }
    return item;
  };&lt;/LI-CODE&gt;&lt;P&gt;Notice I have added &lt;STRONG&gt;LongTime&lt;/STRONG&gt; to the dateFormat.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1005510#M20015</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-11-30T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute table not showing time component</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1005703#M20020</link>
      <description>&lt;P&gt;Thanks Robert. Not ideal as I am using build in webappbuilder with OOTB attribute widget &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; but I don't see anyway around this.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 22:59:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1005703#M20020</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2020-11-30T22:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute table not showing time component</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1005826#M20022</link>
      <description>&lt;P&gt;Victor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Unfortunately I don't see a way around it either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 13:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-not-showing-time-component/m-p/1005826#M20022</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-01T13:24:46Z</dc:date>
    </item>
  </channel>
</rss>

