Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Modifier With VBA from Another Window

Posted on by 3,482

Hello:

A GP 2016 client has its Sales Transaction Entry window modified with Modifier and VBA.  

They have recently purchased a third-party add-on containing its own Sales Transaction Entry window.

The client would like to take a field from this third party's Sales Transaction Entry window and place it on its own modified Sales Transaction Entry window.

Is it possible to do this?

Thank you!

John

*This post is locked for comments

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Modifier With VBA from Another Window

    Hi John,

    1. You have your own Sales Transaction Entry window modified with modifier and VBA code.

    2. You have 3rd party Alternate Sales Transaction Entry window with custom fields on the window.

    Task: you want some fields from 2nd window to 1st one.

    There are 2 ways to do this task. First one is to find the name of tables those custom fields are saving, most probably they will be find in 3rd party custom tables by adding code in existing VBA you can read those values in your modified window. For this you have to create fields through modifier and then drop them on the window and fill them by vba code.

    But keep remember that in this way you will only be reading the existing values , you will not be able to save or update the values in custom fields.

    Another option is just do the modifications in 3rd Party alternate sales transaction entry window as you did in your sales transaction entry window and past the vba code, so your modification will be there as well as all the 3rd part product functionality will be available, which you don't need to care about. And there will not e more coding. You just need to mark alternate modified sales transaction Entry window in security.

  • john.ellis Profile Picture
    john.ellis 3,482 on at
    RE: Modifier With VBA from Another Window

    Thanks, Mariano!

    Can you please give me a "hint" as to how the coding for this would look, after adding the field?

    John

  • john.ellis Profile Picture
    john.ellis 3,482 on at
    RE: Modifier With VBA from Another Window

    Thanks, Mariano!

    Is there any documentation on how to do this?  :)

    John

  • Suggested answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: Modifier With VBA from Another Window

    You cannot take a field from the third-party SOP Entry window and place it directly on the customer's own modified SOP Entry window. What you can do however, is to add another field to the customer's SOP Entry window and add VBA logic to do all the CRUD operations with that field.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Modifier With VBA from Another Window

    Sure but since it sounds like you will be using the form from the third-party product you will need make the same changes to this new form as you did to the GP SOP form. Most likely you will need to start over as far as the modifications go.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans