Skip to Content
avatar image
Former Member

How to clean data in matrix column

Is there a way to clean data in matrix column by some index or there is some method who clean all values in column by column name ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 23, 2017 at 12:46 PM

    Hi,

    It depends how you would like to do it: Here are few options:

    SAPbouiCOM.EditText oEditName = (SAPbouiCOM.EditText)oMatrix.Columns.Item("colItemName").Cells.Item(RowNumber).Specific;
    oEditName.Value = "";
    

    Or you can use as follows:

    this.oDBDataSource = (DBDataSource)oForm.DataSources.DBDataSources.Add("@DETAILTABLENAME");
    oForm.DataSources.DBDataSources.Item("@DETAILTABLENAME").InsertRecord(oDBDataSource1.Size);
    this.oDBDataSource.SetValue("U_ItemName", oDBDataSource1.Size - 1, Convert.ToString(""));
    

    You need to change the sample codes as per your need.

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded