Hi,
When I open the Sales Order form I would like to add an Unbound Checkbox column. The purpose of this column is to allow a user to select rows from the sales order grid. I would rather not bind this to a UDF field as this is not really necessary.
So far I have managed to add the column, but this has an issue when opening an existing order, the oMatrix.Clear(); clears all line items
Can I add an unbound checkbox column to the sales order matrix grid?.
Can I then use this unbound column for selecting one or more line items to perform a task ?
The below code adds the checkbox colum and clears the grid.
SAPbouiCOM.Matrix oMatrix; oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("38").Specific; SAPbouiCOM.Column oColumn; oMatrix.Clear(); oMatrix.Columns.Add("chkShpDte", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX); oColumn = oMatrix.Columns.Item("chkShpDte"); oColumn.TitleObject.Caption = "Ship Sel"; oColumn.DataBind.SetBound(false, "", "U_ShipDate"); oMatrix.AddRow(1, oMatrix.RowCount);