Personalization Options for Saved Searches
Use
In applications that use Select Options you can provide a dialog box for personalization options, in which users can make settings for saved searches. The dialog box can only be provided if saved searches are active and the Search Criteria panel can be expanded.
To provide the personalization dialog box, in parameter GLOBAL_OPTIONS you set the ALLOW_PERSONALIZATION flag to abap_true.
Personalization data set by the user at runtime is saved in parameter PERSONALIZATION.
The table below describes structure WDR_SO_S_PERSONALIZATION of parameter PERSONALIZATION:
|
Attribute |
Default Value |
Description |
|---|---|---|
|
DEFAULT_SEARCH |
initial |
Sets a saved search as the default search |
|
START_DEFAULT_SEARCH |
abap_false |
Specifies whether the default search is started automatically when the application is opened. |
|
START_ANY_SEARCH |
abap_false |
Specifies whether a selected search is to start automatically. |
|
SHOW_COLLAPSED |
abap_false |
Specifies whether the Search Criteria panel is collapsed when the application is opened. |
The application user can set values for DEFAULT_SEARCH, START_DEFAULT_SEARCH, and START_ANY SEARCH. Parameter SHOW_COLLAPSED is applied automatically when the application is rendered for the first time.
The Select Options component does not persist the personalization data set by the user, but the data is saved by the application called. If the user chooses Save or Reset to Default, the result ON_SAVE_PERS is triggered.