Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Column Missing to Sort By

Posted on by 2

There is a table in NAV with a column that I need to sort that table by however that column is not listed in the Sorting options. How can I go about selecting/setting the appropriate column to sort by? I have attached a screenshot of a similar situation of what I am talking about, however not the exact situation of a missing column from the sorting options.

*This post is locked for comments

  • Verified answer
    edwardl Profile Picture
    edwardl 2 on at
    RE: Column Missing to Sort By

    They use it as a current task list for their hourly tasks. When they come close to finishing their tasks for the day, someone adds in the next days tasks into this list however the expected finishing date is the following day. The order becomes all messed up and it was requested to be able to sort by this date to keep the most current tasks at the top of the list. Scanning the list with their eyes was not an option for them....

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Column Missing to Sort By

    Hi, Edward.

    Before adding the new key in table, please be aware of the following:

    Each key you add to the table is impacting the performance when NAV/SQL Server works with that table. I'm not gonna explain all this in deep right now. It's not advisable to add a key just so you could sort the records on a page in that way from time to time. If sorting by the field(s) in question is something really, really necessary and records will be sorted using the new key very often, then by all means, create the new key. If not, the alternative is to export data to Excel and sort them any way you want.

  • Suggested answer
    Miguel Llorca Profile Picture
    Miguel Llorca User Group Leader on at
    RE: Column Missing to Sort By

    Of course, you will need a developer license :-)

  • Verified answer
    Miguel Llorca Profile Picture
    Miguel Llorca User Group Leader on at
    RE: Column Missing to Sort By

    You should design the table and edit the Keys: msdn.microsoft.com/.../dd301433.aspx

    Good luck!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Column Missing to Sort By

    As per suresh post, you should create key for required field to sort the records.

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Column Missing to Sort By

    Hi,

    In order to sort the records, you need to have a Key in the underlying table.  So, as mentioned by Suresh, you need to add it in the Table by opening the table in the designer.

    Best Regards,

    MMV

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Column Missing to Sort By

    Go to table and from design -> View -> Keys create a key for that field

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans