on 09-17-2007 4:36 AM
Hi,
I have to submit this task to my senior as tommorow. Its urgent.Is anybody help for this scenerio, how to add components dynamically to tab using tabstrip and in tabstrip, tabs have to be dynamic ( its depend on client requirement).
Thanx in Advance,
Hi pawan,
here it is..
DATA: wd_tabstrip TYPE REF TO cl_wd_tabstrip.
DATA: wd_tab TYPE REF TO cl_wd_tab.
DATA: wd_caption TYPE REF TO cl_wd_caption.
DATA: wd_vc TYPE REF TO cl_wd_view_container_uielement.
get reference to tabstrip
wd_tabstrip ?= i_view->get_element( 'TAB_STRIP' ).
make new caption for tab
CALL METHOD cl_wd_caption=>new_caption
EXPORTING
id = 'CAPTION_3'
text = 'ABCD'
RECEIVING
control = wd_caption.
wd_tab = cl_wd_tab=>new_tab( id = 'TAB_3' ) .
add this caption to tab
wd_tab->set_header( wd_caption ).
add tab to tabstrip
CALL METHOD wd_tabstrip->add_tab( wd_tab )
Reward if useful..
Regards
Anuj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey i already told you there rite.. ?
u just make tab and caption add caption to tab and then add this tab to tabstrip...
i wrote code for u.. now if you want to add more than one than just change the name there of tab TAB_3 ( of course u have to create more local variables)
No if you have tab you can add elements to it thru
wd_tab->set_content( )
Regards
Anuj Goyal
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.