Application Engine

Exporting report book enhancements

The function for exporting a report book has been enhanced to allow parameterization through a book export profile. For example:

BookExportResult ExportReportBook(string projectName, string bookName, BookExportOutputType outputFormat, bool usePageLayout, BookExportImageType imageFormat, string BookExportProfile)

A book export profile can be read from a report book with the Book Export Wizard in Application Studio or in Application Engine by calling the new GetBookExportProfile function.

A set of new book export-related functions has been implemented to create and manipulate book export profiles.

These functions are used to modify book export profiles:

  • CreateBookExportProfile(string bookExportProfile);

    Creates a new book export profile from a JSON string.

  • CreateBookExportProfile(BookExportProfileType BookExportProfileType);

    Creates a new book export profile when using BookExportProfileType.

  • GetBookExportProfile(string ApplicationUniqueName, string BookName);

    Retrieves the book export profile from an Application Studio report book.

These functions are used to modify an existing book export profile:

  • BookExportProfileAddReport(BookExportProfile profile, string ReportUniqueName, int ReportPosition, string DocumentName);

    Adds a report to a report book profile.

  • BookExportProfileSkipReport(BookExportProfile profile, string ReportUniqueName, int ReportPosition);

    Skips a report while exporting the book.

  • BookExportProfileAddSelection(BookExportProfile profile, string ReportUniqueName, int ReportPosition, string ParameterName, BookExportSelectionType BookExportSelectionType, string elementUniqueNames);

    Selects elements for a parameter through different selection types.

  • BookExportProfileClearSelections(BookExportProfile profile, string ReportUniqueName, int ReportPosition, string ParameterName);

    Clears all selections of all types of a parameter.

  • BookExportProfileSetSelection(BookExportProfile profile, string ReportUniqueName, int ReportPosition, string ParameterName, BookExportSelectionType BookExportSelectionType, string elementUniqueNames);

    Replaces elements in an existing selection.

These functions are complemented by new book export-related enumerations for a better user experience when writing processes. This list shows the new export-related enumerations:

  • BookExportProfileType
  • BookExportSelectionMode
  • BookExportSelectionType
  • BookExportDocumentType

Copying values to a target cube with fewer dimensions

The OlapCopyDataArea function now supports copy operations to a cube in which not all dimensions from the source cube are included. If a dimension does not exist in the target cube, the specified element from the source is used for reading values.

Together with previous improvements, this enhancement now enables you to copy data between cubes with the DataareaCopy function even if cubes have different dimensionality.