Change favorites

During runtime, you can change the favorites path of an existing Management view component. To do so, use the setFavoritePath() method of the instantiated Management view component.

Example

mv1.setFavoritePath("%5CFav_1", "FAVORITES_PRIVATE", "FLEX");

The method has the following parameters:

Parameter

Description

favoritePath

Path to the favorite in the source system

Syntax: \<Favorites folder>\...\<Favorite name>

Replace the backslash character in the favorites path with the string %5c and avoid special characters such as accents etc. in folder and favorite names. 

favoriteServer

Type of favorite, valid values:

FAVORITE_PRIVATE: User-specific

FAVORITE_SHARED: General

view

If the Management view component contains a chart, you can choose between two chart types:

  • BITMAP:
    The chart is integrated as a graphic created by PPM. Except for the display of tooltips, no interaction with the chart is possible. In particular, it cannot be used as an interactive filter component.
  • FLEX:
    The chart is represented using the Flex-specific chart library. Because of the existing interaction options, it can serve as an interactive filter component.