Can Field Aliases be Dropped?

989
5
01-11-2012 09:36 AM
RandyKreuziger
Regular Contributor
Is there anyway short of using ArcObjects to delete a fields alias?  I'd like to delete all fields aliases for a given feature class. 

Thanks
0 Kudos
5 Replies
DanPatterson_Retired
MVP Esteemed Contributor
Would something as simple as removing the featureclass from the project and adding it back in be sufficient?
0 Kudos
RandyKreuziger
Regular Contributor
Would something as simple as removing the featureclass from the project and adding it back in be sufficient?


No. 

Last year we developed our first ArcGIS Server javascript web application.  We discovered that we had to use the aliases rather than the field names in the javascript app identifies.  Aliases are sometimes changed by the data stewards or may be different between two feature classes with the same field.  It would be much easier if we could simply delete all the aliases before loading them in the MXD.  That way the field name alias within the MXD layer properterites will default to the field name.   Does that make sense?
0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor
Must be a quirk of server stuff, if you remove and re-add a file to Arcmap, the alias isn't carried over.  Perhaps one of the appropriate web/server forums might address this better.
0 Kudos
ChrisSnyder
Regular Contributor III
Aliases can be added/altered/droped via a featurelayer and/or a layer file:

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006p000000
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Save_To_Layer_File/001700000070000000/

However, I don't think they can be altered/dropped directly via the featureclass in arcpy.
0 Kudos
ModyBuchbinder
Esri Regular Contributor
Hi All

Alias can be at the MXD level but can be at the GeoDatabase level too.
I do not think it is possible to drop them from geodatabase but the easier way will be to calculate them to be the same as the field name.
I think this is the default when you create a new field too.

Have Fun
Mody
0 Kudos