Open Forum

Expand all | Collapse all

VS Tools - Open Payables Transaction Entry Zoom window

  • 1.  VS Tools - Open Payables Transaction Entry Zoom window

    TOP CONTRIBUTOR
    Posted Jun 01, 2018 06:21 PM
    I would like to use VS Tools to open the Payables Transaction Entry Zoom window to display a document, mimicking the process of using the Payables Transaction Inquiry - Vendor window, selecting a transaction in the scrolling window, and then clicking on the blue Document Number link.


    But because the Payables Transaction Entry Zoom window does not have any lookup fields, it apparently isn't as simple as populating the Voucher Number and Doc Type fields and calling RunValidate. (tried that, doesn't work)

    Looking at the Dex script, it looks like there is a procedure called for the Zoom window?

    'PM_Transaction_Entry_Zoom (L)_Document_Zoom_CHG on form PM_Transaction_Inquiry'

        'PM_Zoom_To_Entry_Form', 1, "00000000000000374", "PMTRX00000002", 2, "", 1, 7814

     

            'OpenWindow of form PM_Transaction_Entry_Zoom', 1, "00000000000000374", 2, 1, 7814

                'IsCompanyOptionActive()', 0, -1, 3

                'RefreshWindow of form PM_Transaction_Entry_Zoom', 1, "00000000000000374", 2, 1, 7814, 1

                    'PM_Transaction_Entry_Zoom PresenceChangeEventTrigger_CHG on form PM_Transaction_Entry_Zoom'

                        'Unregister of form Dummy_Presence_Form', "PM_Transaction_Entry_Zoom", "PM_Transaction_Entry_Zoom", 1, "", "ADVANCED0001", "VEN", "PRIMARY", 0

                            'Activate of form Dummy_Presence_Form', "PM_Transaction_Entry_Zoom", "PM_Transaction_Entry_Zoom", 1, "", "", -1, "ADVANCED0001", "VEN", "PRIMARY", 0



    Does anyone have a sample of how to open such a zoom window and retrieve / display a document using VS Tools?  Or a pointer about how to do it properly?


    ------------------------------
    Steve Endow, Microsoft MVP
    Precipio Services
    Los Angeles, CA
    steveendow (at) gmail (dot) com
    ------------------------------
    Conference-GPUG_200x200


  • 2.  RE: VS Tools - Open Payables Transaction Entry Zoom window

    TOP CONTRIBUTOR
    Posted Jun 12, 2018 01:39 PM
    I figured out how to do this using .NET and VS Tools.

    Here is my blog post discussing the technique:

    https://dynamicsgpland.blogspot.com/2018/06/opening-dynamics-gp-windows-using-net.html

    The short answer is that you need to call the Dex Form Procedure, in this case, OpenWindow.Invoke.

    However, as I note in my blog post and video, the OpenWindow procedure is not available for all GP inquiry windows, so you have to check the specific window you want to open.

    ------------------------------
    Steve Endow, Microsoft MVP
    Precipio Services
    Los Angeles, CA
    steveendow (at) gmail (dot) com
    ------------------------------

    Conference-GPUG_200x200


If you've found this thread useful, dive deeper into User Group community content by role