on 09-07-2009 10:36 AM
I have created a UDO (for a user defined document table with two document lines tables). I have then created a form to manage these with a matrix for each line table, but when I activate (and select) the right click 'Delete Row' menu option for a line on one of the matrices, all the lines are deleted from that matrix and I get the following message;
Internal error (4029) occurred [Message 131-183]
Anyone got any ideas?
I probably should say that I am using the following:
SAP Business One 2007 A (8.00.181) SP: 00 PL: 46
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check with this code sample
in menu event before action true
If pVal.MenuUID = "1293" Then
objForm = gApplication.Forms.ActiveForm
If objForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
Else
BubbleEvent = False
objMain.objApplication.SetStatusBarMessage("Cannot Delete The Row once Added", SAPbouiCOM.BoMessageTime.bmt_Short, True)
End If
End If
and for the matrix use visual row count where ever ur using in item event
For intloop1 As Integer = 1 To objMatrix.VisualRowCount
If objMatrix.Columns.Item("V_0").Cells.Item(intloop1).Specific.String = "" Then
If intloop1 = objMatrix.VisualRowCount Then
Else
BubbleEvent = False
objMain.objApplication.SetStatusBarMessage("Invalid ItemCode [Message 131-75]", SAPbouiCOM.BoMessageTime.bmt_Short, True)
objForm.Freeze(False)
Exit Sub
End If
End If
Next
End If
Thanks for the response. This is not realy what I am looking for. I need to be able to dellete rows for new and existing documents, so dont want to set the bubbleevent off as you have suggested.
I have managed to sort this out by using a conbination of FlushToDataSource() and LoadFromDataSource() depenign on the form mode.
Edited by: Andy Bolton on Sep 7, 2009 2:47 PM
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
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.