Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

How to arrange the Table view of the Posted Purchase Invoices in Ascending order?

Posted on by 225

How to arrange the Table view of the Posted Purchase Invoices in Ascending order. I have given the Source table view property like

SORTING(No.) ORDER(Ascending)  but the problem is it is not filtering the Posted orders in ascending order of No. I tried by creating new keys like "Posting date " in Purch. Inv. Header and tried to filter it with that but still, it is not correct.Is there any other way to do it ?

 

*This post is locked for comments

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: How to arrange the Table view of the Posted Purchase Invoices in Ascending order?

    Ascendong by primary key is the default order, as previously suggested.

    The code for changing the order on a secondary key is YourTable.SETCURRENTKEY(Field1,FieldN), where Field1..FieldN are the fields of your secondary key defined at table level.

    To change the ascending order (and set it as descending), use YourTable.ASCENDING(false).

  • KaryaNavTech Profile Picture
    KaryaNavTech 225 on at
    RE: How to arrange the Table view of the Posted Purchase Invoices in Ascending order?

    Thanks for the responce, Can we write a CAL code to sort the posted invoices in ascending order OnOpenPage trigger? If so please suggest code

  • Bodhi Profile Picture
    Bodhi 554 on at
    RE: How to arrange the Table view of the Posted Purchase Invoices in Ascending order?

    It's Ascending by default

    Please check OnOpenPage trigger

    If you click caption/header No., it will switch between Ascending and Descending

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