Click or drag to resize
EditActionRenameField Class
Renames a field or a field's picklist values. System fields cannot be renamed. The subsequent processor needs to know how to handle renamed fields - i.e. an importer would need to be allowed to add new fields on-the-fly unless the TM is already set up. If fields or picklist values are renamed, in-place editing in a UI may fail unless the renamed objects are already defined in the TM's setup.

If a field is renamed but a value with that renamed field value already exists, the original field value will be dropped. Note that the field type will remain as is.

The action can also be used to rename picklist values. If the PicklistValueMap is non-null, then that mapping will be applied to the values of picklist fields. If you only want to rename the picklist values, but not the field itself, set ToName to the same value as FromName.

Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.TranslationMemory.EditScriptsEditAction
    Sdl.LanguagePlatform.TranslationMemory.EditScriptsEditActionRenameField

Namespace: Sdl.LanguagePlatform.TranslationMemory.EditScripts
Assembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntax
public class EditActionRenameField : EditAction

The EditActionRenameField type exposes the following members.

Constructors
  NameDescription
Public methodEditActionRenameField
Initializes a new instance with the specified values.
Top
Properties
  NameDescription
Public propertyFromName
Gets or sets the field name prior to the change.
Public propertyPicklistValueMap
Gets or sets a picklist value name mapping for picklist values. This will only be applied to picklist fields.
Public propertyToName
Gets or sets the new field name. Cannot be a reserved field name (i.e. a system field).
Top
Methods
  NameDescription
Public methodApply (Overrides EditActionApply(TranslationUnit).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate (Overrides EditActionValidate(IFieldDefinitions, Boolean).)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments