cancel
Showing results for 
Search instead for 
Did you mean: 

Reading component configuration

Former Member
0 Kudos

Hello All,

  I have few columns in a table and I have created an application configuration along with component configuration.

In the component configuration I have set few columns to invisible.

In webdynpro component I want to read the details like which column is set to invisible etc.

I have searched in the class CL_WD_TABLE_COLUMN.

In debug I saw the values are held in the variables PL_VISIBLE and IP_VISIBLE.

The method GET_PERS_PROP is protected.

I have checked through the API method get_personalization_manager.

I am able to get the configuration name, but not it properties.

The method get_personalization_manager gives reference variable CL_WDR_ADAPTATION_HANDLER.

In this class CL_WDR_ADAPTATION_HANDLER, the variable M_PERS_SERVICE(type IF_WDR_PERSONALIZATION_SERVICE).

This class CL_WDR_P13N_SERVICE(type IF_WDR_PERSONALIZATION_SERVICE) , has variable MT_P13N_APPLY, which is private,

holds the properties of all the configuration done.

Is there any way to read the component configuration values.

With regards,

Sandeep Akella

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Below is the procedure to get the details

DATA lo_api_view_main TYPE REF TO cl_wdr_view.

DATA  lo_pers_p13n TYPE REF TO CL_WDR_P13N_SERVICE.

lo_api_view_main ?= wd_this->wd_get_api( ).

DATA(lo_dele_comp) = lo_api_view_main->component.

DATA(lo_pers_serv) = lo_dele_comp->pers_service.

  lo_pers_p13n ?= lo_pers_serv.

   DATA(lt_apply_data) =

   lo_pers_p13n->IF_WDR_PERSONALIZATION_SERVICE~GET_APPLYABLE_DATA( ).


The table lt_apply_data will have the details of configuration.

With regards,

Sandeep Akella