cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix Row Delete

Former Member
0 Kudos
75

if i delete the row in matrix using Menu,row is deleted in matrix but Datasource Dont delete the data.please send the code

advance thanks

Accepted Solutions (1)

Accepted Solutions (1)

Eneveux
Product and Topic Expert
Product and Topic Expert
0 Kudos

Renga,

Are you using the FlushToDataSource method? Please see the SAP Business One SDK Help Center Documentation for more information on using this method.

Eddy

Former Member
0 Kudos

Hi,

Is this a user defined matrix??If so then see the add button. After delete the add button is not turning to update.

Do the code:

oForm.AutoManaged=True

I think it will help you..

Regards

Sanjay

Answers (1)

Answers (1)

swapnil_shewale
Explorer
0 Kudos

oForm = SBO_Application.Forms.ActiveForm;

if (oForm.UniqueID == "CCSH")

{

oForm = Clsmain.SBO_Application.Forms.Item("CCSH");

oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("Item_4").Specific;

oForm.Freeze(true);

oMatrix.FlushToDataSource();

oMatrix.LoadFromDataSourceEx();

ReloadNumbering(oMatrix);

oForm.Freeze(false);

}