on 08-09-2008 9:54 AM
Hi all,
I want to execute particular code or event when i select a particular tab. But in standard only one event is available, that execute every time when i select any tab in tabstrip.Plz reply....
Regards,
Ramesh.
hi,
You can use selected tab property of tabstrip, just bind it to attribute
says tab, node selected_tab and read that attribute by code wizard,
suppose you have 3 tab name tab1, tab2, tab3
i.e,
DATA LO_ND_SELECTED_TAB TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_SELECTED_TAB TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_SELECTED_TAB TYPE WD_THIS->ELEMENT_SELECTED_TAB.
DATA LV_TAB LIKE LS_SELECTED_TAB-TAB.
navigate from <CONTEXT> to <SELECTED_TAB> via lead selection
LO_ND_SELECTED_TAB = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_SELECTED_TAB ).
get element via lead selection
LO_EL_SELECTED_TAB = LO_ND_SELECTED_TAB->GET_ELEMENT( ).
get single attribute
LO_EL_SELECTED_TAB->GET_ATTRIBUTE(
EXPORTING NAME = `TAB`
IMPORTING VALUE = LV_TAB ).
case lv_tab.
when 'tab1'.
*do somthing'
when 'tab2'.
*do somthing
when 'tab3'.
*do somthing.
when others.
exit.
endcase.
Y N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.