Entering content frame

Background documentation Personalization Locate the document in its SAP Library structure

The concepts described so far for the component and application configuration referred to design processes that were implemented at design time and by application developers. Personalization and customization, on the other hand, take place at runtime and are executed by users or administrators.

Personalization

The user of a Web Dynpro application can influence, to a certain degree, the appearance of a screen in the view displayed in the browser. The Web Dynpro Framework proved for each single UI element the option of changing part of the properties of the implicit configuration (see the chapter on Component Configuration). At the moment, this modification option is limited to the property Visibility. Without any additional effort for an application developer, therefore, the user of an application can hide or display individual UI elements on the view currently displayed.

Note To open the respective dialog, the user positions the cursor on the UI element in question and presses Ctrl + right mouse-click.

Sometimes, however, it can be appropriate to personalize such properties that were created with the help of explicit configuration in the context of the configuration controller. In this case, the dialog for access on behalf of the user to values of the configuration controller context must be created and programmed in a separate view explicitly by the application developer.  In addition, the jump from the personalizing view to the personalization dialog must be created and implemented actively.

In the demo application WDR_TEST_PERS_IMP_EXP, which is contained in your system in the package SWDP_TEST, you will find a special personalization view  PERS_VIEW.

 

Embedding Implicit Configuration Options into the Personalization Dialog

If a personalization dialog is created explicitly by the application developers, it can be appropriate to also embed the personalization of the implicit configuration option – for example, on an additional tab page. In this case, the user would have the advantage of uniform handling. Embedding takes place with the help of a component interface already provided, whereby further programming of this implicit section of the personalization dialog is no longer required.

The prepared Web Dynpro component interface to be used is called IWD_PERSONALIZATION and provides an interface view that, in turn, must be embedded in the window of the component used.  This interface has a method called INIT_PERSONALIZATION, which is called in a method of the main component (for example, WDDOINIT of the component controller). The reference to the view controller for the view element to be personalized as well as the ID of this view element must be passed to the method INIT_ PERSONALIZATION.

 

Cross-Client Customization

While a single user – during a personalization process – can manipulate his or her own settings an administrator has the option of executing customizing settings for a larger range of users. Technically, this procedure is not different from personalization; both take place at runtime of an application. The difference lies in the range of the settings. In addition, an application for group settings must run in a special administration session. This is always automatically the case if an application was started in the portal in the preview session. Independently of the portal, you can start an application in the following manner from within the workbench in administration mode:

·        Double-click the name of the application in the object list.

·        In the menu Web Dynpro Applications in the upper, left-hand corner of the Workbench window, choose the entry Test -> Execute in Admin.Mode

The configuration mode is then passed to an application as Structure linkURL parameter sap-config-mode=X.

Note All the adjustments made by the administrator in the admin mode are stored as client-specific. At the moment, there is no option available for structuring smaller user groups on an administrative basis. Since cross-client adjustment takes effect for the respective configuration variant, structuring of smaller groups can be implemented currently through the maintenance of different configuration variants.

Note For personalizing an individual user, a context menu opens when the relevant element is right-clicked while pressing the control key. However, when an administrator with URL parameter sap-config-mode=X right-clicks while pressing the control key, a separate dialog box opens.

 

 

Leaving content frame