Printing Date on report

nverma
Member Posts: 396
Hi,
This might seems like a really really stupid question. But, here it goes.
I have created a report that has an Option tab whcih includes a field called "Posting Date" (which is of type date). The user enters the Date in the Posting Date" label that he/she wishes to see on top of the report. The problem that I am facing is that, the user wants the ability to enter a range of Date. For instance:- 010101..020202.
However, whenever I try to enter a date range like above it throws an error saying
Any idea how I can fixed this.
This might seems like a really really stupid question. But, here it goes.
I have created a report that has an Option tab whcih includes a field called "Posting Date" (which is of type date). The user enters the Date in the Posting Date" label that he/she wishes to see on top of the report. The problem that I am facing is that, the user wants the ability to enter a range of Date. For instance:- 010101..020202.
However, whenever I try to enter a date range like above it throws an error saying
010101..020202 is not a valid date
Any idea how I can fixed this.
0
Answers
-
Check report 26 Date Filter Option..0
-
I am looking at report 26, they are doing it by having Starting Date and Ending Date as two different fields.
Is it possible to do both of them in one field so it might look something like this: 010101..020202??0 -
Sorry..its 270
-
Thanks. That does let me input the Date the way I wanted it. But is there way of formating the "Posting Date".
For example if I enter:- 010101..01011 . In my Report it shows it the exact same way. However, is it possible to format it so it would show January01,2001 - January01,2011
Posting Date is off type text.0 -
This is what I am thinking: For date:- 010101..010111
I can Try to use COPYSTR function to seperate values into date, month and year.
Just create bunch of Text boxes and put the info into them.0 -
Try this
TempGLAcc.SETFILTER("Date Filter",DateFilter); Message('%1 - %2', FORMAT(TempGLAcc.GETRANGEMIN("Date Filter"),0,'<Month Text> <Closing><Day>, <Year4>'), FORMAT(TempGLAcc.GETRANGEMAX("Date Filter"),0,'<Month Text> <Closing><Day>, <Year4>'));
TempGLAcc is of type record 15 (Dont forget to set temporary to Yes )0 -
Instead of the way report 27 works with the date filter you could use a DataItem in your report and display the date filter from that data item, e.g. use GLAccount and display field Date Filter as a request form filter field (example Report 4).
Maybe your DataItem in your report already has a DateFilter field or a Date field you can use to have the user enter the filter.Frank Dickschat
FD Consulting0 -
Thanks Mohana. I got it to work. I just had to modify the code a little bit.
TempGLAcc.SETFILTER("Date Filter",PostingDate); PostingDate2 := FORMAT(TempGLAcc.GETRANGEMIN("Date Filter"),0,'<Month Text> <Closing><Day>, <Year4>'); PostingDate1 := FORMAT(TempGLAcc.GETRANGEMAX("Date Filter"),0,'<Month Text> <Closing><Day>, <Year4>'); PostingDate3 := '- ' + PostingDate1; IF PostingDate2 = PostingDate1 THEN PostingDate3 :='';
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