Hello everybody
I am having some difficulties with filters in my C/AL code.I have utilized CU1 and the makedatefilter, but e.g. 'CM' is not accepted by it...
I'm wondering if there is any other way to achieve this - and how can I be able to i.e. go to the month after the month i have in my current filter?
I hope that some one here can provide me with the golden answer.
0
Answers
this will filter on the month after your current month.
hope this helps,
Willy
.... or you can use the virtual table date 2000000007, type Month and filter/find by date.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
for example using calcdate:
Or using the virtual table date:
Regards
CALCDATE('<-CM>',TODAY) will get you the FIRST date of the month in TODAY
CALCDATE('<CM>',TODAY) will get you the LAST date of the month for TODAY
So to get this month's first/last days and next month's first/last days: No need to get into the date table for this particular one in my opinion, although that would also be a very good solution. If you want to get more generic though, the date table is very handy for date processing. You should definately look at it and see how it works, which options are available. Create a new form, put all the fields on there and filter on it. Take a look at the Base Calendar logic in base NAV to see some examples of how it is used.
RIS Plus, LLC
Again, thank you
Best regards
Anden