on 04-10-2008 7:08 AM
hi,
i have a WD Component.
it has two windows and and every window has a view.
WINDOW_1 : VIEW_1
WINDOW_2 : VIEW_2.
i have a button.
when i click on this button, i want to travel from VIEW_1 to VIEW_2.
please reply how do i do that.
Thanks & Regards,
Ritwik.
hi,
1. Embed VIEW1 in WINDOW1 and VIEW2 in WINDOW2.
2. In VIEW1, select 'Attributes' tab, give WINDOW2 in 'Attribute' column and check 'refto' checkbox and then give IF_WD_WINDOW in 'Associated Type' column.
3. In VIEW1 you have a button and in its action method write following code:
data: l_cmp_api type ref to if_wd_component,
l_window_manager type ref to if_wd_window_manager.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
if wd_this->WINDOW2 is initial.
wd_this->WINDOW2 = l_window_manager->create_window(
window_name = 'WINDOW2'
button_kind = if_wd_window=>co_buttons_yesnocancel
message_type = if_wd_window=>co_msg_type_question ).
endif.
wd_this->WINDOW2->open( ).
Hope this solves.
Regards,
Dinesh
Edited by: Dinesh Babu on Apr 10, 2008 2:13 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want to navigate between views in 1 component,
those views should be in the same window.
The only way you can have 2 windows of the same component on screen
is when one of them is a popup.
you should embed the two views in the same window
grtz,
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.