cancel
Showing results for 
Search instead for 
Did you mean: 

popup window height and width is not as expected

former_member224404
Active Participant
0 Kudos

Hi I am using this peace of code to create a popup. But this popup is not created with

the specified height and width. It is created with a default size. Please tell me how to

rectify the problem?

data:

l_api_main type ref to if_wd_view_controller,

l_cmp_api type ref to if_wd_component,

l_window_manager type ref to if_wd_window_manager,

l_popup type ref to if_wd_window.

l_api_main = wd_this->wd_get_api( ).

l_cmp_api = wd_comp_controller->wd_get_api( ).

data: l_i_question type STRING_TABLE,

l_wa_question type string.

l_wa_question = 'Issue no. xxxxxxxxxxx created succcessfully. '.

append l_wa_question to l_i_question.

l_window_manager = l_cmp_api->get_window_manager( ).

l_popup = l_window_manager->create_popup_to_confirm(

text = l_i_question

button_kind = '1'

message_type = '1'

  • close_button =

window_title = 'Information'

window_width = '500'

window_height = '500'

).

l_popup->open( ).

*----


Accepted Solutions (0)

Answers (2)

Answers (2)

former_member224404
Active Participant
0 Kudos

How to read the

<b>SAP note 1003826</b>

SergioFerrari
Active Contributor
0 Kudos

Try the followings:

- search for 1003826 in the Search Box of sdn.sap.com (top-left)

- search for 1003826 in service.sap.com/notes

If it does not work, it means that your userid is not allowed, in that case I can e-mail a copy to your email (if you'll tell me). Only userid belonging to customers/partners are allowed...

Unfortunately the note is written in german only...

Sergio

SergioFerrari
Active Contributor
0 Kudos

Was the support helpful?

former_member224404
Active Participant
0 Kudos

Sorry. I am still not able to view the SAP note. It'll be better if you mail me the

note.Anyway, I mean is it at all possible to show pop up with any size???

SergioFerrari
Active Contributor
0 Kudos

I cannot see your e-mail address in the business card. What's it?

The note states that at the moment windows size is not taken into consideration. It is automatically determined by the fields in the popup. Maybe some support package will support the feature.

So try changing the layout of the fields until you'll get a nice picture...

thomas_szcs
Active Contributor
0 Kudos

Hi Mainak,

Try to use MatrixLayout inside of the Popup. Furthermore, set block-like view elements to vAlign=top (such as containers, a table, etc). Switch off streach* attributes for the MatrixLayout and avoid percentage width values. Try to specify no width at all.

Best regards,

Thomas

former_member224404
Active Participant
0 Kudos

Hi Thomas,

As you can see the code of my 1st post, I am creating the pop up dynamically.

So I din't understand how to assign matrixlayout for this dialog. Please reply

with details.

thomas_szcs
Active Contributor
0 Kudos

Hi Mainak,

Sorry, didn't see that you called PopupToConfirm. Strange that it causes scrollbars. Guess, that's worth an oss ticket....

Best regards,

Thomas

SergioFerrari
Active Contributor
0 Kudos

Hi Mainak,

have a look to Thread:

As you can see there is not yet a way to set the Popup size.

You have to find the good combination of fields and length in order to get a nice UI.

The WDA engine try to set the best size, help it...

Sergio