cancel
Showing results for 
Search instead for 
Did you mean: 

How to set single value in combo box

Former Member
0 Kudos

hi all,

I need to set single value in combo box. For example Below ship to combo box show only one value

Normal combo box show two value

1 - yes

2 - no

how to i change in my sdk form as per below

Thanks & Regards

B.Lakshmi narayanan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi..

Combobox values are loading according to our wise.

if you need  one ok  else more than one..

in user defined field set default value..

else

at the form loading..

ocombo.validvalues.add("")

here add only one value....

Former Member
0 Kudos

Thanks For your replies.

now combobox validvalue have tow parameter

oComboBox.ValidValues.Add(Value,Description)

I want only one.

oComboBox.ValidValues.Add(Value)

But when i remove  Description on add time its show error.

Thanks & Regards

B.Lakshmi narayanan

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks For Valuable Replies. i found the answer

   Dim oCombobox0 As SAPbouiCOM.ComboBox

            oCombobox0 = FrmInvoice.Items.Item("8").Specific

            oCombobox0.ExpandType = SAPbouiCOM.BoExpandType.et_ValueOnly

Thanks & Regards

B.Lakshmi narayanan