web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to change default drop-down selection on window open

(0) ShareShare
ReportReport
Posted on by 397

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:
I have the same question (0)
  • Suggested answer
    James McCullough Profile Picture
    397 on at

    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

  • Suggested answer
    Derek Albaugh Profile Picture
    Microsoft Employee on at

    Thanks for the information, James.

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

    Have a great day.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 341 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 312

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 262 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans