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)

Can't set AP Vendor Class in SivApplication VB.Net

(0) ShareShare
ReportReport
Posted on by

I am sure that there is a very simple answer to this problem!!

When I attempt to set the Vendor Class, the message event fires. The 6568 Message is a Yes/No message that relates to changing the class & replacing default information (which is the whole point),  MessageResponse = sivMessageResponse.sivMsgRspYes.

After saving the vendor, the class is blank. The default information is *not* updated.

Thanks!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Resa

    Try the below code

    Declaration:

    Imports Microsoft.Dynamics.SL.ObjectModel.sivMessageType

    Imports Microsoft.Dynamics.SL.ObjectModel.sivMessageResponse

    Procedure:

    Private Sub SIVApp_Message(ByVal MessageNumber As Long, ByVal MessageText As String, ByVal MessageType As sivMessageType, ByVal MessageResponse As sivMessageResponse)

           If MessageNumber = 6568 Then

               MessageResponse = sivMsgRspYes

           End If

       End Sub

    Thanks

  • Mark E Profile Picture
    6,451 on at

    I'm trying to do something similar, but in Excel VBA with the SL Object Model.  I've already added the Private Sub SIVApp_Message to the code, but am now trying to figure out how to call the sub when the field is being updated like this:

    SIVApp.Controls("corigdocamt") = Worksheets("APDocSummary").Cells(drow, 4).Value

    Any thoughts?

  • Community Member Profile Picture
    on at

    That is the code that wasn't working.

  • Community Member Profile Picture
    on at

    This was a fairly simple solution. Since I was creating and editing multiple vendors, I had to create a new vendor document every time that I wanted to edit or add a vendor. Just "saving" the last vendor was not adequate.

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