on 03-07-2007 6:34 PM
I'm using the B1DE addon wizard for a UDO (master data/lines) form and the code for the 'del' button is not working - the form just freezes & the line doesn't get deleted. Here's the code:
Public Class Button__XXDCOMPANY__del
Inherits B1Item
Public Sub New()
MyBase.New()
FormType = "XXDCOMPANY"
ItemUID = "del"
End Sub
<B1Listener(BoEventTypes.et_ITEM_PRESSED, True)> _
Public Overridable Function OnBeforeItemPressed(ByVal pVal As ItemEvent) As Boolean
'GENERATED CODE
B1FolderMgr.DelLine(pVal)
Return True
End Function
End Class
It seems so simple - does anyone see my mistake?
Thanks!
This problem was fixed in 2005B PL32, 2005A PL39.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FYI.
i have one master data, and 3 tables defined as master data rows.
the matrix which representing each master data rows did not remove the selected row when the Del button was pressed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem was that I was not clicking on the row header to select the whole row which seems to be required for the B1FolderMgr to work correctly. It does seem odd that the program just locks up because of it, but I wrapped a try around it and all is good.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.