Skip to Content
0
Former Member
May 13, 2010 at 02:25 PM

DBDataSource and Matrix

724 Views

Hello Everyone

In my UDO Form my DocLines Matrix is bound to DBDataSource. i'm trying to copy the CFL selection of ItemCode.

oDBDataSource = oForm.DataSources.DBDataSources.Item("LinesTable");
         oDBDataSource.SetValue("U_ItemCode", pVal.Row - 1, ItemCode);
         oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("38").Specific;
         oMatrix.LoadFromDataSource();
         oMatrix.AddRow(1, pVal.Row);

But when a row is added, the ItemCode of the new line holds the same data of the previous one at the ItemCode Column. is there anything wrong with my code? i've looked in older threads that suggested to clear the DBDataSource before adding row - but it empty the entire DB.. and losing the data of the previous line as well.

Thanks & Regards

Mosh