cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out the current screen resolution/width in webdynpro.

Former Member
0 Kudos

HI,

Can any one please tell me how to get the screen resolution in webdynpro?

Regards

-Sandip

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Why not try to use the relative values? Could you please explain the scenario where you need this?

Regards

Ayyapparaj

Former Member
0 Kudos

HI Ayyaparaj,

Can you please let me know how to use the relative values.

Is there any other way to do this?

Regards

-Sandip

sanyev
Active Participant
0 Kudos

Hi Sandeep,

Instead of giving height and width values in pixels you can give percentage values. eg: 20% width for a table means it will take 20% of the total width of the screen.

Regards,

Sanyev

Former Member
0 Kudos

HI Sanyev,

Thank sfor the reply.

But is there any way to know to width of the iview.

Please suggest me .

Regards

-Sandip

Former Member
0 Kudos

Hi,

As you are aware that webdynpro doesnot support Javascript. Its not easy to do this. I would say its not needed if you use %as width instead of pixels. webdynpro rendering will take care of this...

Regards

Ayyapparaj

chander_kararia4
Contributor
0 Kudos

Hi Sandip,

- view size can be set by setting the 'width' of the RootUIElementContainer. By defalut, it will be 100% only. Also, It is always better to use the % coz it does not distort your view with different screen resolutions.

- while creating the iview, you have the property like 'HeightType'. There you can set the value as FIXED, AUTOMATIC & FULL_PAGE. If you wish, you may leave it as it is.

- All you have the properties like 'Fixed Height' etc to set the size values.

Regards

Chander Kararia

# Please close the thread once get the correct answer. Give rewards for answers.

Edited by: Chander Kararia on Feb 20, 2009 9:55 AM

sanyev
Active Participant
0 Kudos

Hi Sandip,

As you know the entire webdynpro page is generated on the server. The server has no idea about the clients screen resolution. The Screen resolutions are not available to the server. So you will have to live with percentage values. The browser will render the UI Elements according to the percentages provided.

If you explain why you need the screen resolution then we can thing of other ways to achieve your requirement.

Regards,

Sanyev

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sandip,

Look at this thread