Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Answered

Customer Maintenance screen - Dynamics sl programmer please help

Posted on by 135

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?

  • Verified answer
    BarbaraF Profile Picture
    BarbaraF 135 on at
    RE: Customer Maintenance screen - Dynamics sl programmer please help

    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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans