User filtering Date

sabzam
Member Posts: 1,149
Dear All,
I have got a client who needs to filter the entries by filtering out the all the dates which are dated as december; irrespective from the year. How can this be done?
I have got a client who needs to filter the entries by filtering out the all the dates which are dated as december; irrespective from the year. How can this be done?
0
Comments
-
I doubt you can do it with filters...but you can use DATE2DMY function to return the month, test every line and discard those you don't want
IF DATE2DMY("My Table"."My Date Field",2) = INTMyMonth THEN "My Table".MARK(true);
then use markedonly(true);0 -
I doubt you can do it with filters...but you can use DATE2DMY function to return the month, test every line and discard those you don't want
IF DATE2DMY("My Table"."My Date Field",2) = INTMyMonth THEN "My Table".MARK(true);
then use markedonly(true);0 -
Hi,
You may use DATE2DMY function for MARK records and then show MARKEDONLYNav 4.0 sp30 -
I need it to be done through the normal user filter and not through codeunit0
-
ok, you can add a button and a txtbox in the form, the user insert month no. in the txtbox and then click the new "Filter" button. From the button you can run the code...
it's the only way I can figure this out (can I say "figure this out" in english?)...
0 -
For better performance, You can filter first the records rather than going to the lines one by one (what if you a very huge number of lines) then mark the results one by one.
You may use the table Date for your filtering purposes, just filter the field Period Type with Month, filter the starting date, Then retrieve and use the starting date and ending date as your filterings.Navision noob....0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions