cancel
Showing results for 
Search instead for 
Did you mean: 

Reduce window size by Create_popup_to_confirm

Former Member
0 Kudos

Hi Gurus,

I need to generate a popup of reduced size in Webdynpro for ABAP. I have Netweaver 7.0.

When I use the method Create_popup_to_confirm it generates a popup of default size even though I pass the height and width parameters. I need to reduce the size. Please tell me what are the options to do so in Netweaver 7.0

Thanks

Roshan

Accepted Solutions (0)

Answers (3)

Answers (3)

Madhu2004
Active Contributor
0 Kudos

HI,

Please refer the below thread Thomas has answered the similar question

[Confirm Popup in Web Dynpro, window size |;

Regards,

Madhu

Former Member
0 Kudos

Hi Chinnaya,

I have tried that option too but still its now changing the default size of the window.

Plz help.

Roshan

Former Member
0 Kudos

Hello Sanjay,

Try setting pixel values to the window as follows,

lo_window->set_window_size(                         
              width = '400px' height = '2500px' ) .

This should work.

Regards,

Tejaswini.

Former Member
0 Kudos

HI Sanjai ,

The code i posted in the previous thread is working fine for me , i tested the popup size by varring the % value also ,

ok in my system i found some of the units let me share that too with you ,

set_window_size( width = '300' height = '200' ).

set_window_size( width = '500px' height = '150px' ).

set_window_size(width = '30ex' height = '30ex' )

set_window_size( width = '25em' height = '10em' ).

set_window_size( width = '100cx' height = '20cx' ).

try all this possiblities

Regards

Chinnaiya P

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

What release level is your system compaired to the original poster? As stated in the linked forum posting earlier, this resizing was supported yet in 7.0 - but it has been confirmed to work in 7.01 (later SP levels) and 7.02.

Former Member
0 Kudos

Hi sanjay ,

use the method set windoe size after you called the method create popup to confirm , give your size value in '%'

data : lv_text type string_table .
wd_comp_controller->popup_01 = lo_window_manager->CREATE_POPUP_TO_CONFIRM(
    TEXT                 = lv_text
    BUTTON_KIND          = ls_popup_properties-button_kind
*    MESSAGE_TYPE         =
*    CLOSE_BUTTON         = ABAP_TRUE
    WINDOW_TITLE         = 'Resized window '
*    WINDOW_LEFT_POSITION =
*    WINDOW_TOP_POSITION  =
*    WINDOW_POSITION      =
*    WINDOW_WIDTH         =
*    WINDOW_HEIGHT        =
*    DEFAULT_BUTTON       =
   ) .

wd_comp_controller->popup_01->SET_WINDOW_SIZE                           " popup_01 type if_wd_window 
(  
    WIDTH  = '75%'
    HEIGHT = '75%'                   
    ).

let me know if you face any problem in this

Regards

chinnaiya .P