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 :
Small and medium business | Business Central, N...
Suggested Answer

List Page Opening With Record at the Bottom Selected

(0) ShareShare
ReportReport
Posted on by 336

I have a list page that is opening with the the last row of the list selected. I am using the SourceTableView property to set the sort order of a column (Due Date) that I also added as a key. The sort order of the records in the column is correct, but for some reason it always opens with the last row of the page selected.

In the documentation, the remarks say:

"When you combine a descending sort order on SourceTableView with overriding the OnFindRecord, you may experience that the page displays the last record instead of the first when the page opens. You can resolve this condition by adding Rec.FindFirst in the OnOpenPage trigger, or using Find(-) in the OnFindRecord trigger." 

I added a Rec.FindFirst to the OnOpenPage trigger per the recommendation, but the page still loads with the last row selected instead of the top row.

I came across this other thread where another user experienced the same issue, but none of these methods seem to work either. 

https://stackoverflow.com/questions/65395797/setascending-business-central-sales-order-list

pastedimage1682390190520v1.png

I have the same question (0)
  • dkkipfer Profile Picture
    336 on at

    I found some code that was hiding in an OnFindRecord on the page. I modified that to end with Find('-') and now it's working as expected.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Thanks for update.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans