web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Customer Maintenance screen - Dynamics sl programmer please help

(0) ShareShare
ReportReport
Posted on by 147

We have customized the Customer maintenance screen which is not working with 2018.  Apparently 2018 already has an update1 procedure.

Here is our old code

Private Sub Update1_OnUpdate(Level As Integer, InsertFlg As Integer, retval As Integer)
    Dim bxCFCustomerEx_temp As xCFCustomerEx

    If Level = 32001 Then
        holdIRN = ""
        If Trim(bxCFCustomerEx.ImageRefNbr) = "" Or Trim(bxCFCustomerEx.ImageRefNbr) = "<NEW>" Then
            holdIRN = GetNextImageRefNbr()
        End If
    End If

    If Level = LEVEL0 Then
        If holdIRN <> "" Then
            bxCFCustomerEx.ImageRefNbr = holdIRN
            Call DispFields("Form1", "xImageRefNbr")
        End If
        If CFCMSCustomerEXFound Then
            Call SUpdate1(csr_xCFCustomerEx, "xCFCustomerEx", bxCFCustomerEx, LenB(bxCFCustomerEx))
        Else
            Call SInsert1(csr_xCFCustomerEx, "xCFCustomerEx", bxCFCustomerEx, LenB(bxCFCustomerEx))
        End If
    End If
End Sub 

I created a button to save the user's input and copied the above code to the button click().  No I get this error

What do I have to change to get this button to work?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    BarbaraF Profile Picture
    147 on at

    I fixed it.  All I had to do is remove the old code.  Save it and open it again and select the update object an enter the code again.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans