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 2009: Form refresh problem

(0) ShareShare
ReportReport
Posted on by

I have a form with multiple datasource, from each datasource some of the fields are added at grid level. The problem is when I refresh the grid by pressing F5, the control of the grid moving to first line of the grid.

I want to retain the position of the cursor whenever refresh is done. I tried with getPosition(),setPosition(),findrecord() and findvalue(). But nothing is worked, is there any other way to retain the position of the cursor.  

 0068.f.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at

    To retain the selected record use the findRecord method of the datasource being refreshed. In the executeQuery  of the datasource, keep a reference to the selected record in a variable and pass the buffer to the findRecord after the query has executed.

  • Community Member Profile Picture
    on at

    In my form grid I am using all the datasource field. I tried with finfRecord but it is not worked for me.

  • Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at

    The key is to keep a reference to the selected record before the query executes and pass this reference to the findRecord method. Post your code on the forum so that we can help you.

  • 5400 Profile Picture
    7,162 on at

    Can you check below link.

    stackoverflow.com/.../cursor-moves-to-top-when-refreshing-list-page-grid

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