on 02-04-2011 5:19 AM
Hi Everyone,
Input enabled table can be seen on sap technical.
this table is connected to one ZTABLE in backend. After entering values in the row of input enbled table i want one popup message that so and so record getting updated to ZTABLE whether user enter 1 row or 2 row or 3 row etc it should give popup message to all records.
Thanx in advance.
Hi john,
For pop up first create a view with the pop up message which u want to display,
then create another window and embed this view to new window.
then in onaction of update write coding for calling the popup window.
DATA: CONTEXT_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
LR_POPUP TYPE REF TO IF_WD_WINDOW,
LR_VIEW_CONTROLLER TYPE REF TO IF_WD_VIEW_CONTROLLER,
LR_API_COMP_CONTROLLER TYPE REF TO IF_WD_COMPONENT,
LR_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
LR_API_COMP_CONTROLLER = WD_COMP_CONTROLLER->WD_GET_API( ).
LR_WINDOW_MANAGER = LR_API_COMP_CONTROLLER->GET_WINDOW_MANAGER( ).
LR_POPUP = LR_WINDOW_MANAGER->CREATE_WINDOW(
MODAL = ABAP_TRUE
WINDOW_NAME = 'POPUP_WINDOW' "window name
TITLE = 'TITLE'
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND = IF_WD_WINDOW=>CO_BUTTON_OK
MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_INFORMATION
CLOSE_IN_ANY_CASE = ABAP_TRUE ).
LR_VIEW_CONTROLLER = WD_THIS->WD_GET_API( ).
LR_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
BUTTON = IF_WD_WINDOW=>CO_BUTTON_OK
BUTTON_TEXT = 'Yes'
ACTION_NAME = 'YES'
ACTION_VIEW = LR_VIEW_CONTROLLER ).
LR_POPUP->OPEN( ).
if u want values entered in input field to be displayed in popup, then do context mapping of the node which contains the values to context of popup view.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi jhon,
when talking about popups you need to keep in mind that there must be another window which must have a view and that view is to be called via window everytime you need to have a pop up on screen.
and you can call the window by help of window manager by the help of event handler onclick on enter etc....
thanks and regards,
sahai.s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello John,
This looks very much possible.
But for generating the popup and saving the reconrd in the backend you need to fire an event from the view.
For example you can fire the event on the Oneneter action of the input field UI.
this will fire the eventhandler for the same and then there you can call the window manager and create window and
open it.
Thanks
Sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.