cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize the size of the popup

Former Member
0 Kudos

hi experts:

I have a problem as following:

on a UIBB by pressing a button a popup will be generated. and there is button on that popup, when the button is clicked, the second popup will be generated.

the problem is, the second popup is too small.

is any way to customize the size of the second popup window?

thanks for the help.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Hao Ding,

With Popup I assume you are using dialog box?

If yes, in the dialog box attribute (not the UIBB attribute) you can find the parameter weight and height. you can set them in 'em' size or '%'

Best regards,

Steve

Former Member
0 Kudos

Hi steve,

thanks for the reply.

The attribute you mentioned is in the configurtor or the method of the FPM interface?

thanks.

hao

0 Kudos

its in the configurator,

or define it in your code as Katrice mentioned

Best regards,

Steve

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

How you are raising/showing second popup.Can you pls share the code?

Can you check returning value of popup method?

Thanks

KH

Former Member
0 Kudos

Hi Katrice,

the code is as below, an event is defined and will be triggered by click the button, then the dialog will be popup.

   "open popup

    DATA(lo_fpm) = cl_fpm=>get_instance( ).

    lo_fpm->raise_event_by_id( cl_fpm_event=>gc_event_edit  ).

    lo_fpm->open_dialog_box(

      EXPORTING

        iv_dialog_box_id         = 'S0_COMPOSITE_ASSIGN'    " FPM: ID of the dailog window

*        io_event_data            = lo_event_data

    ).

any idea on it?

Former Member
0 Kudos

Hi,

Use this code

DATA(lo_fpm) = cl_fpm=>get_instance( ).
DATA ls_dialog_box_properties TYPE fpm_s_dialog_box_properties.

lo_fpm->raise_event_by_id( cl_fpm_event=>gc_event_edit  ).


ls_dialog_box_properties-height = '50%'. " As per your requirement
ls_dialog_box_properties-width  = '50%'." As per your requirement

lo_fpm->open_dialog_box(
  EXPORTING
    iv_dialog_box_id                  = 'S0_COMPOSITE_ASSIGN'        " FPM: ID of the dailog window
    is_dialog_box_properties =   ls_dialog_box_properties  " Dialog Box Properties
*    io_event_data                     =     " Event data for the dilaog box
*    iv_event_adapts_context   =     " Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
).

Hope this helps you.

Thanks

KH

Former Member
0 Kudos

Hi Katrice,

Thanks very much.

but Steve and you both give the right answer.

So I marked him as right and you as helpful.

but actually your answers are really correct.

Thanks very much.