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 :
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
    239,985 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
    239,985 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

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 June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/forums/thread/?c1=reject&c2=acceptd3uDr6wK')%20OR%20629=(SELECT%20629%20FROM%20PG_SLEEP(15))--&c3=accept" - Too many )'s.