cancel
Showing results for 
Search instead for 
Did you mean: 

B1foldermgr.delline

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This problem was fixed in 2005B PL32, 2005A PL39.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

I have the same problem. After clicking the del button the row was remove from the matrix. I followed by pressing the Update button.

But, when i revisit the record, the record which supposed to be removed appeared again.

This means the record was not removed.

What was your workaround ?