Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Determine order of batch reports

(0) ShareShare
ReportReport
Posted on by

When printing a batch of reports how is the print order determined?

Examples would be:

Paychecks: How to control whether they print in alphabetical order by name or numeric by check number.

Invoice: How to control whether they print numerically by invoice number or alphabetically by customer name.

Is this controlled by the current key on the table? Or is there some other setting like in request page?

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    47,688 on at
    RE: Determine order of batch reports

    If you don't specify any key by default it uses the primary key but you can control that using properties of the dataitem by setting the DataITemTableView, or using the SETCURRENTKEY.

  • Community Member Profile Picture
    on at
    RE: Determine order of batch reports

    Does NAV implicitly use the primary (first) key for this sorting of reports in a batch or do we as devs need to control that inside the page code with SETCURRENTKEY?

    I've got one report that users want to order by a custom field actually defined within the report code (it doesn't stem from the dataItem). Are there alternative or manual ways to override the sorting within the report code?  

    Can reports be sorted by fields not found on their data item tables?

    example: report dataitem uses customer number, users want the report to order by customer name. Customer name is not on the data item for the report. Should it be added at this point or are there c\al methods to apply the sort?

  • Verified answer
    Suresh Kulla Profile Picture
    47,688 on at
    RE: Determine order of batch reports

    Rob,

    It will depend on the key you use on the report data item.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans