on 01-11-2007 7:31 AM
Hi all
I'd like to know if there is a way to disable a row within a matrix to make it uneditable?
appreciate the help
Yoav
Hi YECHIEL SCHUSSEIM ,
It is not possible to disable a row within a matrix.But we can prevent the user form updating this .
I have catched all events and prevent them from update like
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_CLICK
Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
'//****** Get focus event
Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS
'// Here u get ur desired column to prvent from updation
If pVal.Before_Action = False Then
Try
oMatrix1 = SBO_Application.Forms.Item(formuid).Items.Item(pVal.ItemUID).Specific
oEdit = oMatrix1.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific
oEdit.Active = False
BubbleEvent = False
Catch ex As Exception
'SBO_Application.MessageBox(ex.Message)
End Try
Hope it helps
Regards
V.Rangarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I've tried your solution only it causes the focus to move to the next column. a behaviour which i want to prevent
appreciate the help
Yoav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi YECHIEL SCHUSSEIM ,
It is not possible to disable a row within a matrix.But we can prevent the user form updating this .
I have catched all events and prevent them from update like
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_CLICK
Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
'//****** Get focus event
Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS
If pVal.Before_Action = False Then
Try
oMatrix1 = SBO_Application.Forms.Item(formuid).Items.Item(pVal.ItemUID).Specific
oEdit = oMatrix1.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific
oEdit.Active = False
BubbleEvent = False
Catch ex As Exception
'SBO_Application.MessageBox(ex.Message)
End Try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.