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

DropDown Sort change

(1) ShareShare
ReportReport
Posted on by 102

Hi,

Fellow NAV/BC Developers, I hope your all doing good. 

I have a requirement were I want to sort and display the dropdown for the Item Number on the Sales Line based on the Description from A-Z.  

Right now, it gets sorted and shown on the dropdown by Item No. I want to change that to Description.

DropwDown-Sales-Line.PNG 

Thanks in advance. 

Johnson Patrick

I have the same question (0)
  • Suggested answer
    Manan_Shah Profile Picture
    1,459 on at

    Hi Johnson,

    To achieve need to do development, please ask your development partner to develop functionality for it. Like when user open item look up page it's default apply filter on Description. 

    Without development. User can follow below process. 

    1) On Sales Line click on Item no. field. on item selection page, user have click on description field down arrow. On this User need to select Descending. 

    pastedimage1670501428539v1.png

    After this all record are sorted with description field. 


    Hope this will help.

    Many Thanks,
    Manan

  • Suggested answer
    pankaj.k Profile Picture
    994 on at

    Hi Johnson_Patrick

    you need to create "Item Lookup" page extension and write some code for the sorting as below.

    1321.Capture2.PNG

    pageextension 50199 ItemLookUpPKPageExt extends "Item Lookup"
    {

        trigger OnOpenPage()
        begin
            Rec.SetCurrentKey(Description);

        end;
    }
    8585.Capture1.PNG
    Please check its working... :-)
    Thanks 
  • Johnson_Patrick Profile Picture
    102 on at

    Hi Pankaj,

    It worked like a charm! Thank you so much for finding solution so quick. Appreciate it :)

  • Johnson_Patrick Profile Picture
    102 on at

    Hi Manan,

    Thanks for your reply. The users want it to already sorted and i have already taken care of the requirement. :)

    Thanks

    Jp

  • pankaj.k Profile Picture
    994 on at

    Please verify my answer it will helps to community.

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 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans