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)

AX 7 get Cursor position

(0) ShareShare
ReportReport
Posted on by

Hi All,

I just did code upgrade from AX2012 to AX and found a problem in cursor position.

In ax 2012, the code blow give me the correct position of the cursor, but after upgrade code to AX 7 the same code always return [0, 0]. I changed the method to  getCursorPos(); but they are just the same.

[startPos, endPos] = textcontrol.getSelection(); 

Do I miss sth? Thank you!

*This post is locked for comments

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

    Do you mean that you want web browsers to send information about every mouse movement to Dynamics AX application server in Azure?

  • Community Member Profile Picture
    on at

    Hi, Martin, what I want is that insert sth in the text according to the cursor position when press a button. I follow your answer here

    community.dynamics.com/.../85092

    It work perfectly in AX2012 but after upgrade to AX7, the cursor position always get [0,0]

  • Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    Aha, you mean the text cursor, not mouse cursor.
    Unfortunately all I can say it's that it doesn't seem to work for me either. I assume that it isn't supported by the new UI framework, that the information isn't passed from the browser to AX.
    I suggest you log it on Connect; you might learn more there.

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