getting the attribute field value for rendering

Discussion created by dewflower on Nov 1, 2012
Latest reply on Nov 2, 2012 by geos_rfleet
Hi, I am working on a map application that similar to the example "Calculate equal interval class breaks" . but I have difficulties of retrieving the value of the attribute field, when I use the "features[0].attributes[attributeField]" same as the example.

The field I am trying to access is named "sqldb27.SDE.afr_2010.publicSafety_e (Type: esriFieldTypeInteger, Alias: Public Safety Exp)".I suspect the problem maybe caused by the periods in my attribute filed name. However, the attribute name was generated when I joined several tables, and I am not quite sure how to get rid of the periods in there.

Any suggestions?

Thank you,