<?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: Hiding selected Feature within Popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384471#M83685</link>
    <description>&lt;P&gt;Perhaps simplifying the syntax of your definition expressions might help. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Amicaexp = oidField3 + " NOT IN(" + Amicaoids.join(",") + ")";&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 20 Feb 2024 17:21:13 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2024-02-20T17:21:13Z</dc:date>
    <item>
      <title>Hiding selected Feature within Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384036#M83681</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;So, Im currently able to hide the selected features by clicking ont he feature and hiding it within the custom action in the popup. However, after changing my api to 4.28, Im not able to do it anymore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.when(() =&amp;gt; {
            const oidField = "OBJECTID";
            const oidField3 = "ObjectID";
            view.popup.on("trigger-action", ({ action }) =&amp;gt; {
              if (action.id === "hide-this") {
                const oid = view.popup.selectedFeature.attributes[oidField3];
                Amicaoids.push(oid);
                Amicaexp = `${oidField3} NOT IN (${Amicaoids.join(",")})`;
                AmicaExistingSites.definitionExpression = Amicaexp;
                view.popup.close();
              } else if (action.id === "hide-pipeline") {
                const pipeline_oid =
                  view.popup.selectedFeature.attributes[oidField];
                Pipelineoids.push(pipeline_oid);
                Pipelinexp = `${oidField} NOT IN (${Pipelineoids.join(",")})`;
                Pipeline.definitionExpression = Pipelinexp;
                view.popup.close();
              } else if (action.id === "hide-sitelog") {
                const siteLog_oid =
                  view.popup.selectedFeature.attributes[oidField];
                SiteLogoids.push(siteLog_oid);
                SiteLogexp = `${oidField} NOT IN (${SiteLogoids.join(",")})`;
                SiteLog.definitionExpression = SiteLogexp;
                view.popup.close();
              } else if (action.id === "hide-posite") {
                const posite_oid =
                  view.popup.selectedFeature.attributes[oidField];
                POSiteoids.push(posite_oid);
                POSiteexp = `${oidField} NOT IN (${POSiteoids.join(",")})`;
                POSite.definitionExpression = POSiteexp;
                view.popup.close();
              } else if (action.id === "hide-comp") {
                const existing_oid =
                  view.popup.selectedFeature.attributes[oidField3];
                CompExistingoids.push(existing_oid);
                CompExistingexp = `${oidField} NOT IN (${CompExistingoids.join(
                  ","
                )})`;
                CompetitorsExisting.definitionExpression = CompExistingexp;
                view.popup.close();
              } else if (action.id === "hide-qualified") {
                const qualified_oid =
                  view.popup.selectedFeature.attributes[oidField3];
                CompQualifiedoids.push(qualified_oid);
                CompQualifiedexp = `${oidField} NOT IN (${CompQualifiedoids.join(
                  ","
                )})`;
                CompetitorsQualified.definitionExpression = CompQualifiedexp;
                view.popup.close();
              } else if (action.id === "hide-proposed") {
                const proposed_oid =
                  view.popup.selectedFeature.attributes[oidField3];
                CompProposedoids.push(proposed_oid);
                CompProposedexp = `${oidField} NOT IN (${CompProposedoids.join(
                  ","
                )})`;
                CompetitorsProposed.definitionExpression = CompProposedexp;
                view.popup.close();
              }
            });
          });&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Feb 2024 15:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384036#M83681</guid>
      <dc:creator>Charan</dc:creator>
      <dc:date>2024-02-19T15:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding selected Feature within Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384471#M83685</link>
      <description>&lt;P&gt;Perhaps simplifying the syntax of your definition expressions might help. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Amicaexp = oidField3 + " NOT IN(" + Amicaoids.join(",") + ")";&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 17:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384471#M83685</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2024-02-20T17:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding selected Feature within Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384515#M83687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;, the issue is that when I click on the popup, I don’t see the actions I have created!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 18:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384515#M83687</guid>
      <dc:creator>Charan</dc:creator>
      <dc:date>2024-02-20T18:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding selected Feature within Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384519#M83688</link>
      <description>&lt;P&gt;In that case, can you supply the code where you create the PopupTemplate and its actions?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 18:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-selected-feature-within-popup/m-p/1384519#M83688</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2024-02-20T18:31:24Z</dc:date>
    </item>
  </channel>
</rss>

