Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am stuck with the filtering functionality at nprinting 17.
What I need to do is to send the last 30 days from a report based on a date field.
I have used evaluate value to do that, but is not working and it is sending all dates.
Help is appreciated.
Thanks
Hy Santiago,
=date(today()-30) is not a range. it is just the date 30 day's before today
i prefer to flag the Dates in load Skript of your app- like if(REPORT_DATE >=date(today()-30),1,0) as ShowLast30Days, then you can use this as Filter in Nprinting.
ShowLast30Days 1
br
hy,
the result of today()-30 is a number not a date, try "=date(today()-30)"
best regards
Thanks, Aaron but did not work.
Any suggestion?
Hy Santiago,
=date(today()-30) is not a range. it is just the date 30 day's before today
i prefer to flag the Dates in load Skript of your app- like if(REPORT_DATE >=date(today()-30),1,0) as ShowLast30Days, then you can use this as Filter in Nprinting.
ShowLast30Days 1
br
That made the work Aaron,
Many thanks
Hi,
unfortunately I do not have NP17 to test it but in 16 this works:
"=REPORT_DATE >= Date(Today()-30)"
The evaluate checkbox needs to be empty for it to work.
Simple ">= Date(Today()-30)" might work in 17 though.
BR,
Matus