Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

Set a date filter to today

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

Categories:
  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,861 Moderator 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,556 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,625 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans