Announcements
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
Thanks for the information, James.
I'm sure it'll help someone else in the Community.
Have a great day.
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
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156