Optimize Type Libraries

Since SAP Analytics Cloud, analytics designer version 2020.2, only types available in the standard library are suggested when you create a new analytic application and call the value help in the script editor. For applications created prior to this version, you can manually start the optimization.

Context

Once you've added a widget or a technical object to your application, the associated type library is displayed. If you remove the last widget or technical object associated with a type library, the library is also removed and no longer displayed in the value help. Prior to version 2020.2, all type libraries were displayed, which could affect your scripting experience and runtime performance.

Procedure

  1. Open your application in design time.
  2. From the toolbar choose Start of the navigation path (Edit Analytic Application) Next navigation step Optimize Type LibrariesEnd of the navigation path.

    You can see a dialog Optimize Script Libraries informing you of the optimization effects.

  3. Choose Optimize.

    The type libraries will be cleaned up immediately. All the scripts will immediately be checked and any errors will be shown in the info panel.

    Note

    If you've already used some type libraries that aren't directly related to objects used in the application, for example, you've used feed enum values in your application that contains no charts, this could lead to scripting errors. Please check the error list after the optimization and update your scripts accordingly.

  4. To finish the optimization process, save the application.
    Note

    If you don't save the application, it will behave as before.

    For further information about various type libraries, see Analytics Designer API Reference.