Showing results for 
Search instead for 
Did you mean: 

combobox (in matrix) not selectable?!

Former Member
0 Kudos

hello all.

i'd like to ask something.

see, i am populating a combobox within a column within a matrix.

all the values are there alright,

      • but i can't seem to select any entry ***

more details:

i DO see the drop down with all the values,

but whenever i select (programmicaly or using the mouse),

nothing is shown in the combobox,

and indeed the combobox.SELECTED is nothing!


need i attach/bind it to datasource?

i don't want to do that.

thank you for your time.


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Itay,

You are right, you need to bind the combobox to a datasource. I think binding to userdatasource is very useful and it's the mechanism of SAP Business One application. So I suggest you to do that.

Here is a sample.

Set oColumn = oColumns.Add("customer", it_COMBO_BOX)
    oColumn.TitleObject.Caption = "customer"
    oColumn.Width = 127
    oColumn.Editable = True
    oForm.DataSources.UserDataSources.Add "Customer", dt_LONG_TEXT, 30
    oColumn.DataBind.SetBound True, "OCRD", "CardType"
    Set oUserDataSource = oForm.DataSources.UserDataSources.Item("Customer")

Hope it helps.

Best Regards,

Nick He

Answers (0)