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

Notifications

Announcements

No record found.

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 379

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
    379 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans