on 11-30-2009 2:36 PM
Hi All,
I have the WINDOW structure:
- TABSTRIP(embeded view)
--VIEW1(view container)
---MAIN(embede view)
-
VCU_USER_DETAILS(view container)
-
VIEW_DETAILS(embedded view)
-
VCE_SCREEN(view container)
I have to display dynamic views in the lastview(VIEW_DETAILS) in view container(VCE_SCREEN').
TRY.
l_api_main->do_dynamic_navigation(
source_window_name = 'ZWINDOW'
source_vusage_name = 'VIEW_DETAILS_USAGE_2'
source_plug_name = source_plug_name
target_component_name = target_component_name
target_view_name = target_view_name
target_plug_name = 'DEFAULT'
target_embedding_position = 'VIEW_DETAILS/VCE_SCREEN'
).
CATCH cx_wd_runtime_repository INTO lr_exception.
DATA s TYPE string.
s = lr_exception->get_text( ).
RAISE EXCEPTION TYPE cx_wdr_rt_exception.
ENDTRY.
The dynamic view is displyed but TABSTRIP disappears.
Thanks, Natalia.
hi ,
have a look at this video presntation for dynamic embedding of views :
or
I wud suggest u to procced like this :
1 In design time , insert all ur views inside ur tansparent container
2 initially set all ur view to invisible , for this :
a) make a context attribute of type WDUI_VISIBILITY
b) bind this attribute wid ur view
c) set the view to invisible by setting the context attribute to '01' using set_attribute method
DATA lo_nd_cn_visiblesuper TYPE REF TO if_wd_context_node.
DATA lo_el_cn_visiblesuper TYPE REF TO if_wd_context_element.
DATA ls_cn_visiblesuper TYPE wd_this->element_cn_visiblesuper.
DATA lv_ca_visible LIKE ls_cn_visiblesuper-ca_visible.
* navigate from <CONTEXT> to <CN_VISIBLESUPER> via lead selection
lo_nd_cn_visiblesuper = wd_context->get_child_node( name = wd_this->wdctx_cn_visiblesuper ).
* get element via lead selection
lo_el_cn_visiblesuper = lo_nd_cn_visiblesuper->get_element( ).
* get single attribute
lo_el_cn_visiblesuper->set_attribute(
EXPORTING
name = `CA_VISIBLE`
value = '01').
// context attribute CA_VISIBLE under node cn_visible set to invisible
3 nw based pn ur condition , whn u wanted to do dynamic embedding , at tht time make ur view visible inside ur appropriate method
this wud do
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you be more clear in your layout... I guess there is a probelm in setting the layout (flow/matrix...)becauue of this tabstrip is getting disappeared,,,
Edited by: Lekha on Nov 30, 2009 8:18 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.