cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro Select option On Attribute Change

former_member619680
Discoverer
0 Kudos
198

Hello Experts,

When am changing any attribute, the method ON_ATTRIBUTE_CHANGE of WD_SELECT_OPTIONS_20, gets triggered. But the method have only 2 parameters WDEVENT and IV_ROW_INDEX.. from this IV_ROW_INDEX how to get the name of the attribute which got changed ?

Regards,

Papps

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Class CL_WDR_GROUPED_SELOPT_20 does have an instance attribute of its select-options attributes (MT_ATTRIBUTES) but unfortunately it's private is there is no accessor method. How are you adding attributes to the select-options? If it's via method ADD_ATTRIBUTES, then what you can do is store the table of attributes in either the componentcontroller or an assistance class, then use the row index you have in ON_ATTRIBUTE_CHANGE to lookup the attribute at that index.