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 :
Microsoft Dynamics AX (Archived)

X++ code on form method to use arrow down key on keyboard.

(0) ShareShare
ReportReport
Posted on by

Hi all,

Are there any ways to write method on form for the keyboard arrow(up, down, left & right)? For example, moving from one field to next on the form? Primarily looking to use arrow down key instead of using tab key or mouse click?

Thanks in advance! Please let me know if I need to clarify further.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,882 Most Valuable Professional on at

    You could overwrite task() method on the form and call some custom logic if, for example, _taskId = #taskArrowDown, (from Task macro library). Nevertheless you would have to be very careful not to break existing logic associated with the key, e.g. navigation in grids or opening lookups (Alt+DownArrow).

    Also don't forget that controls are not rendered in the same place every time.

    I would need a much better reason to start such an implementation.

  • Community Member Profile Picture
    on at

    Thanks Martin,

    So you are saying that it's better not to write such query. Just leave it the way it is?

    I was thinking that it might help our users enter records faster using arror down key.

    If it's going to interfere with other business logic then I'll leave it the way it is. Tab key & mouse click will do just fine.

  • Verified answer
    Martin Dráb Profile Picture
    237,882 Most Valuable Professional on at

    You have to judge pros and cons by yourself. I'm just saying that I see many potential issues.

    Sometimes you want to do complicated things, because benefits would be much higher. I'm just not sure if this would be the case.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans