How to use loops in Dexterity Macro
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 DumpFieldBegin…DumpFieldEnd 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.
One response to "How to use loops in Dexterity Macro"
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. ]