Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Suggested answer

How to change default drop-down selection on window open

Posted on by 290

Hey All:

This is going to seem really simple, but I've been banging my head around trying to solve this with Dexterity.  I want to change the default selection on a STATIC drop down list on one of the stock windows; I have a trigger on PRE that works fine to change the default selection of a radio button group, but this code does nothing:

'(L) Create One Writeoff per' of window RM_Writeoff_Documents of form RM_Writeoff_Documents = 2;
redraw field '(L) Create One Writeoff per' of window RM_Writeoff_Documents of form RM_Writeoff_Documents;

How do I change the default drop down of a static drop down box?  This is vexing me heavily because it seems like it should be SO simple...

Thanks!

-J

  • Suggested answer
    RE: How to change default drop-down selection on window open

    Thanks for the information, James.

    I'm sure it'll help someone else in the Community.

    Have a great day.

  • Suggested answer
    James McCullough Profile Picture
    James McCullough 290 on at
    RE: How to change default drop-down selection on window open

    All right, fine I'll answer my own question.  LOL

    Between Tim Wappat and David Musgrave tooling me up to learn how to find insertion points (from Tim) and how to lightly apply code (from David) I've become WAY better at this.  In case anyone wants to know, I did a profile on the scripts and found that what was happening was that the last step of this window was a call to a script called "SetDefaults" of form RM_Writeoff_Documents.  That was overriding what I was doing.  So instead of a RegisterFocus, I did a RegisterProcedure after that script and bingo.

    My dudes, thank you.  You've both made me much better at what I do.

    -J

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans