Skip to Content
author's profile photo Former Member
Former Member

B1foldermgr.delline

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!

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 08, 2007 at 04:34 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 ?

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 07:29 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 09:45 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.