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 :
Finance | Project Operations, Human Resources, ...
Answered

How to change the cursor on grid records on clicking of up & down buttons

(1) ShareShare
ReportReport
Posted on by 70
Hi All,
I have a requirement to change the cursor on grid records up & down while clicking on up & down buttons on form.
let say, I have 5 records & 1st is the currently selected record , so on clicking of down button, only the cursor should move to the next record instead of actual record & same should work for down button.
It is working by creating command buttons & these up & down command available but I want it using x++.
 
Thanks & Regards,
Rahul
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at
    Hi Rahul,
     
    You can use findRecord to set it as the current record. Refer to the below Microsoft documentation.
    But how are you going to find out which record is next to current record and which record is above to current record?
    I think it's impossible to do that using X++. If it's working with command button just go with it instead of X++ coding.
     
    Thanks,
    Girish S.
  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at
    I found the below methods from FormDataSource. next and prev methods.
     
    Just call FormDataSource.next() in the clicked method of the down button.
    Similarly, just call FormDataSource.prev in the clicked method of the up button.
     
    Thanks,
    Girish S.
  • Rahul Dahiya Profile Picture
    70 on at
    Hi Girish,
    Thanks , these dataSource methods worked.
     
    Regards,
    Rahul

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans