on 12-04-2007 12:30 PM
I am using a set of coding given in book. Follows :
I am giving the essential only here.....
DATA : LT_TEXT TYPE STRING_TABLE,
LR_COMPONENT_API TYPE REF TO IF_WD_COMPONENT,
LR_POPUP TYPE REF TO IF_WD_POPUP_TO_CONFIRM,
LR_VIEW_CONTROLLER TYPE REF TO IF_WD_VIEW_CONTROLLER.
CALL METHOD CL_WD_POPUP_FACTORY=>POPUP_TO_CONFIRM
EXPORTING
COMPONENT = LR_COMPONENT_API
TEXT = LT_TEXT
WINDOW_TITLE = 'DELETE CONFIRMATION'
RECEIVING
POPUP_TO_CONFIRM = WD_THIS->LR_POPUP.
Now I am getting the error like WD_THIS->LR_POPUP not defined .
i checked with the class CL_WD_POPUP_FACTORY and method POPUP_TO_CONFIRM and LR_POPUP declaration for type compatibility, every this is fine but not working. can anyone help on this ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rainer,
I have tried with your codings , it is not working. I wanted to mention one information here. I dont have any special view for this popup. Instead i am raising this popup when clicking a button (after validating the row was selected or not) .
When i tried with your coding and with window type ref to if_wd_window in the attribute , i got the message like window is not known.
can you please suggest on this ?
Try the following code:
DATA lo_api_componentcontroller TYPE REF TO if_wd_component.
DATA : lr_popup TYPE REF TO if_wd_popup_to_confirm.
DATA l_controller_api TYPE REF TO if_wd_controller.
DATA : l_configuration TYPE wdr_popup_to_confirm.
DATA : l_text_table TYPE string_table,
ls_text_table TYPE string .
*
lo_api_componentcontroller = wd_this->wd_get_api( ).
l_controller_api = wd_this->wd_get_api( ).
ls_text_table = 'Are you sure you want to Delete record?'.
APPEND ls_text_table TO l_text_table .
TRY.
CALL METHOD cl_wd_popup_factory=>popup_to_confirm
EXPORTING
component = lo_api_componentcontroller
text = l_text_table
window_title = 'Confirmation'
configuration = l_configuration
RECEIVING
popup_to_confirm = wd_this->popup.
CATCH cx_wd_runtime_repository .
ENDTRY.
wd_this->popup->subscribe_to_events(
controller = l_controller_api
handler_name = 'CONF_DELETE' ).
Hi ,
if u use wd_this->lr_popup, then declare the lr_popup under the attributes of the corresponding controller or instead of wd_this->lr_popup use only lr_popup.
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.