Quantcast
Channel: SCN : Popular Discussions - Floorplan Manager for Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 1726

Context-Based Adaption (CBA) Without URL Parameter

$
0
0

Hello,

 

I want to provide different Views for multiple User Groups in a Floorplan OIF Application.

The CBA functionality seemed to fulfill all my requirements.

 

So I changed my application and as long as I provide the role as an URL Parameter everything works perfect.

With the disadvantage that every user was able to change his view by updating the URL parameter.

 

I found some Code to change the ADAPTION Value, which I added to the init method of my FPM_APP_CONTROLLER.

The code change the MS_ADAPTATION_CONTEXT attribute in the adaption manager.

 

DATA:     lo_fpm      TYPE REF TO if_fpm,     lo_event    TYPE REF TO cl_fpm_event,     lo_adap_man TYPE REF TO cl_fpm_adapt_manager.   lo_fpm = cl_fpm_factory=>get_instance( ).   lo_adap_man ?= lo_fpm->mo_adaptation_manager.   CREATE OBJECT lo_event     EXPORTING       iv_event_id       = if_fpm_constants=>gc_event-adapt_context       iv_adapts_context = abap_true.   lo_event->mo_event_data->set_value(     iv_key = 'ROLE'     iv_value = 'TEST_ROLE'   ).   lo_event->mo_event_data->set_value(     iv_key   = if_fpm_constants=>gc_event_param-source_config_id   ).  lo_adap_man->set_context_from_event( io_event = lo_event ).


But it seems like the component is already initialized with the wrong configuration and the change of the adaption context does not raise a reload of the active component adaption.

 

Is there a way to use CBA without URL Parameters or is there another possibility to load different configuration for roles?

 

Best regards

Philipp Steinberg


Viewing all articles
Browse latest Browse all 1726


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>