on 12-19-2014 11:16 AM
Hello Experts,
Can anyone please tell me how to identify the cursor position (Window co-ordinates).
My requirement is, when user click the button i need to show the popup screen near to the button.
And that button is dynamic i can be appear in anywhere.
So i planning to get the screen co-ordinates, while clicking the button and then adjust the pop-up screen based on that.
Please Help
Thanks & Regards,
Ashok
Hi,
Try this WDDOMODIFYVIEW, it will help to set focus in Inputfield
DATA lo_element TYPE REF TO IF_WD_VIEW_ELEMENT.
if first_time eq abap_true
CALL METHOD view->get_element
EXPORTING
id = 'Inputfield'"Your required input field
receiving
element = lo_element.
IF lo_element IS NOT INITIAL.
CALL METHOD view->request_focus_on_view_elem
EXPORTING
view_element = lo_element.
ENDIF.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.