Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Set a date filter to today

(0) ShareShare
ReportReport
Posted on by 1,495

Hi,

I'm on NAV2018.  I'm trying to create a saved sales order list.  I'm trying to enter a filter that will always return today's sales orders, based on the document date.

If I enter w or t, it translates to today, but that does me no good when the day changes. 

I've seen posts to use (Day(0)), but I get an error saying "A ) " is missing.

Can anyone help?

I need a filter to stick, so only today's orders show, because I want this to be a saved list.

Thanks,

Steve

*This post is locked for comments

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: Set a date filter to today

    You should be able to use either TODAY or WORKDATE on your code.

    SETRANGE("Document Date",TODAY);

  • Suggested answer
    Zaid Tariq Profile Picture
    Zaid Tariq 2,266 on at
    RE: Set a date filter to today

    Hi,

    If you are a developer, create a global variable and set its vale as TODAY. After that use that variable in list page property and apply the filter.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans