on 05-29-2012 12:17 PM
Hi All,
I have a requirement to trigger a popup window with custom fields in standard webdynpro component, and cursor should wait there until user take an action on popup window and execute rest of the code in the method.
Thanks & Regards
Murali Papana.
Hi Murali...
you have to split your method (lets call m_old) into two parts (lets call m_1 and m_2).
I assume your m_old has following structure:
- some code
- popup call
- "rest of the method"
Split into m_1 and m_2 as follows:
Method m_1:
- some code
- popup call
Method m_2 executes the "rest of the method".
What you need to do to call m_2 is to trigger an event when popup is closed and implement m_2 as the eventhandler of this event.
BR,
Ismail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The below code needs to be written in WDDOMODIFYVIEW and it will set the cusor focus on the element.
DATA lo_element TYPE REF TO IF_WD_VIEW_ELEMENT.
if first_time eq abap_true.* get element via lead selection
CALL METHOD view->get_element
EXPORTING
id = 'I1'
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 |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.