preload

How to use loops in Dexterity Macro

Posted by Albert Gareev on Dec 21, 2009 | Categories: Great PlainsHow to

All related posts: Reference Page – GP/QTP Automation 

Answer

According to the documentation, there are no loop operators defined in Microsoft Dynamics Great Plains Dexterity Macros.

However, the macro language provides other commands to workaround the issues in the most required cases.

Workarounds

1. Capture values of GUI fields (in a loop)

Use DumpFieldBeginDumpFieldEnd commands.

2. Window synchronization

Use ActivateWindow command, repeated 5-10 times

3. GUI Control synchronization and triggering

Use MoveTo command, repeated a few times.

Move focus in or away to trigger event handlers.

Reference

MS Dynamics Great Plains: Built-in Macro System


  • One response to "How to use loops in Dexterity Macro"

  • Austin
    31st December 2015 at 13:34

    Great help thank you – how about it if you a form that may or may not pop a modal box asking for confirmation. I would like to click ok but the box isn’t always there – is there a way to prevent bombing the whole thing but detect the window is not there so skip the click yes part?

    Thanks

    [ Albert replies:
    Hi, Austin – I’m glad you found this useful. Sorry, I haven’t touched GP for years; can’t help further with your question. ]

Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.