on 04-29-2008 12:10 PM
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
plz answer its very urgent.......
chythanya
Edited by: chythanya venkat on May 5, 2008 5:28 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
not answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.