on 03-08-2011 4:27 PM
Hello,
I developed WDA with Tree UI element. now on click of childnode (UI elemment TreeItemType), i am opening window. below is the code that i put in method.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'W_JOBCODE'
title = l_string
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_close
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_close
).
l_api = wd_this->wd_get_api( ).
lo_window->set_window_position( position = if_wd_window=>co_center ).
lo_window->set_window_size( width = '900px' height = '900px' ).
lo_window->open( ).
also i embeded view V_JOBCODE inside window W_JOBCODE.
my requirement is that when this window gets opened, my earlier view should be displayed in background. Now when the window is getting opened, the ealier view is not displayed at all. earlier i developed another WDA where i am displaying window on click of URL to Action UI element and there i am able to see the 1st view in background. I checked all things but not sure why for my current WDA, i am not able to see 1st view in background.
Please let me know if anyone has any clue.
Regards,
Chandra
>Now when the window is getting opened, the ealier view is not displayed at all.
Are you sure that your dialog window isn't just so large that it covers the entire parent window? Have you tried resizing the dialog window? With this code, you should always get a dialog window over the parent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas and Baskaran,
There is no mistake in my code. What i observed is that I executed standard WDA "WDR_TEST_POPUPS_RT_00" in sandbox system (SAP ECC 6.0, EhP 3) and there it is opening popup window without parent window in background and when executed the same application in upgraded system (SAP ECC 6.0, EhP4) there it is working perfectly fine.
So I belive this proble is due to different system versions. As i am developing my application in sandbox system, i am not getting the expected results. Now it should work properly in upgraded system.
Thanks all for your help. I am closing the thread now.
Thanks,
Chandra
>What i observed is that I executed standard WDA "WDR_TEST_POPUPS_RT_00" in sandbox system (SAP ECC 6.0, EhP 3) and there it is opening popup window without parent window in background and when executed the same application in upgraded system (SAP ECC 6.0, EhP4) there it is working perfectly fine.
Are you sure it isn't just "greying" out the background? There has never been a release level where the dialog popup completely removes the parent information. It has always placed a mask over the background - turning it slightly darker. However it should still be readable. Changes in the theme over the release levels (and Lightspeed in NetWeaver 7.01) have made changes to the darkness level of this mask. Perhaps the level of darkness of this mask is what you are seeing.
Hi Thomas,
I am 100% sure that it is not just greaying out the screen. this is occuring for all custome developed as well as standard WDA.
it is opening completely new window. I am not sure if this is due to different versions or related to different patch level.
Basis people can tell if there is something they changed in sandbox system.
Thanks,
Chandra
Perhaps you could try using the IS_TOPLEVEL and IS_MODAL methods for your lo_window instance.
Warren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Please let me know if you have any idea on this.
Thanks,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think your popup window size is overlapping the parent window. probably you could remove the size parameters and try to see if it helps.
Correction : i see now that set_size is commented out.
You said that in your previous application , it did work. Was that also from Tree UI.
The coding seems to me okay, the problem can be in the combination of Tree UI and POPUP window.
Edited by: Baskaran Senthivel on Mar 8, 2011 9:04 PM
Hi Chandra,
Use the below code to open a new window in the same component.
data: str type string,
l_window1 type ref to if_wd_window_manager,
l_cmp_api type ref to if_wd_component,
result1 type ref to if_wd_window.
call method cl_wd_utilities=>construct_wd_url
exporting
application_name = 'Component Name'
importing
out_absolute_url = str.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window1 = l_cmp_api->get_window_manager( ).
result1 = l_window1->create_external_window(
url = str ).
result1->open( ).
Regards,
Simi A M
Hi Chandra,
Use the below code to open a new window in the same component.
data: str type string,
l_window1 type ref to if_wd_window_manager,
l_cmp_api type ref to if_wd_component,
result1 type ref to if_wd_window.
call method cl_wd_utilities=>construct_wd_url
exporting
application_name = 'Component Name'
importing
out_absolute_url = str.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window1 = l_cmp_api->get_window_manager( ).
result1 = l_window1->create_external_window(
url = str ).
result1->open( ).
Regards,
Simi A M
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.