User Level
Business Administrator
User LevelBusiness Administrator SyntaxAdd FormatFormat definitions are created using the Add Format command. This command has the syntax. Syntax
Creator and Type ClausesThe Creator and Type fields are Macintosh file system attributes (like Protection and Owner on UNIX systems). They should not be confused with users or types. The following is an example Creator clause of the Add Format command:
The following is an example Type clause of the Add Format command:
This would identify a script file created by the Macintosh toolserver. Both fields are four bytes in length and are generally readable ASCII. If you specify a value for only one of the two clauses, the other clause assumes the same value. The values for creator and type are registered with Apple for each Macintosh application. When a file is checked out to a Macintosh, these attribute settings will be applied. If Macintoshes are not used, the fields can be left blank. View, Edit, and Print ClausesTheses clauses specify the program to use to view (open for view), edit (open for edit), or print files checked into the format. When you specify the program, you are actually specifying the name of the program object that represents the program. For Windows platforms, if you want to open files for view, edit, or print based on their file extensions and definitions in the Windows Registry, you can leave out the corresponding clause. For example, by default Windows uses MS Paint to open files with a file extension of .bmp. Keep in mind that each user’s PC contains its own Windows Registry database, which is editable; the databases are not shared between computers. If you want to provide a more complex and flexible format that will use the file association mechanism of windows, see Format Definition Example Program. Program Object RequirementsTo be used in a format definition, a program object definition must include these characteristics:
For more information, see Code Clause for the Add Program Command. SyntaxThe View, Edit, and Print clauses of the Add Format command use this syntax:
For example, the following is a sample format definition for CADplus, a computer aided design system:
After this format is defined, 3DSpace can open a file checked in with this format using CADview for viewing or using CADedit for editing. Suffix ClauseThis clause specifies the default suffix for the format. If an object is selected that contains no files, “open for edit” generates the name of the file from the object name. 3DSpace attempts to open a file with that name and the default format suffix.
Assume you want to add a note to a business object. You might use the TextTYPE or BestBooks word processing programs to create the note. TextTYPE uses a default file suffix of
.tex
for document files and BestBooks uses
After these definitions are made, any file that uses a TextTYPE format will have a suffix of
.tex
and any file that uses a BestBooks format will have a suffix of
The suffix specified in the Format is not used in the launching mechanism. The file itself is passed to the operating system and its extension (or suffix) is used to determine what application should be opened. Mime ClauseYou can specify the MIME (Multi-Purpose Internet Mail Extension) type for a format. MIME types are used when files are accessed via a Web browser. To specify a MIME type, use the Mime clause in the format definition:
The major MIME types are application, audio, image, text, and video. There are a variety of formats that use the application type. For example, application/x-pdf refers to Adobe Acrobat Portable Document Format files. For information on specific MIME types (which are more appropriately called “media” types) refer the Internet Assigned Numbers Authority Web site at http://www.isi.edu/in-notes/iana/assignments/media-types/. The IANA is the repository for assigned IP addresses, domain names, protocol numbers, and has also become the registry for a number of Web-related resources including media types. To find the MIME types defined for a particular format, use the following command:
Version ClauseThis clause identifies the version number of the software required to process the file. The software version is useful when tracking files created under different software releases. Upward and downward compatibility is not always assured between releases. If you install a new software release that cannot process existing files, you can create a new format for the new release and leave the old format in place. The old format automatically references the older version of the software while the new format references the new version. The version clause does not check the version number against the software you are using. You can enter any value. However, you should use the actual version number or identifier if possible. For example:
History Clause
The
Copy FormatAfter a format is defined, you can clone the definition with the Copy Format command. This command lets you duplicate defining clauses with the option to change the value of clause arguments. Syntax
History Clause
The
Modify FormatAfter a format is defined, you can change the definition with the Modify Format command. This command lets you add or remove defining clauses and change the value of clause arguments:
There are different types of modifications you can make. Each modification is specified in a Modify Format clause, as listed in the following table. You only need to specify fields to be modified.
As you can see, each modification clause is related to the clauses and arguments that define the format. For example, the following command changes the name and version of the format named “TextTYPE Version 9.1”:
When modifying a format, remember the question of upward and downward compatibility between software versions. Since all files with the defined format are effected by the change, you should test sample files or read the release notes to determine whether or not old files will be negatively effected. If they will be, you might want to create a new format for the new software version rather than modify the existing format definition. In some cases, the suffix will be different for documents created in a new release of the application software. Therefore, a separate format is required (at lease until all files are updated). Delete FormatIf a format is no longer required, you can delete it with the Delete Format command.
Searches the list of formats. If the name is not found, an error message is displayed. If the name is found and there are no files with that format in the database, the format is deleted. If there are files that use that format within the database, they must be migrated to a different format (for more information, see Moving Files) or deleted from the business object before you can remove the format from the format list. For example, delete the TextTYPE Version 9.1 format, enter the following command:
After this command is processed, the format is deleted and you receive an MQL prompt for another command. |