Picture and Image Field Configuration -- ConfigurationOptions.xml

Iron Speed Designer automatically chooses the field types for binary fields based on the data type.   Picture and image fields are displayed as images, while other binary fields are displayed as file download links.  This approach works for most databases, but in some cases, database designers use binary fields interchangeably between images and files.  Other database products such as Microsoft Access do not provide separate field types for images and files.

In these cases, Iron Speed Designer uses the field name to decide whether it is an image field or one that contains a file attachment.  Names such as Picture, Photo, Image, etc. are assumed to be pictures, while other names such as File, Path, Document, etc., are assumed to be downloadable files.  The common list of names for image and file names are in ConfigurationOptions.xml, located in

..\<Iron Speed Designer Installation Folder>\Designer\ConfigurationOptions.xml

Iron Speed Designer also uses this file to determine the best match of potential “File Name Field” companion fields associated with the actual data field.  To select potential “File Name Field” candidates, Iron Speed Designer selects those fields whose unique names either match any CompanionField or ends to any CompanionSuffix from ConfigurationOptions.xml

A sample configuration options file is shown below:

<FileColumnOptions>

     <Image>

          <!—Names of image fields -- >

          <Name>Photo</Name>

          <Name>Picture</Name>

          <Name>Image</Name>

          <Name>Shot</Name>

          <Name>Snapshot</Name>

     </Image>

     <File>

           <!—Names of file attachment fields -- >

          <Name>File</Name>

          <Name>FileContent</Name>

          <Name>Attachment</Name>

          <Name>Report</Name>

          <Name>Profile</Name>

          <Name>Article</Name>

          <Name>Document</Name>

     </File>

     <CompanionField>

          <!—Names of companion file name fields -- >

          <Name>FileName</Name>

          <Name>File Name</Name>

          <Name>File</Name>

     </CompanionField>

     <CompanionSuffix>

          <Name>Path</Name>

          <Name>File</Name>

          <Name>Url</Name>

          <Name>URI</Name>

     </CompanionSuffix>

</FileColumnOptions>

You can modify this file, and when Iron Speed Designer is restarted, the updated list of names will be used to determine the type of the field.

See Also

Control Text Naming Policies

Control Name Policies - ReservedWords.xml

Picture and Image Field Configuration -- ConfigurationOptions.xml