Loading Metadata

The following steps provide an overview of how to load metadata into a Classic application. These steps assume that an application has previously been opened with one of the OpenApplication methods.

Caution!

If you attempt to load metadata into a Performance Management Architect application, Load will fail.

For an example that illustrates these steps, see Example for Loading Metadata.

  To load metadata into a Classic application:

  1. Set an object reference to the HsvMetadataLoadACV object.

  2. Point to the application into which metadata is being loaded by calling HsvMetadataLoadACV.SetSession. For SetSession’s argument, pass the HsvSession object reference that was returned by HsxClient.OpenApplication or HsxClientUI.OpenApplication.

  3. Set an object reference to the IHsvLoadExtractOptions interface with the HsvMetadataLoadACV.LoadOptions property.

  4. Optional. All dimensions are loaded by default. To exclude a dimension from being loaded, set the CurrentValue property of the IHsvLoadExtractOption interface instance for the dimension to FALSE.

  5. Optional. To override the defaults for other load options, specify the values for these options. The available load options are listed in Metadata Load Options.

  6. Load the data by calling HsvMetadataLoadACV.Load. Load takes the file names and paths of the metadata load file and of the log file.