on 09-06-2017 7:46 AM - last edited on 02-04-2024 2:39 AM by postmig_api_4
Hello everybody,
I have created a user form using SAP Business One Studio for Visual Studio with a Matrix. One of Matrix's cells is a combo box. My issue is that each line's combo box may have different valid values from another line. If I try to remove/add valid values for a specific line, all valid values change.
Here is a code sample for choosing combo box cell at a specific line and trying to add/remove valid values
SAPbouiCOM.ComboBox _ComboBox;
_ComboBox = (SAPbouiCOM.ComboBox)this.Matrix0.Columns.Item("Col_4").Cells.Item(1).Specific;
_ComboBox.ValidValues.Remove("01", "Sample01");
_ComboBox.ValidValues.Add("02", "Sample02");
Kind regards,
Dimitris Theotokatos
Hi Dimitris,
This is not supported on standard matrix combobox column. A workaround is create your own control like the choose from list. Add a EditText on your matrix, and when the user press tab key on this column, open a form with the options.
Hope it helps.
Kind Regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.