<?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 More query options in the DataSourceComponent (time) in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/more-query-options-in-the-datasourcecomponent-time/m-p/1064845#M2047</link>
    <description>&lt;P&gt;I'm essentially using the &lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/blob/master/samples/widgets/feature-layer-class/src/runtime/widget.tsx" target="_self"&gt;Feature Layer Class example&lt;/A&gt;. I'm using it with a&amp;nbsp;&lt;STRONG&gt;MapService&lt;/STRONG&gt; layer. My mapservice is a dynamic layer, which can make use of the&amp;nbsp;&lt;STRONG&gt;time&lt;/STRONG&gt; parameter.&lt;/P&gt;&lt;P&gt;I'm trying to build up my time parameter and have it be part of the query, but ExB doesn't seem to want to pass it along to the mapservice. Type script does complain that "time" is not part of&amp;nbsp;&lt;U&gt;&lt;SPAN&gt;FeatureLayerQueryParams&lt;/SPAN&gt;&lt;/U&gt;&lt;SPAN&gt; definition.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I could go an add it to the definition (jimu-core\lib\data-sources\data-source-interface.ts), realizing that is not supported. Regardless if I add it or not, it doesn't seem to want to pass my time property in the request. There&amp;nbsp;&lt;STRONG&gt;where&lt;/STRONG&gt; part of the query works. It's added into both the layer query and the map Export call. (Placing the where correctly in the layerDef:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;{"0":"MyWhere = Something"}&lt;/P&gt;&lt;P&gt;Is there something I can do to have ExB honor my&amp;nbsp;&lt;STRONG&gt;time&lt;/STRONG&gt; parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.setState({
    query:{
        where: "MyWhere = Something",
        time: "1577880732000,1580559132000"
} })
.....
        &amp;lt;DataSourceComponent query={this.state.query} widgetId={this.props.id} 
          useDataSource={this.props.useDataSources[0]} onDataSourceCreated={this.onDs} queryCount&amp;gt;
          {this.layerHandler}
        &amp;lt;/DataSourceComponent&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 19:45:54 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-06-03T19:45:54Z</dc:date>
    <item>
      <title>More query options in the DataSourceComponent (time)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/more-query-options-in-the-datasourcecomponent-time/m-p/1064845#M2047</link>
      <description>&lt;P&gt;I'm essentially using the &lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/blob/master/samples/widgets/feature-layer-class/src/runtime/widget.tsx" target="_self"&gt;Feature Layer Class example&lt;/A&gt;. I'm using it with a&amp;nbsp;&lt;STRONG&gt;MapService&lt;/STRONG&gt; layer. My mapservice is a dynamic layer, which can make use of the&amp;nbsp;&lt;STRONG&gt;time&lt;/STRONG&gt; parameter.&lt;/P&gt;&lt;P&gt;I'm trying to build up my time parameter and have it be part of the query, but ExB doesn't seem to want to pass it along to the mapservice. Type script does complain that "time" is not part of&amp;nbsp;&lt;U&gt;&lt;SPAN&gt;FeatureLayerQueryParams&lt;/SPAN&gt;&lt;/U&gt;&lt;SPAN&gt; definition.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I could go an add it to the definition (jimu-core\lib\data-sources\data-source-interface.ts), realizing that is not supported. Regardless if I add it or not, it doesn't seem to want to pass my time property in the request. There&amp;nbsp;&lt;STRONG&gt;where&lt;/STRONG&gt; part of the query works. It's added into both the layer query and the map Export call. (Placing the where correctly in the layerDef:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;{"0":"MyWhere = Something"}&lt;/P&gt;&lt;P&gt;Is there something I can do to have ExB honor my&amp;nbsp;&lt;STRONG&gt;time&lt;/STRONG&gt; parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.setState({
    query:{
        where: "MyWhere = Something",
        time: "1577880732000,1580559132000"
} })
.....
        &amp;lt;DataSourceComponent query={this.state.query} widgetId={this.props.id} 
          useDataSource={this.props.useDataSources[0]} onDataSourceCreated={this.onDs} queryCount&amp;gt;
          {this.layerHandler}
        &amp;lt;/DataSourceComponent&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 19:45:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/more-query-options-in-the-datasourcecomponent-time/m-p/1064845#M2047</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-03T19:45:54Z</dc:date>
    </item>
  </channel>
</rss>

