web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Form cursor position is changed to start position defined in the data source

(0) ShareShare
ReportReport
Posted on by 5,139

In a customized form, when the form refreshed by pressing F5 or Refresh button in the Action pane list group. The cursor position is changed into start position which we defined in the form data source.

In standard form, Sales table, when the form is changed into grid view and if we refresh, the cursor stays in the current record. 

Where does the code require to make the cursor stay in the selected record even after a refresh.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Either your customized code is calling research, or executequery, or a joined datasource is triggering the move of the cursor.

    If you do a research in code, you may pass in (true) as a parameter to retain cursor position.

    You could try overriding executeQuery on the datasource, put a breakpoint in there and see what is triggering the reread of the datasource (which causes the cursor to reposition to first, or last entry depending on the property setting).

  • udaY-ch Profile Picture
    5,139 on at

    Hi Vilmos,

    Thanks for your reply, I do use execute query and by pressing F5, debugger comes to executequery after SysSetupFormRunTask. [research code wasn't used]

    The issue got fixed when I change the link type of the form's second datasource from outerjoin to innerjoin.

    But I wonder how come the standard form |SalesTable| has multiple data sources with outer join as link types for all its joining data sources.

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

News and Announcements

Season of Giving Solutions is Here!

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
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#2
Nakul Profile Picture

Nakul 2

#2
Mea_ Profile Picture

Mea_ 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans