Filter Records on DateTime Fields in a List Page
navuser1
Member Posts: 1,334
Dear All,
I have a DateTime field in a List Page in NAV2016 Database. Now I want to filter the data on that Field.
Suppose I want to see the filtered records from 15/09/17 00:00 to 15/09/17 23:59.
But I would like to provide the (only) value 15/06/17 in the required field.
When I have given the input on that field to filter, it converts the value from 15/06/17 to 15/09/17 00:00. It does not convert the input value(15/06/17) into the range from 15/09/17 00:00 to 15/09/17 23:59.
How do I achieve it ?
Kindly reply.
I have a DateTime field in a List Page in NAV2016 Database. Now I want to filter the data on that Field.
Suppose I want to see the filtered records from 15/09/17 00:00 to 15/09/17 23:59.
But I would like to provide the (only) value 15/06/17 in the required field.
When I have given the input on that field to filter, it converts the value from 15/06/17 to 15/09/17 00:00. It does not convert the input value(15/06/17) into the range from 15/09/17 00:00 to 15/09/17 23:59.
How do I achieve it ?
Kindly reply.
Now or Never
0
Answers
-
Hi
15/09/17 00:00..15/09/17 23:59Regards,
Yury0 -
User will provide only 15/09/17 on the DateFilter Field of the Page. And the System will automatically convert the value from 15/06/17 to 15/09/17 00:00..15/09/17 23:59Now or Never0
-
For standard filter possibilities of NAV list pages its impossible to convert input dynamically. You should add your own field (date or text) for such purposes, convert it to DateTime and apply to DataSource on OnValidate triggerRegards,
Yury0 -
It is working fine in NAV2009.
MS has enhanced(removed) the feature from old to newNow or Never0 -
Hi,
The text entered in date/time filter field is converted into filter expression in codeunit 1 in MakeDateTimeFilter function, which in turn calls MakeDateTimeFilter funcion in codeunit 41.
You can try modifying that function to get what you need. Just be careful as it will affect the entire system, all places where a data/time filter is entered.
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-031 -
Slawek_Guzek wrote: »Hi,
The text entered in date/time filter field is converted into filter expression in codeunit 1 in MakeDateTimeFilter function, which in turn calls MakeDateTimeFilter funcion in codeunit 41.
You can try modifying that function to get what you need. Just be careful as it will affect the entire system, all places where a data/time filter is entered.
Slawek
OK. I don't want to hamper the default system.
Now or Never0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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

