<?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: remove definitionExpression after uncheck checkbox in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-definitionexpression-after-uncheck-checkbox/m-p/1134553#M75952</link>
    <description>&lt;P&gt;Your layer needs to be triggered to refresh I think, and I believe csvLayer.refresh() will force it to do just that.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 14:32:25 GMT</pubDate>
    <dc:creator>JeffreyWilkerson</dc:creator>
    <dc:date>2022-01-18T14:32:25Z</dc:date>
    <item>
      <title>remove definitionExpression after uncheck checkbox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-definitionexpression-after-uncheck-checkbox/m-p/1134510#M75949</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have custom menu in my application.&lt;/P&gt;&lt;P&gt;I have layer which definition expression should change after i check or uncheck menu check Box:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (document.getElementById("wyaldeni_tbilisi").checked == true) {
  csvLayer.definitionExpression = "Pipeline_Subtype = 3";
}
else
{
  csvLayer.definitionExpression = "";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check works fine, but when i uncheck box nothing happens, definitionExpression stays same.&lt;/P&gt;&lt;P&gt;What i do wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 12:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-definitionexpression-after-uncheck-checkbox/m-p/1134510#M75949</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-01-18T12:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: remove definitionExpression after uncheck checkbox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-definitionexpression-after-uncheck-checkbox/m-p/1134553#M75952</link>
      <description>&lt;P&gt;Your layer needs to be triggered to refresh I think, and I believe csvLayer.refresh() will force it to do just that.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 14:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-definitionexpression-after-uncheck-checkbox/m-p/1134553#M75952</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2022-01-18T14:32:25Z</dc:date>
    </item>
  </channel>
</rss>

