<?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 DefinitionExpression not working for group layer : WAB Dev Edition 2.24 in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/definitionexpression-not-working-for-group-layer/m-p/1180869#M22256</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've group layers in my web map, structure looks like below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PrashantKirpan_0-1654647158687.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42936iD38024E03203D18E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PrashantKirpan_0-1654647158687.png" alt="PrashantKirpan_0-1654647158687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to apply definition expression to one of the layer i.e. "Operational PolyFeature" but it's not working. Here is my sample code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var layerStructureInstance = LayerStructure.getInstance();
 layerStructureInstance.traversal(lang.hitch(this, function (layerNode) {
  if (layerNode.title === 'Operational PolyFeature') {
   layerNode.getLayerObject().then(lang.hitch(this, function (layerObject) {
   layerObject.setDefinitionExpression("objectid = 123");
   layerNode.show();
       }));
      }
   }));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to apply def expression on group layer, any help would be appreciated.&lt;/P&gt;&lt;P&gt;-Prashant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 00:21:04 GMT</pubDate>
    <dc:creator>PrashantKirpan</dc:creator>
    <dc:date>2022-06-08T00:21:04Z</dc:date>
    <item>
      <title>DefinitionExpression not working for group layer : WAB Dev Edition 2.24</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/definitionexpression-not-working-for-group-layer/m-p/1180869#M22256</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've group layers in my web map, structure looks like below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PrashantKirpan_0-1654647158687.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42936iD38024E03203D18E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PrashantKirpan_0-1654647158687.png" alt="PrashantKirpan_0-1654647158687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to apply definition expression to one of the layer i.e. "Operational PolyFeature" but it's not working. Here is my sample code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var layerStructureInstance = LayerStructure.getInstance();
 layerStructureInstance.traversal(lang.hitch(this, function (layerNode) {
  if (layerNode.title === 'Operational PolyFeature') {
   layerNode.getLayerObject().then(lang.hitch(this, function (layerObject) {
   layerObject.setDefinitionExpression("objectid = 123");
   layerNode.show();
       }));
      }
   }));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to apply def expression on group layer, any help would be appreciated.&lt;/P&gt;&lt;P&gt;-Prashant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 00:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/definitionexpression-not-working-for-group-layer/m-p/1180869#M22256</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2022-06-08T00:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: DefinitionExpression not working for group layer : WAB Dev Edition 2.24</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/definitionexpression-not-working-for-group-layer/m-p/1181359#M22261</link>
      <description>&lt;P&gt;Fixed by using this code&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  layerNode.setFilter(expression);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Jun 2022 04:49:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/definitionexpression-not-working-for-group-layer/m-p/1181359#M22261</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2022-06-09T04:49:34Z</dc:date>
    </item>
  </channel>
</rss>

