Επεξεργασία

Κοινή χρήση μέσω


MediaSet Data type

Version: Available or changed with runtime version 1.0.

Encapsulates media, such as images, in application database tables.

Static methods

The following methods are available on the MediaSet data type.

Method name Description
FindOrphans() Discovers all orphaned media sets. Orphaned media sets are media sets that are not referenced by any other table.

Instance methods

The following methods are available on instances of the MediaSet data type.

Method name Description
Count() Gets the number of media objects that are included in the MediaSet of a record.
ExportFile(Text) Exports the media objects in the current media set of a record to individual files on your computer or network. In the record, the media set is referenced in a MediaSet data type field.
ImportFile(Text, Text [, Text]) Adds a media, such as a JPEG image, to the MediaSet data type field of a record for displaying the media in the client. The media is imported to the database and included in a MediaSet for the record.
ImportStream(InStream, Text [, Text]) Adds a media file, such as a JPEG image, from an InStream object to the MediaSet of record for displaying in the client. The media is imported to the database and included in a MediaSet for the record.
Insert(Guid) Adds a media object that already exists in the database to a MediaSet of a record.
Item(Integer) Gets the unique identifier (GUID) of a media object that is assigned to a MediaSet on a record.
MediaId() Gets the unique identifier that is assigned to a MediaSet of a record. The MediaSet is a collection of media objects that are used on the record that can be displayed in the client.
Remove(Guid) Removes a media object from a MediaSet of a record.

Get Started with AL
Developing Extensions
Working With Media on Records