cancel
Showing results for 
Search instead for 
Did you mean: 

Creating new row in a matrix by pressing the down arrow key

Former Member
0 Kudos

Hi all

i wish to cause a matrix to add rows when pressing on the down arrow key. can you provide me with the lines of code which achieve this requirement?

appreicate the help

Yoav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Yechiel,

I think you can capture the moment of the pressing the down arrow key. in that moment, you can utilize this code to add the line. I used DBDataSource. it's most easy and simple way to handle matrix, I think. I can't remember the character code of down arrow. But I think, you can find it easily.

oForm.DataSources.DBDataSources.Item("@DBS_CBP2").InsertRecord(position)

oForm.DataSources.DBDataSources.Item("@DBS_CBP2").Offset = oForm.DataSources.DBDataSources.Item("@DBS_CBP2").Offset + 1

oMatrix.AddRow()

Regards,

Hyunil Choi

Answers (0)