<?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: Trouble getting minimum value from FeatureTable in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836851#M2452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I printed the url and it had the form &lt;A href="http://&amp;lt;featureServiceURL&amp;gt;/FeatureServer/2/query"&gt;http://&amp;lt;featureServiceURL&amp;gt;/FeatureServer/2/query&lt;/A&gt;&amp;nbsp;which is the correct table as well. I get the response:&amp;nbsp;{"error":{"code":400,"details":["Unable to perform query operation."],"message":"Unable to complete operation."}}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2018 18:20:32 GMT</pubDate>
    <dc:creator>KeithLarson1</dc:creator>
    <dc:date>2018-12-18T18:20:32Z</dc:date>
    <item>
      <title>Trouble getting minimum value from FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836847#M2448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the minimum value in a table in a FeatureServer. I have tried both the queryStatistics method and using a NetworkRequest object with outStatistics set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the queryStatistics problem, I am creating a StatisticsQueryParametes object with a StatisticDefinition specifying the field that I want and that the statisticType should be Enums.StatisticTypeMinimum. I connect a function to the queryStatisticsStatusChanged signal and I see when it is chaned to in progress. However, after a bit of time, I get the error:&amp;nbsp;QObject::connect: Cannot queue arguments of type 'std::shared_ptr&amp;lt;QRTImpl::Stati&lt;/P&gt;&lt;P&gt;sticsQueryResultImpl&amp;gt;' (Make sure 'std::shared_ptr&amp;lt;QRTImpl::StatisticsQueryResultImpl&amp;gt;' is registered using qRegisterMetaType().).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried using a NetworkRequest object, I send the message: {f: "json", outStatistics: [{"statisticType":"min","onStatisticField":"myId", "outStatisticFieldName":"MinID"}]}. The response object gives me the error code 400. I know statistics querying is enabled on this table, because if I go to the query page in my web browser I can put in the same json that I'm setting to outStatistics and I get the result with no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone knows what I'm doing wrong, the help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 16:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836847#M2448</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2018-12-18T16:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting minimum value from FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836848#M2449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keith,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is weird, technically you should be getting the same result when making the REST request and NetworkRequest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you show us your NetworkRequest component code? There is a possibility that you may be missing some parameters when sending the request that's&amp;nbsp;causing it&amp;nbsp;to return error 400 instead.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erwin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 17:25:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836848#M2449</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-12-18T17:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting minimum value from FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836849#M2450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my NetworkRequest object where I'm just printing out the response:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #66a334;"&gt;NetworkRequest&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff6aad;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;id&lt;/SPAN&gt;:&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9acfd6;"&gt;getMinID&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff6aad;"&gt;url&lt;/SPAN&gt;:&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9aa7d6;"&gt;featureServiceUrl&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff6aad;"&gt;responseType&lt;/SPAN&gt;:&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d69545;"&gt;"json"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff6aad;"&gt;method&lt;/SPAN&gt;:&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d69545;"&gt;"POST"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff6aad;"&gt;onReadyStateChanged&lt;/SPAN&gt;:&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #45c6d6;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;(&lt;SPAN&gt;readyState&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;===&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #66a334;"&gt;NetworkRequest&lt;/SPAN&gt;.DONE)&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4564d6;"&gt;console&lt;/SPAN&gt;.log(&lt;SPAN style="color: #d69545;"&gt;"Response:&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d69545;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4564d6;"&gt;JSON&lt;/SPAN&gt;.stringify(&lt;SPAN&gt;response&lt;/SPAN&gt;));&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;PRE&gt;}&lt;/PRE&gt;&lt;P&gt;And, here is the request I send:&lt;/P&gt;&lt;PRE&gt;&lt;PRE style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #9acfd6;"&gt;getMinID&lt;/SPAN&gt;.send({f:&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a8abb0;"&gt;"json",&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a8abb0;"&gt;outStatistics:&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a8abb0;"&gt;[{"statisticType":"min","onStatisticField":"myId",&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a8abb0;"&gt;"outStatisticFieldName":"MinID"}]});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 17:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836849#M2450</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2018-12-18T17:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting minimum value from FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836850#M2451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you make sure that the "featureServiceUrl" has the layer id and query operation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this:&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;featureServiceURL&amp;gt;/FeatureServer/0/query&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 18:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836850#M2451</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-12-18T18:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting minimum value from FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836851#M2452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I printed the url and it had the form &lt;A href="http://&amp;lt;featureServiceURL&amp;gt;/FeatureServer/2/query"&gt;http://&amp;lt;featureServiceURL&amp;gt;/FeatureServer/2/query&lt;/A&gt;&amp;nbsp;which is the correct table as well. I get the response:&amp;nbsp;{"error":{"code":400,"details":["Unable to perform query operation."],"message":"Unable to complete operation."}}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 18:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/trouble-getting-minimum-value-from-featuretable/m-p/836851#M2452</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2018-12-18T18:20:32Z</dc:date>
    </item>
  </channel>
</rss>

