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 :
Microsoft Dynamics NAV (Archived)

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

(0) ShareShare
ReportReport
Posted on by 239

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

I have the same question (0)
  • Bodhi Profile Picture
    558 on at

    It's Ascending by default

    Please check OnOpenPage trigger

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

  • KaryaNavTech Profile Picture
    239 on at

    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

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    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).

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans