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

  • Verified answer
    Martin Dráb Profile Picture
    234,615 Most Valuable Professional on at
    RE: X++ code on form method to use arrow down key on keyboard.

    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.

  • Community Member Profile Picture
    on at
    RE: X++ code on form method to use arrow down key on keyboard.

    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
    234,615 Most Valuable Professional on at
    RE: X++ code on form method to use arrow down key on keyboard.

    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.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Kempeth Profile Picture

Kempeth 4

#1
Andy Adamak Profile Picture

Andy Adamak 4

#1
Community Member Profile Picture

Community Member 4

Featured topics

Product updates

Dynamics 365 release plans