cancel
Showing results for 
Search instead for 
Did you mean: 

How to highlight the value in ddlb?

Former Member
0 Kudos

Hello Everbody,

I have one ddlb field on my screen. The values are getting populated at runtime. So if there is only one value in list then i want to highlight that value in ddlb field so user don't need to select it from ddlb. Can I highlight that value in ddlb?

Points will be awarded.

Thanks,

Sohil.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi sohil.......

in dropdown list box, when the values are loaded in the internal table that is bound to the dropdown box, check for the index value. if it is 1, then set it as the default value.

---regards,

alex b justin

Former Member
0 Kudos

Hi Alex,

Thanks for your reply.

I am using attribute value set to get set the values for ddlb. So how do i set only one value as default value. Because it will store as table and not allowing me to set value using set_attribute method as i am using set_attribute_value_set method.

Thanks,

Sohil.

Former Member
0 Kudos

hi sohil............

the drop down has an option called selected key. the method is set_selected_key available in cl_wd_dropdown_key. if you have only one value then pass this value to the method.

---regards,

alex b justin

Former Member
0 Kudos

Issue resolved.