Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Macros to check boxes

(0) ShareShare
ReportReport
Posted on by 1,482

We created a macro to post a transaction in dynamics GP in one of the ISV products.

One of the steps in the macro is to check a box.  However, the macro actually changes the state fo the box from unchecked to checked or checked to unchecked.

 Since I am not a programmer i don't know how to change the macro so that the box is simply checked.

 I will include the part of the macro in question.  See highlighted area

 

Note: this is the macro that is run when F11 runs:

# DEXVERSION=10.0.320.0 2 2

CheckActiveWin dictionary 'Horizons Manufacturing Suite'  form 'IV_Production_Entry' window 'Production Entry'

  MoveTo field 'HZ_Prod_GoTo' item 0

  ClickHit field 'HZ_Prod_GoTo' item 1  # 'FG Distribution'

NewActiveWin dictionary 'Horizons Manufacturing Suite'  form 'IV_Production_MPP' window 'Reverse Finished Goods'

# Key 3: '004-09-0372', '1', 'L-004-0044-AB', '10'

  MoveTo line 1 scrollwin 'Reverse FG Scroll' field 'Marked To Post'  # 'FALSE'

# Key 3: '004-09-0372', '1', 'L-004-0044-AB', '10'

  ClickHit line 1 scrollwin 'Reverse FG Scroll' field 'Marked To Post'  # 'TRUE'

  MoveTo field 'HZ_Recalc_Costs'

  ClickHit field 'HZ_Recalc_Costs'

 

*This post is locked for comments

  • Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    Re: Macros to check boxes

    The GP Macro system was designed to assist in testing the code.  The check the box function works just like a user check a box on a window.  Check an empty box and the box is marked.  Check a marked box and it is cleared.  Just like a user.  Unfortunately, there is no logic like "only check if not checked..."

     Sorry.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans