<?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 Is there a setDefinitionExpression method for the QML API? in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223984#M1116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a setDefinitionExpression method for the QML API for feature layers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only see the method under the C++ API ref.&amp;nbsp; Is there no way to do this in QML?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 17:30:55 GMT</pubDate>
    <dc:creator>IsaiahAguilera</dc:creator>
    <dc:date>2015-03-19T17:30:55Z</dc:date>
    <item>
      <title>Is there a setDefinitionExpression method for the QML API?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223984#M1116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a setDefinitionExpression method for the QML API for feature layers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only see the method under the C++ API ref.&amp;nbsp; Is there no way to do this in QML?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 17:30:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223984#M1116</guid>
      <dc:creator>IsaiahAguilera</dc:creator>
      <dc:date>2015-03-19T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a setDefinitionExpression method for the QML API?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223985#M1117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for?&amp;nbsp; &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_arc_g_i_s_feature_layer.html#aa590b0f5d1d7ce9dba710805c92d10c2" title="https://developers.arcgis.com/qt/qml/api-reference/class_arc_g_i_s_feature_layer.html#aa590b0f5d1d7ce9dba710805c92d10c2"&gt;ArcGIS Runtime SDK for Qt (QML API): ArcGISFeatureLayer&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 17:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223985#M1117</guid>
      <dc:creator>StevenGraf1</dc:creator>
      <dc:date>2015-03-19T17:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a setDefinitionExpression method for the QML API?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223986#M1118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isaiah, yes there is a definitionExpression on the GeodatabaseFeatureServiceTable:&amp;nbsp; &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_geodatabase_feature_service_table.html#aa27d2b3227a39a2e21f7b0eb2f62eacb" title="https://developers.arcgis.com/qt/qml/api-reference/class_geodatabase_feature_service_table.html#aa27d2b3227a39a2e21f7b0eb2f62eacb"&gt;https://developers.arcgis.com/qt/qml/api-reference/class_geodatabase_feature_service_table.html#aa27d2b3227a39a2e21f7b0eb2f62eacb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_geodatabase_feature_service_table.html#aa27d2b3227a39a2e21f7b0eb2f62eacb" title="https://developers.arcgis.com/qt/qml/api-reference/class_geodatabase_feature_service_table.html#aa27d2b3227a39a2e21f7b0eb2f62eacb"&gt;ArcGIS Runtime SDK for Qt (QML API): GeodatabaseFeatureServiceTable&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We recommend using the GeodatabaseFeatureServiceTable with a FeatureLayer in the QML API, unless you are working with feature collections in which the ArcGISFeatureLayer is the way to go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 17:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223986#M1118</guid>
      <dc:creator>MichaelTims</dc:creator>
      <dc:date>2015-03-19T17:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a setDefinitionExpression method for the QML API?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223987#M1119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for the quick responses.&amp;nbsp; I am coming from the JS API and was trying to use FeatureLayer with &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;GeodatabaseFeatureServiceTable but I couldn't even get the points to draw with this setup. I am thinking it is because it does not honor the definitionExpresion I am inputting and without it there are a lot of points to try and draw.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I switched to the ArcGISFeatureLayer and all of the points draw but still no honoring of the definitionExpression. So I guess I have two questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Is there a specific method to execute in order to set the definition expression on a &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;GeodatabaseFeatureServiceTable or&lt;/SPAN&gt; ArcGISFeatureLayer? My current method is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Current Method:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;GeodatabaseFeatureServiceTable {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: incidentServiceTable
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://servername/arcgis/rest/services/servicename/MapServer/0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://servername/arcgis/rest/services/servicename/MapServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; definitionExpression: "Day = 0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;What is the difference between FeatureLayer and ArcGISFeatureLayer? Still not sure which one I should use with my point layer mapservice.&amp;nbsp; In the JS API there was FeatureLayer but it seemed setup more like the QML ArcGISFeatureLayer. Plus it seems like ArcGISFeatureLayer is the only one that allows my points to draw on the map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Any more help would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Isaiah&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:55:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223987#M1119</guid>
      <dc:creator>IsaiahAguilera</dc:creator>
      <dc:date>2021-12-11T10:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a setDefinitionExpression method for the QML API?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223988#M1120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd recommend using the GeodatabaseFeatureServiceTable with the FeatureLayer.&amp;nbsp; This is the direction moving forward for feature layer support in the Runtime.&amp;nbsp; The ArcGISFeatureLayer is still provided for feature collections (initializing a feature layer from a feature set) because the Runtime API doesn't yet support that feature with the FeatureLayer using a FeatureTable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reproduced the problem and noticed that somewhere in the instantiation process of the declared GeodatabaseFeatureServiceTable, it is losing the definitionExpression.&amp;nbsp; I'd recommend logging this as a bug through support.&amp;nbsp; In the meantime as a workaround, you could wait to assign the definitionExpression when the feature table is initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;GeodatabaseFeatureServiceTable&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{ &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #000000;"&gt;featureServiceTable&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;url&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer/0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;//definitionExpression:&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"eventtype&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;1"

&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;onFeatureTableStatusChanged&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;(&lt;SPAN style="font-style: italic; color: #000000;"&gt;featureTableStatus&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;===&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Enums&lt;/SPAN&gt;.FeatureTableStatusInitialized)&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #000000;"&gt;definitionExpression&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"eventtype&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;1"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-a-setdefinitionexpression-method-for-the/m-p/223988#M1120</guid>
      <dc:creator>MichaelTims</dc:creator>
      <dc:date>2021-12-11T10:55:10Z</dc:date>
    </item>
  </channel>
</rss>

