Launch ArcMap with applying definition query to layers

1315
2
Jump to solution
07-02-2012 09:59 AM
DahaeHwang
New Contributor II
Hi there,
I wonder if it is supported to open a map document (launch ArcMap in WMX) with applying some definition queries to certain data layers?
The job step will open a pre-stored map document, but the values for definition queries should be dynamic (i.e. [JOB:ID]).
Is this supported in any job step type..?

Any insight or help on this would be really great.
Thank you.
0 Kudos
1 Solution

Accepted Solutions
KevinBedel
Esri Contributor
Hi Dahae,

Currently this is not supported, but we are investigating adding this for future releases.

View solution in original post

0 Kudos
2 Replies
KevinBedel
Esri Contributor
Hi Dahae,

Currently this is not supported, but we are investigating adding this for future releases.
0 Kudos
FraserHand
Occasional Contributor III
Hi There,

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:
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.
Then you can have a second step which launches the newly saved map document with the definition queries applied (LaunchArcMap).

Thanks,
Fraser
0 Kudos