Hello Experts,
I want to set the filter for before 4 days. I am unable to do it in nav.
I am trying with
recSalesHeader.SETRANGE("Document Date",4D,TODAY);
but it is showing the error messages.
manish
*This post is locked for comments
Hello Experts,
I want to set the filter for before 4 days. I am unable to do it in nav.
I am trying with
recSalesHeader.SETRANGE("Document Date",4D,TODAY);
but it is showing the error messages.
manish
*This post is locked for comments
thank u sir,
it is working
manish
Hello Manish,
Use this line
recSalesHeader.SETFILTER("Document Date",'%1..%2',TODAY-4,TODAY);
Agree with other members, CALCDATE function should suit your needs:
msdn.microsoft.com/.../dd301368(v=nav.70).aspx
using also TODAY function:
Hi
Have a look at CALCDATE function (or you can use TODAY-4) in Navision to get the required date and you can apply the filter.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156