on 06-01-2009 6:25 AM
Hi Friends,
Usually when we display a window, it gets displayed in the left, right or centre of the browser according to our settings...
but my requirement is i need a window with some space in left and right end, like our sdn website...
how to acheive this.. Please help me..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please use method set_window_position of interface if_wd_window to set the position. This method has parameter to set the left, top and position of the window.
RR_WINDOW Type Ref To IF_WD_WINDOW
IV_POS_LEFT TYPE I DEFAULT 200 window's left position
IV_POS_TOP TYPE I DEFAULT 200 window's top position
rr_window = ir_window_manager->create_external_window(
url = iv_url_name
is_resizable = abap_true
has_scrollbars = abap_true
has_statusbar = abap_true ).
"set the window property
rr_window->set_window_position(
left = iv_pos_left
top = iv_pos_top ).
Thanks,
Rahul
Edited by: Rahul Yadav on Jun 1, 2009 11:01 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have to get the reference of window manager before calling method create_external_window.
You can get it as follows.
DATA ir_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA rr_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
ir_window_manager = lo_api_component->get_window_manager( ).
I hope it helps.
Regards,
Rohit
Hi,
I am assuming that your window is popup.
You have to write the code at the place where you are creating your window if_wd_window using if_wd_window_manager. Once you have the reference of the window, use set_window_position method to set the window position before opening the window.
Thanks,
Rahul
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.