on 03-13-2018 7:35 AM
Good morning,
In B1 and in the Sales Order form, I would like sort the item codes in the matrix before the users adds the SO. I would like to get the same behaviuor that when we do a double click in the Item Code header column.
I tried this code but it doesn't work because it also orders the order the "empty line"
Dim Matrix AsMatrix = CType(form.Items.Item("38").Specific, Matrix)
' Get Column object
Dim Column AsColumn = Matrix.Columns.Item("1")
' Ascending sort order
Column.TitleObject.Sort(SAPbouiCOM.BoGridSortType.gst_Ascending)
Example
Line 1 item A005
Line 2 item A002
Line 3 item empty (ready to insert a new item)
When I run this code the matrix becomes
Line 1 item empty
Line 2 item A002
Line 3 Item A005
Any help will be appreciated.
Best regards,
Augusto Silva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
7 | |
6 | |
4 | |
3 | |
3 | |
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.