Optimizing Type Libraries

With SAP Analytics Cloud Analytics Designer vesion 2020.2 only types available in the standard library are suggested when you create an new analytic application and call the content assistance in the script editor by clicking Ctrl + Space . Prior to this version all type libraries have been displayed which could decrease the runtime performance.

Once you add a widget or a technical object to the application, the associated type library is displayed as well. If you remove the last widget or technical object associated with a type library, the library is also removed and not displayed any longer in the content assistance.

Optimization of applications created prior to version 2020.2
For applications created prior to version 2020.2, you can start the optimization manually:
  1. Open the application in analytics designer.

  2. Choose Start of the navigation pathSettings Next navigation step Optimize Type LibrariesEnd of the navigation path. A dialog Optimize Script Libraries is displayed that informs you that you can optimize the script type library in favor of design time scripting experience and the run time performance. With this optimization only script types which are related to the widgets in your application will be available.
  3. Click Optimize in the dialog. The type libraries will be cleaned up immediately. All scripts will immediately be checked and any errors will be shown in the error list.

    Note

    If you have already used some type libraries that are not directly related to objects (like widgets) used in the application (for example, you have used Feed enum values in scripts in the application that contains no charts), this could lead to scripting errors. Please check the error list after the optimization and update your scripts as needed.

  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 the various type libraries, please refer to the Analytics Designer API Reference on SAP Help Portal at Analytics Designer API Reference