Let’s first start out with a quick introduction to Extender. Imagine having a tool that lets you customize GP without writing code. That’s Extender in a nutshell. Extender customizations can include adding fields, notes, macros, inquiries and more to any GP form, including those from third-party products.
Next we have macros. Macros in GP are simply recordings of a series of keystrokes, mouse-clicks and mouse-movements made while performing a procedure. Be assured creating GP macros is a simple process.
Now let’s return to the original issue in this post by demonstrating what happens when Extender Macros are implemented. In GP take a look at the Select Payables Checkswindow (Purchasing >> Transactions >> Select Checks).
1. Create Macro
Create a new macro that unmarks the three check boxes (for more information about macros refer the chapter 17 of the System User’s Guide found under Help >> Printable Manuals).
Tip #1 – Be sure to save the newly created .mac file on a network share so that all GP users can access the same macro.
Tip #2 – When recording the macro select the ‘Tab’ button rather than using the mouse to navigate from one check box to the next. Using the ‘Tab’ button prepares your macros to be more likely to survive a future version upgrade or window modification.
2. Configure Extender Macro
Now we are going to use Extender Macros to attach the macro you just created in Step 1 to theSelect Payables Checkswindow so that the macro automatically executes when the Select Payables Checkswindow is opened.
Open Extender (Microsoft Dynamics GP >> Tools >> Extender >> Extender), select the ‘New’ button and choose the ‘Macros’ option. The Extender Macroswindow opens. Assign a unique name in the ‘Macro ID’ field, then complete the remaining fields similar to those shown in the following screen:
Notice the Attach Type field is set to Window Open; this setting controls the timing as to when the macro executes.
After saving the new Extender Macro, close the window and open the Select Payables Checkswindow. The macro recorded in Step 1 automatically executes causing the three check boxes to immediately unmark themselves. Viola!