Get screen resolution in WebDynpro ABAP
Hi,
is there is a possibility to get the current screen resolution of the frontend in a Web Dynpro ABAP application?
I found the following class and method: cl_gui_frontend_services => registry_get_value.
I found the Screen Resolution in WIN XP at:
SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000\.....
As expected, this method only works in the SAP GUI and not in Internet Explorer. In IE it triggers the exception CNTL_ERROR.
Is there another solution?
Regards.
I guess the root question is why do you need the screen resolution? Web Dynpro isn't design to be screen resolution specific. That is why it is flow layout based and not pixel coordinate based. Generally the use of % based width/height parameters will allow the content to adjust to the screen size. Even if you had the screen size, what you reall need is the browser window size. This can change even the user resizes the browser. Even if you could get this value via ACFExecute or something like that, you wouldn't have an event to let you know when the browser was resized.
Similar Messages
-
Screen resolution in webdynpro
Hi everyone;
I create a webdynpro with 2 transparent container in rootuielementcontainer.
In rootuielementcontainer I validate stretchedHorizontally's flag and stretchedVertically's flag; so when user explode the browser,the window is adapted to the resolution choosen. Now in the second transparent container I display an existing pdf; in interactive form element I set height to 100% and width to 100% but the pdf didn't adapted to the screen resolution.
How can I adapte the pdf layout to the screen resolution dinamically ?
Thanks a lotHi,
What is the layout for 2nd transparant container. Also the layouts set for others.
Regards
Lekha. -
How to Get File type in webdynpro abap
Hi,
I am using File Upload UI element of webdynpro ABAP to upload data into SAP table. I want that the file type should only be tab delimited. How to get the file type to validate the same.
Regards,
Dhiraj Mehtahi,
just follow the link :
http://help.sap.com/saphelp_40b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
Hope this will help u!!!
thanks & regards,
punit raval. -
Enable screen field in WebDynpro ABAP
i,
I have WebDynpro ABAP screen where I have defined a read-only input field. Now I want to make this field input enable based on certain logic during run time.
CALL METHOD lo_el->set_attribute_property
EXPORTING
attribute_name = 'SP'
property = lo_el->e_property-read_only
value = ''.
I have written following code in method "WDDOMODIFYVIEW",
but somehow this is not working. Any Idea what is going wrong.
Regards,,,
Sunil JoyousManas,
You said,
You need to bind the read only poperty of input field with an attribute of type WDY_BOOLEAN, then based on your logic you can set the bound attribute to true or false in any method.
how do I do this ? Now I have done following
DATA : lv_wdy_boolean TYPE wdy_boolean.
lv_wdy_boolean = ''.
CALL METHOD lo_el->set_attribute_property
EXPORTING
attribute_name = 'SP'
property = lo_el_credit_note->e_property-read_only
value = lv_wdy_boolean.
but still it is not working. -
How to get screen resolution settings
How do u get the present screen resolution from code?
thanksThe AWT Toolkit class has got a method called getScreenSize(), it returns an instance of Dimension.
I'm not sure what to do when you have multiple screens though; maybe the methods of the classes GraphicsEnvironment and GraphicsDevice can be used. -
Get Screen Resolution from Custom Reports
I was wondering if it was possible to get the screen resolution of a workstation from the Custom Reports in ZCC ??
SebOriginally Posted by sebastien
I was wondering if it was possible to get the screen resolution of a workstation from the Custom Reports in ZCC ??
Seb
Hi Seb
I'm out of the network so I can't double check this but I don't think Zen captures that information. If my memory serves it captures some PNP info from the screen like the manufacturer and product ID's.
It looks like you could pull the data from the registry.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardwa re Profiles\UnitedVideo\CONTROL\VIDEO\{EE167610-A476-4BE2-9CD6-C24D55DFF3B9}\0000
I think the challenge will be that this key will vary from system to system. And if you have multiple monitor setups you would want to collect both sets of data.
One way you could do this would be to deploy a bundle containing a small easily available executable called DumpEDID.exe (google it) This little command line utility does exactly what it says on the box. It reads the EDID data from the display and dumps the data back to the command shell.
Then all you need to do is to run a script to retrieve this output and load it into a custom made registry key. From there you can then pull the registry data into Zen and even create an ADF field for the info.
Hope this helps -
How can I display in text the screen resolution of the user
watching the swf?Do you really want the screen resolution or the width and
height of the
browser window?
If it is the latter, have a look here:
http://morethanseven.net/projects/fluidflash
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
<--check this
*Must Read*
http://www.smithmediafusion.com/blog
"pcst88" <[email protected]> wrote in
message
news:ernm5r$jls$[email protected]..
> How can I display in text the screen resolution of the
user watching the
> swf? -
Getting screen resolutions & position/offsets
Hi,
I'm trying to read the resolutions & positions of currently connected screen. Eg, if I had 2 screens connected, I may get information like...
Screen 1, 1920*1080, x:0, y:0
Screen 2, 1280*1024, x:1920, y:0
From my own bumbling research, I think /Library/Preferences/com.apple.windowserver.plist may have what I'm looking for, but it seems to contain information about more screens than those connected, and I can't see a way to tell which is which.
Ideally I'd like to get this information with Python, but interested in hearing any solutions.
I'm from a Windows background, so if I'm coming at things the wrong way that might be why
Many thanks!Hi,
I'm trying to read the resolutions & positions of currently connected screen. Eg, if I had 2 screens connected, I may get information like...
Screen 1, 1920*1080, x:0, y:0
Screen 2, 1280*1024, x:1920, y:0
From my own bumbling research, I think /Library/Preferences/com.apple.windowserver.plist may have what I'm looking for, but it seems to contain information about more screens than those connected, and I can't see a way to tell which is which.
Ideally I'd like to get this information with Python, but interested in hearing any solutions.
I'm from a Windows background, so if I'm coming at things the wrong way that might be why
Many thanks! -
How to find out the current screen resolution/width in webdynpro.
HI,
Can any one please tell me how to get the screen resolution in webdynpro?
Regards
-SandipHi 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 -
Screen resolution gone poor in Mac Mini
I cannot get optimum resolution on my Mac Mini. Just a day before I disconnected all the cords, including power and HDMI, just to move my Mac Mini (OS X 10.9.4) to a different room, and connected it back as it was. (Really speaking only two cords) and now I can't seem to get my screen resolution back.
The earlier screen resolution was there since I connected my Mac Mini for the first time to the LCD TV screen and I never had to deal with any resolution settings, but I am clueless now why I can't SET and SAVE optimum screen resolution settings. Here is screen capture for my System Preferences -> Display settings
I also have DISPLAYMENU app which gets me to a better screen resolution now, but it seems I do not have any option to save that configuration so every time I restart my Mac Mini, the display will go back to its weird screen resolution state and I have to start from all over again to get it back in a good viewable screen resolution with the help of DISPLAYMENU. I have contacted Apple Support and have done resetting SMC and PRAM and entering in to SAFE-BOOT as well; nothing seems to help here. Any other suggestions? (I cannot accept that it is LCD TV problem because 1. Earlier it was working absolutely FINE. 2. I have my xbox connected to same LCD TV and I am getting screen resolution what I was getting earlier.)Backlight
Direct LED
Refresh Rate
60Hz
Resolution
720p
Dynamic Contrast Ratio
100,000:1
Display Aspect Ratio
16:9
Display Resolution
1366x768
Colors:
16.7 million
This is what I found on manufacturer's website for the TV model I have. I do not remember exactly what was the resolution earlier but it was definitely not 720 (in earlier image). All I know is I can observe the difference in the screen resolution.
Also I have tried all sort of setting and resettings; (I was on chat with Apple support over an about 45 mins and on phone call around the same time.)
Also, I cannot accept that I might be using wrong connectors/adapters/TV not compatible to the resolution I am trying to get to; because it was working absolutely fine just few days before and as mentioned I have connected my xbox to the same TV, which works absolutely fine. -
Portal Theme in Webdynpro ABAP
Hi Experts,
I want my portal theme to get applied to the webdynpro abap application.But WDA application is not adapting the portal theme.
This is the version of the theme's style sheet in portal=7.1.3.0.1;ur=7.1.3.0.1;7.1.3.0.0(Major version.minor version.SP.patch.generation run)
The version of Webdynpro abap theme is 7.11.3.2.0.
Portal Version is NetWeaver 7.0 Ehp1
and SAP Basis Version is 701 and level 5.
Is there version incompatibility?
How can I solve this.
Thanks and Regards
M.Karthiheyan.Hi M.Karthiheyan,
Please follow below steps to apply Portal theme in Webdynpro ABAP.
1. Go to transaction SE80 and navigate to the MIME Repository
2. Create a folder in the MIME repository that will contain all the custom theme files. Make sure the folder is created in following directory /SAP/PUBLIC/BC/UR/<theme_name>
3. Go to the Repository browser in SE80 and select u201CProgramsu201D from the drop down list.
4. Enter BSP_UPDATE_MIMEREPOS in the input field and hit Enter
5. Execute the program and enter the MIME repository path to the folder that is to contain the custom theme. Our custom theme is located in MIME path /SAP/PUBLIC/BC/UR/<Theme Name>
6. Execute the program and select root folder that contains all the custom theme files. The custom theme can be directly pulled down from the file server on portal or can be exported from Portal Theme Editor and imported into Eclipse Theme Editor in order to generate the necessary css files. We only need the root folder that contains the actual css files and images. The upload process might take a while depending on the size.
7. Once the upload is complete, go back to the MIME Repository and check if the files were uploaded.
8. To specify a theme at the global level you can execute WebDynpro component WD_GLOBAL_SETTING. Maintain parameter u2018Stylesheet URIu2019 with the MIME Repository path of the custom theme (i.e. /SAP/PUBLIC/BC/UR/<custom_theme>).
9. Enter the path under "Stylesheet URI:" and select the check box which says "Force use of External Stylesheet".
Thanks.
Sushil S Aher -
Testing if screen resolution meet requirements
Hi,
By default our computers are set to 1024 X 768. In case a software would need 1280X1024, I would like testing if the actual screen resolution is effectively lower than the one need (1280X1024) and adjust it. If it is higher (like 1920X1080) then making no
adjustment.
What is the best way to compare and adjust screen resolution?
Thanks,
FrançoisHi François,
If you want to list the screen resolution, please refer to the script below:
Get-WmiObject -Class Win32_DesktopMonitor | Select-Object ScreenWidth,ScreenHeight
In a multi monitor environment you can get the info for all monitors with:
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::AllScreens
Refer to:
Get Screen resolution using WMI/powershell in Windows 7
If you want to change the screen resolution via powershell, please refer to the script in this article, you just need to provide the width and height:
Set-ScreenResolution
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Authorization objects in webdynpro ABAP
Hello.
How I do to get authorization objects in Webdynpro ABAP.
Thanks.
Luis A.>
LUIS TAFUR wrote:
> Hello Abhi.
>
> No, I've already finished the "Z" development inside of it, I use different standard functions. Now I need a transaction, example su24 or another transactions for to inspect the authorization objects in my program. I don't like create a new object for my development.
>
> Thanks. Luis A.
If I understand you correctly you are saying that you called some standard SAP functionality from within your custom Web Dynpro Applicaiton and now you would like to know what authorization objects will be triggered when you run you WDA. Is that correct?
You could use SU24 similar to way that you search for Tcode assignment to authorizations. Choose External Service as your Type of Application. Then choose WEBDYNPRO as your type of External Service. Then supply the application name of the WDA application. However this doesn't sound like it will give you exactly what you want - searching for all auth checks within an application. Maybe I'm not fully understanding the correlation you tried to make to SU24. -
Article: Screen Conversion in WebDynpro for ABAP
Hi all,
I want to share with you my first article that i posted in SDN. Looking for your valuable comments...
Click the below link to read by article. Thanks.
<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/screen%20conversion%20in%20web%20dynpro%20abap.pdf">Screen Conversion in WebDynpro for ABAP</a>
Some of the links in the article are not accessable from the article. The links are given below.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712">Getting Started with Web Dynpro for ABAP</a>
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/30/f2156a26fb4b4d86c5b0ce9f86bfb3/content.htm">Wizard</a>
[url=http://help.sap.com/saphelp_erp2005/helpdata/en/73/e5e6418b7eca17e10000000a155106/content.htm]Restrictions[/url]HI Hema,
What i understood from u r query is u want 2 refrsh all ui elements data.
u can read data from the respective nodes and clear those data.
Example: I want to delete contents of an ui element on the screen( FULL_NAME ).
create a buuton REFRESH on the screen and assicn a action to that button.u wil get a method with that action.write this follwing code in tat method.
method ONACTIONREFRESH_UI .
DATA lo_nd_processedby TYPE REF TO if_wd_context_node.
DATA lo_el_processedby TYPE REF TO if_wd_context_element.
DATA ls_processedby TYPE wd_this->element_processedby.
DATA lv_full_name LIKE ls_processedby-full_name.
navigate from <CONTEXT> to <PROCESSEDBY> via lead selection
lo_nd_processedby = wd_context->get_child_node( name = wd_this->wdctx_processedby ).
get element via lead selection
lo_el_processedby = lo_nd_processedby->get_element( ).
get single attribute
lo_el_processedby->get_attribute(
EXPORTING
name = `FULL_NAME`
IMPORTING
value = lv_full_name ).
clear lv_full_name.
CALL METHOD lo_el_processedby->set_attribute
EXPORTING
value = lv_full_name
name = `FULL_NAME`
endmethod.
reward if it is use ful -
Webdynpro ABAP application on MSS Overview screen
Hi Guru's,
We are having a customized Overview screen in MSS which is all Webdynpro Java application.I am trying to add Webdynpro ABAP custom application link on the overview page.I created a IVEW ,then PAGE, assigned to Workset and then to role .
Copied the PCD location and assigned in the Resources of Homepage framework.
When I do preview it is fine but when I run it through Overview..I am getting 404 page error.
Again its webdynpro ABAP application in the Overview page..What are the steps for it ..I created Area,Subarea ,Services and assigned Resources which has the PCD location with ROLES:// ...
Also in Services I mentioned it as WEBDYNPRO ABAP application.
Please suggest me ay steps I may be missing.
Thanks,
STAlso I was comparing the links through HTTP WATCH that was trying to read:
The first one is from direct page assignment under ROLE in Portal:
http://DEV SYSTEM/sap/bc/webdynpro/SAP/zhr_associate_form/;sap-ext-sid=bNrjr3FDhSA9HxracqUNhQ9H0Rpx1m12qVv5aAWcHbEw
The Second one is referred under overview from Homepage Framework:
http://DEV SYSTEM/sap/bc/webdynpro/sap.com/pcui_gp~xssutils/XssMenuArea/;sap-ext-sid=bNrjr3FDhSA9HxracqUNhQE37DBLWEEK_COBmuSIHeeA
I am for sure missing something ..can you please suggest.
Thanks,
ST
Maybe you are looking for
-
Getting error while importing agreements in b2b console
Hi , i have downloaded the b2b samples from the below location. https://java.net/projects/oraclesoasuite11g/pages/B2B under artifacts section b2b agreements present.I am trying to import that agreement ,but getting below error. Error -: B2B-52310
-
How to wipe the hard drive on a screen-dead Powerbook G3?
The display on my 1998 G3 Wallstreet Powerbook recently went black and the computer made a noise that I understand is called The Chimes of Death, although the hard drive still makes whirring noises. My local and trustworthy Apple repair service assur
-
Should I add Yosemite on a slow 2009 Imac
Hi Everyone, I am debating loading the new OS on my old little Imac. It is running slow and I just bought more Ram that should bump it up 8GB? If I have room it maybe 12GB. I get the spinning wheel and web pages take a long time to load along with ap
-
I have a decimal string "122339994" which i am trying to convert to float using Float.parseFloat. This results in incorrect value of 1.22339992E8. I thought for floats precsision comes into effect after decimal places. public static void main(String[
-
URGENT:steps for registering a form in apps front end
hi, i have created a form in form builder 10g(10.1.2)and i compiled that in my machine as well as in server.Now i want to register my form in apps front end and customize it.Can anyone explain how to do that .It would be more helpful with snapshots.