Skip to Content
0
Former Member
May 29, 2008 at 09:12 AM

Combo box Selected value clearing

300 Views

Hi,

I am using 2 combo box in my application.

2nd combox value depends on 1st combo box.

when i change 1st combo box it's change 2nd combo box content, but it was hold previous 2nd combox selected value.

i want clear 2nd combox selected value on change of 1st com box.

my code :

oActcombo = oFormRA.Items.Item("12").Specific

Dim oSActccombo As SAPbouiCOM.ComboBox

oSActccombo = oFormRA.Items.Item("13").Specific

If Not oActcombo.Selected.Value Is Nothing Then

For j = oSActccombo.ValidValues.Count - 1 To 0 Step -1

oSActccombo.ValidValues.Remove(j, SAPbouiCOM.BoSearchKey.psk_Index)

Next

End If

For j = oSActccombo.ValidValues.Count - 1 To 0 Step -1

oSActccombo.ValidValues.Remove(j, SAPbouiCOM.BoSearchKey.psk_Index)

Next

oSActccombo.Select(Nothing)

regards,

Avijit