<?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: Launch ArcMap with applying definition query to layers in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/launch-arcmap-with-applying-definition-query-to/m-p/615159#M1238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi There,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be possible to achieve if you were willing to split it into a couple of steps. If you wanted to apply definition queries to a map before opening you could do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly have a step that runs a python script (LaunchGP), which can utilise arcpy.mapping to manipulate the layers within the map - including adding a definition query to a layer. You could then either resave the map document or save it as a new map with the job number. Note that you can pass tokens through to the python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can have a second step which launches the newly saved map document with the definition queries applied (LaunchArcMap).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fraser&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jul 2012 19:44:02 GMT</pubDate>
    <dc:creator>FraserHand</dc:creator>
    <dc:date>2012-07-08T19:44:02Z</dc:date>
    <item>
      <title>Launch ArcMap with applying definition query to layers</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/launch-arcmap-with-applying-definition-query-to/m-p/615157#M1236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if it is supported to open a map document (launch ArcMap in WMX) with applying some definition queries to certain data layers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The job step will open a pre-stored map document, but the values for definition queries should be dynamic (i.e. [JOB:ID]).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this supported in any job step type..?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight or help on this would be really great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 16:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/launch-arcmap-with-applying-definition-query-to/m-p/615157#M1236</guid>
      <dc:creator>DahaeHwang</dc:creator>
      <dc:date>2012-07-02T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Launch ArcMap with applying definition query to layers</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/launch-arcmap-with-applying-definition-query-to/m-p/615158#M1237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dahae,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently this is not supported, but we are investigating adding this for future releases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:43:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/launch-arcmap-with-applying-definition-query-to/m-p/615158#M1237</guid>
      <dc:creator>KevinBedel</dc:creator>
      <dc:date>2012-07-05T13:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Launch ArcMap with applying definition query to layers</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/launch-arcmap-with-applying-definition-query-to/m-p/615159#M1238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi There,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be possible to achieve if you were willing to split it into a couple of steps. If you wanted to apply definition queries to a map before opening you could do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly have a step that runs a python script (LaunchGP), which can utilise arcpy.mapping to manipulate the layers within the map - including adding a definition query to a layer. You could then either resave the map document or save it as a new map with the job number. Note that you can pass tokens through to the python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can have a second step which launches the newly saved map document with the definition queries applied (LaunchArcMap).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fraser&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2012 19:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/launch-arcmap-with-applying-definition-query-to/m-p/615159#M1238</guid>
      <dc:creator>FraserHand</dc:creator>
      <dc:date>2012-07-08T19:44:02Z</dc:date>
    </item>
  </channel>
</rss>

