2009 Mar 17 6:07 AM
Hi,
I have an editable ALV, with two of the columns being drop down by keys. On selecting a value from one column, I need the options of the second column drop down to change. This is what I am doing now:
1. Activate the ON_CELL_ACTION event, in WDDOMODIFYVIEW
2. Catch the ON_CELL_ACTION event, inside which I populate the attribute value set accordingly, and set it by using the set_attribute_value_set option for if_wd_context_node_info. Although my list of values set is right, the 'set_attribute_value_set' does not seem to set the list of values to the attribute.
Is there something more I should be doing?
Thanks!
Regards,
Shalini.
Hi,
I have an editable ALV, with two of the columns being drop down by keys. On selecting a value from one column, I need the options of the second column drop down to change. This is what I am doing now:
1. Activate the ON_CELL_ACTION event, in WDDOMODIFYVIEW
2. Catch the ON_CELL_ACTION event, inside which I populate the attribute value set accordingly, and set it by using the set_attribute_value_set option for if_wd_context_node_info. Although my list of values set is right, the 'set_attribute_value_set' does not seem to set the list of values to the attribute.
Is there something more I should be doing?
Thanks!
Regards,
Shalini.
2009 Mar 17 10:11 AM
Have you used REFRESH_TABLE_DISPLAY?
FORM ALV_DISPLAY .
IF GRID1 IS INITIAL.
CREATE OBJECT CUSTOM_CONTAINER1
EXPORTING
CONTAINER_NAME = 'HEADER'.
CREATE OBJECT GRID1
EXPORTING I_PARENT = CUSTOM_CONTAINER1.
CREATE OBJECT EVENT_RECEIVER.
SET HANDLER : EVENT_RECEIVER->HANDLE_DATA_CHANGED FOR GRID1,
EVENT_RECEIVER->ON_DOUBLE_CLICK FOR GRID1.
* CALL METHOD GRID1->REGISTER_EDIT_EVENT
* EXPORTING
* I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = LS_LAYOUT
* IT_TOOLBAR_EXCLUDING = PT_EXCLUDE[]
CHANGING
IT_FIELDCATALOG = LT_FIELDCAT
IT_OUTTAB = IT_SALSUM_FI.
ELSE.
CALL METHOD GRID1->REFRESH_TABLE_DISPLAY
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
EXCEPTIONS
FINISHED = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Edited by: ROHIT SHARMA on Mar 17, 2009 11:12 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |