cancel
Showing results for 
Search instead for 
Did you mean: 

Fill DataBase with Matrix Rows

Former Member
0 Kudos

I want to put in my database some informations from my Matrix.

I´m use the next coding. I don´t recieve nothing message with errors, but nothing information was save in my database.

Regards,

Juliano

string ServGroup = null;

string TpGroup = null;

Matrix oMatrix = (Matrix)oForm.Items.Item(matrix).Specific;

try

{

ServGroup = System.Convert.ToString(oDataTable.GetValue(1, 0));

TpGroup = ((ComboBox)(oMatrix.Columns.Item("U_ServType").Cells.Item(_eventoItem.Row).Specific)).Selected.Value;

}

catch (Exception ex)

{

company.Application.StatusBar.SetText("Erro " + ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);

return false;

}

oMatrix.GetLineData(_eventoItem.Row);

oForm.DataSources.DBDataSources.Item(source).Offset = _eventoItem.Row - 1;

oForm.DataSources.DBDataSources.Item(source).SetValue("U_ServGrp", _eventoItem.Row - 1, ServGroup);

oForm.DataSources.DBDataSources.Item(source).SetValue("U_ServType", _eventoItem.Row - 1, ServGroup);

oMatrix.SetLineData(_eventoItem.Row);

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member191896
Active Participant
0 Kudos

Hi Juliano,

Refer to this thread:

Regards

Aravind