AnsweredAssumed Answered

I am looking to find all fields that have all NULLs in a mxd and turn them off

Question asked by dpmac66 on Mar 11, 2016
Latest reply on Mar 11, 2016 by Dan_Patterson

I this is the code I have tried so far


for lyr in arcpy.mapping.ListLayers(mxd):

...     fields = arcpy.ListFields(lyr)

...     for field in fields:

...         rows = arcpy.SearchCursor(lyr,"","","","")

...         for row in rows:

...             for field in fields.keys():

...                 fields[field].append(row.getValue(field))


I am a newbie trying to get this to run any and all help would be appreciated