Skip to Content

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

Item cant set value on item because item cant get focus

Hi all...

I'm using the choosefromlist on matrix column. when i select the value from this list and try to set the matrix column it gives error:

Item cant set value on item because item cant get focus...

Edited by: Pari Minhas on Oct 4, 2008 12:17 PM

replied

Hi now run the code

Dim oMatrix As SAPbouiCOM.Matrix

Dim oColumn As SAPbouiCOM.Column

Dim oCell As SAPbouiCOM.Cell

Dim oEdit As SAPbouiCOM.EditText

' MatrixID

oMatrix = oForm.Items.Item("Ledger").Specific

Try

dim stsr as string

oEdit = oMatrix.Columns.Item("Column-ID").Cells.Item(i).Specific

oedit1.Value = stsr

Catch ex As Exception

end try

oColumn = Nothing

oCell = Nothing

oEdit = Nothing

oColumn = oMatrix.Columns.Item("LDesc")

oCell = oColumn.Cells.Item(iRow)

oEdit = oCell.Specific

oEdit.Value = LDesc

oColumn = Nothing

oCell = Nothing

oEdit = Nothing

oMatrix = Nothing

oForm.DataSources.UserDataSources.Item("EditDS").ValueEx = Nothing

oForm.DataSources.UserDataSources.Item("EditDS1").ValueEx = Nothing

b = False

Regards...

Billa 2007

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