Sharkmouse

Errors using multiple shapefile object attributes

Discussion created by Sharkmouse on Apr 24, 2014
Latest reply on Apr 29, 2014 by MBuehler-esristaff
Hi there,

I have students using CE and this has come out of left-field. A student has baked a whole lot of zoning and demographic information into a shapefile, and is able to pull a single attribute out using the attr attributename = getObjectAttr ("ATTR_NAME") approach. The issue comes up when using more that a single one of these calls; to whit, despite being linked, only one of these attributes will be usable.

There doesn't seem to be any selectivity about which one, although it defaults to the first in the list. The others return empty values (verified in the console...)

this is the code he has in his Layer Attributes dialogue;

attr ZoneCode = getObjectAttr("ZONE_CODE")
attr Education =  getObjectAttr("BACH_INDEX")
attr Debt =  getObjectAttr(DEBT_INDEX")
attr Income =  getObjectAttr("MEDINCOME")


Any help or insight would be appreciated - it appears to be an issue with CE 2013.1

(I'm still running 2012 and I've not been able to replicate his errors...)

Edit - installed trial of 2013.1 - can confirm that a file that was able to read multiple attributes from the SHP data is now only reading one, the first one.

Outcomes