on 10-09-2017 8:23 PM
We're making a Persona with a vertical layout that causes some screens to be pretty tall.
We have NEXT and PREVIOUS script buttons at the bottom of the screen... these buttons primarily change the content that appears in the main window. If possible, we would also like to have the window scroll all of the way to the top when these buttons are pressed.
Typically, you can use javascript to control window scroll, but the methods we've tried have had no effect. Normally, either of these two methods would work:
window.scrollTo(0,0);
window.scrollTop = 0;
When those didn't work, we tried targeting the window itself by ID...
session.findById("wnd[0]").scrollTop = 0;
... and then tested targeting the "user area" instead of the window:
session.findById("wnd[0]/usr").scrollTop = 0;
None of the above methods caused the window to scroll.
Is it possible to control window scroll with scripting? Thanks!
----------------------------------------------------------------------------------
We're currently running:
Personas Version: 3.05.20170727154054
Kernel 745_REL Patch 419
There is no way to do this from a Personas script as far as I'm aware.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I use the following commands within SAP GUI Scripting:
session.findById("wnd[0]").sendVKey 80 'Ctrl + PageUp
session.findById("wnd[0]").sendVKey 81 'PageUp
session.findById("wnd[0]").sendVKey 82 'PageDown
session.findById("wnd[0]").sendVKey 82 'Ctrl + PageDown
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.