<?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: Attempting to publish definition query and it dissapears in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004661#M37513</link>
    <description>&lt;P&gt;Ah, I see. That sort of a query is more complex than the AGOL filter can do. I can think of a couple ways to do this, but is the underlying data going to be edited regularly?&lt;/P&gt;&lt;P&gt;You could add a field and use your SQL statement in the AGOL field calculator to return a true/false, then set the filter to look at that field. But you'd need to re-calculate the field whenever new data is added.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 14:42:26 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2020-11-25T14:42:26Z</dc:date>
    <item>
      <title>Attempting to publish definition query and it dissapears</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004621#M37507</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a SQL definition query i have created for a layer in arcgis pro. I can see and tested it works fine and is active as it has the green tick.&lt;/P&gt;&lt;P&gt;Now when i go publish it, the definition query does not work in ArcGIS online. Can anyone recommend reason and if i can just set it in arcgis online?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 10:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004621#M37507</guid>
      <dc:creator>cardiokan</dc:creator>
      <dc:date>2020-11-25T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to publish definition query and it dissapears</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004648#M37510</link>
      <description>&lt;P&gt;How are you publishing the layer? You may need to configure the layer's &lt;A href="https://doc.arcgis.com/en/arcgis-online/create-maps/apply-filters.htm" target="_self"&gt;&lt;STRONG&gt;Filter &lt;/STRONG&gt;&lt;/A&gt;settings in the web map to recreate your definition query.&lt;/P&gt;&lt;P data-unlink="true"&gt;If you've published a hosted feature layer, you also have the option of creating a &lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm" target="_self"&gt;&lt;STRONG&gt;hosted feature layer view&lt;/STRONG&gt;&lt;/A&gt;, which can have its own definition query applied to it.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 13:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004648#M37510</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2020-11-25T13:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to publish definition query and it dissapears</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004652#M37511</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;I am publishing it as a feature layer.&lt;/P&gt;&lt;P&gt;I have set this query up in the SQL definition in ArcGIS Pro -&amp;nbsp;Item/1000 = Round ( Item/1000,0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I go to ArcGIS Online, I do see the filter option but it does not have ability to set to the query listed above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 13:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004652#M37511</guid>
      <dc:creator>cardiokan</dc:creator>
      <dc:date>2020-11-25T13:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to publish definition query and it dissapears</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004661#M37513</link>
      <description>&lt;P&gt;Ah, I see. That sort of a query is more complex than the AGOL filter can do. I can think of a couple ways to do this, but is the underlying data going to be edited regularly?&lt;/P&gt;&lt;P&gt;You could add a field and use your SQL statement in the AGOL field calculator to return a true/false, then set the filter to look at that field. But you'd need to re-calculate the field whenever new data is added.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004661#M37513</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2020-11-25T14:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to publish definition query and it dissapears</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004663#M37514</link>
      <description>&lt;P&gt;The good news is&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;the underlying data will never need to be edited again. It is a layer which will be a one off task.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is a good shout, is there any documentation on the AGOL field calculator.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004663#M37514</guid>
      <dc:creator>cardiokan</dc:creator>
      <dc:date>2020-11-25T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to publish definition query and it dissapears</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004667#M37515</link>
      <description>&lt;P&gt;There's &lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/calculate-fields.htm" target="_self"&gt;this page here&lt;/A&gt;, but even though it mentions Arcade, I believe that is only if you're working with the hosted layer from within Pro.&lt;/P&gt;&lt;P&gt;If you go to the &lt;STRONG&gt;Data&lt;/STRONG&gt; tab on the content item in AGOL, you can open the field calculator there by clicking on a column heading.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jCarlson_0-1606316619885.png" style="width: 234px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/962i4EE8B100CBDE1590/image-dimensions/234x281?v=v2" width="234" height="281" role="button" title="jCarlson_0-1606316619885.png" alt="jCarlson_0-1606316619885.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Clicking &lt;STRONG&gt;Calculate &lt;/STRONG&gt;will open the &lt;STRONG&gt;Calculate Field&lt;/STRONG&gt; window, in which you can utilize various SQL functions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jCarlson_1-1606316694966.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/963i75DD104E81874EFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jCarlson_1-1606316694966.png" alt="jCarlson_1-1606316694966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 15:05:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attempting-to-publish-definition-query-and-it/m-p/1004667#M37515</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2020-11-25T15:05:02Z</dc:date>
    </item>
  </channel>
</rss>

