AnsweredAssumed Answered

da Search Cursor Does Not Respect Page Definition Query

Question asked by rr1040 on Sep 29, 2015
Latest reply on Sep 30, 2015 by timothy_hales-esristaff

I have a DDP set up that also includes Page Definition Query on layers in the MXD.  I have python script that references this map includes an arcpy.da.searchcursor that loops through the same feature class that has the Page Definition Query.  When it loops through it sees all the features rather than just the features that are limited by that page's Page Definition Query.  Is this suppose to be that way?

 

Since I am already in python, a work around would be to just forget about the Page Definition Query and call the DDP page name.  Then i could use that for an old fashion definition query before my arcpy.da.searchcursor.  Anyone know the code to call the current DDP page name?

Outcomes