cancel
Showing results for 
Search instead for 
Did you mean: 

when ever click a link to action button in main view it will go to next main view appropriate tab?

Former Member
0 Kudos


Hi Guys,

I have developed a one fpm application based on previously  devloped  here  i have one issue in navigation.i have careted almost 10 webdynpro components individual each component have 1 or 2 views ok then  creaed one fpm_ oif_component  and configuration using this , here  iam put the all webdynpro components into one fpm component ok . here first componet have login screen  that is in initial screen and rmaining in main views .

in first main view  having the trays each tray have some link to actions when ever click link to action it will wnt to next  appropriate tab could you please give me the way  how to process

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member469314
Participant
0 Kudos

Just fire a FPM_VIEW_SWITCH event with the desired tab that should be activated as event parameter. That's all you have to do!

  DATA:

          lo_event_params   TYPE REF TO if_fpm_parameter,

          lr_event          TYPE REF TO cl_fpm_event,

          lo_fpm            TYPE REF TO if_fpm.

      CREATE OBJECT lo_event_params TYPE cl_fpm_parameter.

      lo_event_params->set_value(

        EXPORTING

          iv_key = if_fpm_constants=>gc_event_param-view_id

          iv_value = 'NAME_OF_MAINVIEW' ).

      lo_event_params->set_value(

        EXPORTING

          iv_key = if_fpm_constants=>gc_event_param-subview_id

          iv_value = 'NAME_OF_SUBVIEW' ).

      CREATE OBJECT lr_event

        EXPORTING

          iv_event_id   = cl_fpm_event=>gc_event_view_switch

          io_event_data = lo_event_params.

      lo_fpm = cl_fpm_factory=>get_instance( ).

      lo_fpm->raise_event( lr_event ).