Advanced Customization > Services and Infrastructure Customization > Customizing Data Formats > Adding and Updating Data Formats for Content Holders > Adding Data Formats
  
Adding Data Formats
Use the following command to add a data format to the system:
java wt.content.DataFormatUtil -add
You are then prompted to provide values for the following attributes:
Attribute
Description
Format name (required)
Displays this name (for example, Microsoft Word) in the client to identify the file format. The value specified must be unique.
MIME type (required)
The MIME type (for example, application/msword) to be used in downloading a file of this type. You must specify a space-separated list of valid extensions for the MIME type (for example, .txt, .text, or .t). This is the way in which the format of these objects will be set when a file is uploaded.
Description (optional)
Describes this data format object.
Indexable (required)
Indicates whether or not this data format type can be indexed by RetrievalWare. Most MIME types supported by RetrievalWare are defined in the system when it is installed. However, any simple text format is indexable.
For a complete list of supported file type, see RetrievalWare documentation.
Icon (required)
Defines the path to a subdirectory of the codebase that contains the icon for this format type. When you add a data format type, you have the option to reference an icon other than one of those found in the Windchill codebase. However, you must ensure that the pixel size for your icon is 16 x 16 to avoid an error when viewing icons.
Extensions (required)
Defines the extensions that are associated with this particular mime type (for example, .doc or .rtf for Microsoft Word).
After adding a new format for a MIME type using DataFormatUtil, you must add a new line for that format to the wt\content\FormatNameRB.java file and then run the ResourceBuild utility to generate resource classes from FormatNameRB.java file. Enter the new line using the following format:
@RBEntry("Display_value")
public static final String unique_number = "MIME type name";
For example, if the MIME type name is Java Archive and display value desired is Java Archive File, then new entry is as follows:
@RBEntry("Java Archive File ")
public static final String PRIVATE_CONSTANT_58 = Java Archive";
For details on using the ResourceBuild utility, see the Adding and Updating Data Formats for Content Holders.