cancel
Showing results for 
Search instead for 
Did you mean: 

Navigate between FPM OIF Tabs

Former Member
0 Kudos

Hi All

I want to navigate to a particular tab on clicking a link on first tab.Iam using the FPM OIF configuration.

thanks in advance

chythanya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

plz answer its very urgent.......

chythanya

Edited by: chythanya venkat on May 5, 2008 5:28 AM

Former Member
0 Kudos

Hi chythanya,

here is the solution

in the override event we have to raise a view switch event.

DATA: lo_fpm_parameter TYPE REF TO if_fpm_parameter,

lt_parameter TYPE apb_lpd_t_params,

ls_parameter LIKE LINE OF lt_parameter.

DATA lo_fpm_event TYPE REF TO cl_fpm_event.

data mo_event_id type ref to cl_fpm_event.

data lt_mainview TYPE if_fpm_oif=>ty_t_mainview.

data ls_mainview like line of lt_mainview.

first get the list of variants

CALL METHOD io_oif->get_mainviews

EXPORTING

iv_variant_id = 'VARIANT_1'

IMPORTING

et_mainview = lt_mainview.

thn read the view id and main view id to which u want to navigate

READ TABLE lt_mainview index tabno into ls_mainview.

ls_parameter-key = if_fpm_constants=>gc_event_param-view_id.

loop at lt_mainview into ls_mainview.

ls_parameter-key = ls_mainview-name.

ls_parameter-value = ls_mainview-id.

APPEND ls_parameter TO lt_parameter.

thn using the ids get the fpm parameters and passing those parametrs raise a view switch.

lo_fpm_parameter = cl_fpm_parameter=>create_by_lpparam( lt_parameter ).

CREATE OBJECT lo_fpm_event

EXPORTING

iv_event_id = if_fpm_constants=>gc_event-view_switch

iv_is_validating = abap_false

io_event_data = lo_fpm_parameter.

thn catch the event in process event

DATA: lo_param TYPE REF TO if_fpm_parameter,

lv_process_id TYPE rcf_sel_proc_item_pl.

lo_param = io_event->mo_event_data.

IF io_event->mv_event_id = 'FPM_VIEW_SWITCH'.

CALL METHOD lo_param->get_value

EXPORTING

iv_key = 'OIF_VIEW_ID'

IMPORTING

ev_value = lv_process_id.

regards,

Venkat

Answers (2)

Answers (2)

Former Member
0 Kudos

not answered

Former Member
0 Kudos

Hi bro ,

my  requirement  also same i am tried above but  not getting if you done this can you please send me the link step wise i am new to fpm please its urgent. tnx for advance

Former Member
0 Kudos

Hi,

You can have a context attribute 'Selected_Tab' that will hold the name of the currently selected tab. When you click on a link, in the onClick event handler, set the selected tab attribute to which ever tab you want to navigate to. In the modifyview method, get an instance of your tabstrip using view->get_element( ) and call the set_selected_tab method to set the tab as selected.

Hope this helps.

Regards,

Nithya

Former Member
0 Kudos

Hi Nithya

thanks for a Quick reply. But iam talking about FPM Tabs in FPM OIF scenario. i think u are talking about tabstrips in webdynpro. i want to navigate from one TAB(Mainview) to another TAB(Mainview).

regards

chythanya