cancel
Showing results for 
Search instead for 
Did you mean: 

reseting default values for dropdown by key

Former Member
0 Kudos

In a standard WebDynpro application, a field type 'Dropdown By Key' is referring to a standard domain.  The dropdown values are coming from domain fixed value set.  There exists 3 values.

In WDDOINIT post exit, we modified reset to only two values out of three from domain. (our intention is we dont want one values to be displayed to user). We used IF_WD_NODE_INFO methof 'set_attribute_value_set' to reset the values.

After doing this still I am getting the third value (which is in domain) in drop down.

Please let me know how to remove this

ls_wd_value-value = lc_be.

  ls_wd_value-text  = lc_between.

  APPEND ls_wd_value TO lt_wd_values.

  CLEAR ls_wd_value.



  ls_wd_value-value = lc_at.

  ls_wd_value-text  = lc_on.

  APPEND ls_wd_value TO lt_wd_values.

  CLEAR ls_wd_value.

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Reddy,

The method 'set_attribute_value_set'  should surely set the drop down list values to an attribute.

Please try to move your code to post exit of method WDDOMODIFYVIEW( ).

It should work as that executes before view rendering.

Regards,

Rama