<?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: Page Query in Definition Query in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101234#M45916</link>
    <description>&lt;P&gt;I run it once to get the entire series to export. It's for our annual tax map book, so the per-page query format doesn't change, just the attributes. The gist of it:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for feat in features:
    some_map.listLayers()[1].definitionQuery = f"some_attribute = {feat.attribute1} or some_attribute = {feat.attribute2}"
    # other layout things
    # export to PDF&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 23 Sep 2021 14:07:25 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-09-23T14:07:25Z</dc:date>
    <item>
      <title>Page Query in Definition Query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101176#M45908</link>
      <description>&lt;P&gt;You can use Page Query to turn layers on and off if an attribute in the layer matches the map series page name.&amp;nbsp; This is great but very limited and has no flexibility.&lt;/P&gt;&lt;P&gt;What I would like to know is there a way to limit visibility of a layer using Definition Query where a layer is visible depending&amp;nbsp; on the Map Series page in use?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 11:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101176#M45908</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2021-09-23T11:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Page Query in Definition Query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101214#M45911</link>
      <description>&lt;P&gt;We do this in a Map Series of ours, but have to use the &lt;STRONG&gt;arcpy.mp &lt;/STRONG&gt;to do it. A built-in solution would be nice, though. I'll definitely upvote your idea on this.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101214#M45911</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-09-23T13:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Page Query in Definition Query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101216#M45913</link>
      <description>&lt;P&gt;I would be fine writing it out in SQL in the definition query.&amp;nbsp; But a drop down menu of selectable page names would be nice.&lt;/P&gt;&lt;P&gt;So is your script something that has to be executed each time or does it remain intact?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101216#M45913</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2021-09-23T13:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Page Query in Definition Query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101234#M45916</link>
      <description>&lt;P&gt;I run it once to get the entire series to export. It's for our annual tax map book, so the per-page query format doesn't change, just the attributes. The gist of it:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for feat in features:
    some_map.listLayers()[1].definitionQuery = f"some_attribute = {feat.attribute1} or some_attribute = {feat.attribute2}"
    # other layout things
    # export to PDF&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101234#M45916</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-09-23T14:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Page Query in Definition Query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101246#M45920</link>
      <description>&lt;P&gt;I may try something that.&amp;nbsp; This is for company wall maps and we will generate new PDF's of them 2 times a year, or after major restructuring. then if any of our employees or clients need a wall map they can plot it out.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/page-query-in-definition-query/m-p/1101246#M45920</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2021-09-23T14:20:30Z</dc:date>
    </item>
  </channel>
</rss>

