<?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: Initialize a map with feature layer filtered in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/initialize-a-map-with-feature-layer-filtered/m-p/248352#M1270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Luke You are always very helpful &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2016 07:03:09 GMT</pubDate>
    <dc:creator>albavoli</dc:creator>
    <dc:date>2016-05-27T07:03:09Z</dc:date>
    <item>
      <title>Initialize a map with feature layer filtered</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/initialize-a-map-with-feature-layer-filtered/m-p/248350#M1268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we initialize a map in qml with a feature layer that is already filtered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 12:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/initialize-a-map-with-feature-layer-filtered/m-p/248350#M1268</guid>
      <dc:creator>albavoli</dc:creator>
      <dc:date>2016-05-26T12:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize a map with feature layer filtered</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/initialize-a-map-with-feature-layer-filtered/m-p/248351#M1269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you wanting to use a definition expression? - &lt;A href="http://developers.arcgis.com/qt/qml/api-reference/class_feature_layer.html#aef0f48ba5b5636b0757747f951cda7ac" title="http://developers.arcgis.com/qt/qml/api-reference/class_feature_layer.html#aef0f48ba5b5636b0757747f951cda7ac"&gt;ArcGIS Runtime SDK for Qt QML API: FeatureLayer Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should apply any definition expression you have set in the service automatically, but if it does not, then the workaround I can think of is to fetch the feature service info (&lt;A href="http://developersdev.arcgis.com/qt/qml/api-reference/class_service_info_task.html#a6e6f2d90fb96340e74eb7a7bdd5c919d" title="http://developersdev.arcgis.com/qt/qml/api-reference/class_service_info_task.html#a6e6f2d90fb96340e74eb7a7bdd5c919d"&gt;http://developersdev.arcgis.com/qt/qml/api-reference/class_service_info_task.html#a6e6f2d90fb96340e74eb7a7bdd5c919d)&lt;/A&gt; , and from the feature service info, get the feature layer info for your layer (&lt;A href="http://developersdev.arcgis.com/qt/qml/api-reference/class_feature_service_info.html#aa7efab2f879390b9d5d26c10024cc266" title="http://developersdev.arcgis.com/qt/qml/api-reference/class_feature_service_info.html#aa7efab2f879390b9d5d26c10024cc266"&gt;http://developersdev.arcgis.com/qt/qml/api-reference/class_feature_service_info.html#aa7efab2f879390b9d5d26c10024cc266&lt;/A&gt; ). Once you have the FeatureLayerInfo for your layer, you can obtain the def expression string, and apply it to your layer &lt;A href="http://developersdev.arcgis.com/qt/qml/api-reference/class_feature_layer_info.html#a3d3237fca07c8bce27f3b88f5f31f4b6" title="http://developersdev.arcgis.com/qt/qml/api-reference/class_feature_layer_info.html#a3d3237fca07c8bce27f3b88f5f31f4b6"&gt;http://developersdev.arcgis.com/qt/qml/api-reference/class_feature_layer_info.html#a3d3237fca07c8bce27f3b88f5f31f4b6&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Luke &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 16:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/initialize-a-map-with-feature-layer-filtered/m-p/248351#M1269</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2016-05-26T16:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize a map with feature layer filtered</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/initialize-a-map-with-feature-layer-filtered/m-p/248352#M1270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Luke You are always very helpful &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 07:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/initialize-a-map-with-feature-layer-filtered/m-p/248352#M1270</guid>
      <dc:creator>albavoli</dc:creator>
      <dc:date>2016-05-27T07:03:09Z</dc:date>
    </item>
  </channel>
</rss>

