cancel
Showing results for 
Search instead for 
Did you mean: 

Insert grid values in database

Former Member
0 Kudos

Hi All

How to store matrix values(used as grid) in database

??

thanks in advance...

Accepted Solutions (0)

Answers (1)

Answers (1)

Nussi
Active Contributor
0 Kudos

Hi,

it's up to you to insert the data to DB.

you have to go through the grid (cells) and save the data in DB.

lg David

Former Member
0 Kudos

but i dont know to do it? I want to save my grid values to database?

Former Member
0 Kudos

In the form u will be having a button on that button click IN the ITem event u need to Insert the values to the data base u can do that using a Record set or User tables object....

Vasu Natari.

Former Member
0 Kudos

Hi,

Is it System form Matrix? or add On Matrix?

Regards,

Benjamin

Former Member
0 Kudos

it is system form matrix.

Former Member
0 Kudos

Then they will be inserted automatically.... u dont need any coding for that.

Vasu Natari.

Former Member
0 Kudos

Hi,

Please go through this code. I think it will use for your requirement.

Dim objMatDet As SAPbouiCOM.Matrix

Dim rsTrial As Recordset

Dim objForm As SAPbouiCOM.Form

Dim intCount As Integer

dim valBudjet as edittext

dim strBudjet as string

dim strSql as string

objMatDet = objForm.Items.Item("12").Specific

If objMatDet.RowCount > 0 Then

For intCount = 1 To objMatDet.VisualRowCount - 1

valAcctName = objMatDet.Columns.Item("3").Cells.Item(intCount).Specific

If valBudjet.Value <> "" Then

strBudjet = valBudjet.Value

Else

strBudjet = ""

End If

-


>>>>>>> Here u can write a query to insert in the database

Next

end if

Regards,

Benjamin