Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to Enter the Data in Matrix Columns Manually

Hi,

I have a problem. I created a object Matrix in my form and load with object DBDataSource, of this form follow example:

oColumns = oGridNew.Columns;

oDBDataSource = oFormLanguage.DataSources.DBDataSources.Add("@TBDEPENDENTE")

oColumn = oColumns.Item("colIR");

oColumn.Editable = true;

oColumn.DataBind.SetBound(true, "@TBDEPENDENTE", "U_DepIR");

oColumn = oColumns.Item("colTipo");

oColumn.Editable = true;

oColumn.DataBind.SetBound(true, "@TBDEPENDENTE", "U_Type");

oColumn = oColumns.Item("colSexo");

oColumn.Editable = true;

oColumn.DataBind.SetBound(true, "@TBDEPENDENTE", "U_Sex");

oGridNew.Clear();

oGridNew.AutoResizeColumns();

oDBDataSource.Query(oConditions);

oGridNew.LoadFromDataSource();

But i canĀ“t to enter data at blanks lines of the Matrix. I only can to edit the data of the DBDataSource. Somebody can i help me?

thanks,

Vladimir

Former Member
Former Member replied

Hi

Once you have loaded the data you need to add rows to the matrix.

LoadFromDataSource()--> this will load the data that satisfies the conditions and to add more lines

After this line oGridNew.LoadFromDataSource()

place this code oGridNew.addrow()

once you enter validdata in the required fields add one more row.

Hope this Helps

Regards

Vishnu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question