Skip to Content
0

How to clean data in matrix column

Mar 23, 2017 at 09:22 AM

92

avatar image
Former Member

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 ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

ANKIT CHAUHAN
Mar 23, 2017 at 12:46 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded