Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to change default drop-down selection on window open

(0) ShareShare
ReportReport
Posted on by 294

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

Categories:
  • 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 294 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans