Content type dictionary

The content type dictionary stores the media type associated with BLOBs or CLOBs data types. When data must be displayed on a page, the Sage X3 protocol first sends a prototype that defines the data, and then sends the data by itself. The media type is sent with the prototype so the user interface is able to select the most appropriate widget to display the data.

A predefined library of data types is provided in the dictionary and can be completed. It includes the following:

  • Standard data types:

    • text/plain, text/html, text/css...
    • image/jpeg, image/bmp, image/png, image/gif...
    • audio/mpeg, audio/x_wav, audio/midi...
    • video/mp4, video/quicktime...
  • Data types associated with standard applications:

    • application/pdf, application/msword, application/zip, application/x-shockwave-flash
  • Data types associated with Sage X3 native data types. These types have a supervisor check box selected and cannot be modified:

    • application/x-boolean, application/x-choice, application/x-string, application/x-datetime, application/x-integer, application/x-decimal, application/x-real, application/x-date...

When creating or updating a data type, the only thing to do is to fill one section that contains the following information:

Code

Defines the access key to the code. This reference is used in the data type dictionary when a type has an internal type set of CLOB or BLOB.

Description

Is a user-friendly description of the data type.

Supervisor

If this information is set, the type is a built-in type delivered to support standard Sage X3 data types. It cannot be modified.

Activity code

Is used to protect specific classes during the standard patching process (if it starts with X, Y, or Z), or to make them optional. It behaves as all the activity codes defined in dictionaries.

Module

Indicates the technical module the prototype type is associated with.

Internal type

Defines the internal type of all data types that can use this prototype type. Internal type can be either CLOB or BLOB for the added content types, and any type for the supervisor supplied content types.

Content type

Defines the media type that will be sent with the prototype.

Specifiable

Means that the content type, defined with the Supervisor check box selected, can be modified on the fly by using the ASETATTRIBUTE method. Only the 'ATYPE10' and 'ATYPE9' content types have this check box selected.