AVEVA OMI Software Developer Kit
AVEVA OMI Developer Guide > Creating Your First OMI Application > AppManifest.xml File > Specify External Content in the AppManifest File
Specify External Content in the AppManifest File

The AppManifest file lets you specify the media types for external content apps, such as document or media viewers. External content media types must be specified in the AppManifest file when an app supports multiple media types. If your app supports only one media type, this parameter is optional.

Supported media types (SupportedMediaTypes) is a list of the media types that the control supports at run time for external content, and each media type has two required properties and one optional property.

  • MediaType Name (required) is the name of the media type (MIME type), for example, text/html.
  • UriPropertyName (required) is the URI of the configured external content. If the URI is configured in the External Content editor, you can simply set the UriPropertyName reference to "address." Otherwise, you can use the URI of the external content, for example, http://www.AVEVA.com.
  • MediaTypePropertyName (optional) is the name of the property in the control which will receive the media type of the configured external content in runtime.
<AppManifest AppVersion="6.0.0" ToolkitVersion="2.0.0" DesignTimeVisible="true">
  <Filters>
    <Control AssemblyName="ArchestrA.Apps.WebBrowserApp" ControlFullName="ArchestrA.Apps.WebBrowserApp.Sharepoint">
      <Property Name="Address" />
    </Control>
    <Control AssemblyName="ArchestrA.Apps.WebBrowserApp" ControlFullName="ArchestrA.Apps.WebBrowserApp.WebBrowser">
      <Property Name="Address" />
    <SupportedMediaTypes>
         <MediaType Name="text/html" UriPropertyName="Address" MediaTypePropertyName="MediaType"/>
        <MediaType Name="application/xml" UriPropertyName="Address" MediaTypePropertyName="MediaType"/>
    </SupportedMediaTypes>
    </Control>
  </Filters>
</AppManifest>