Report - DateRange

infonote
Member Posts: 233
Hi,
I have a report where the user enters a daterange e.g. 01/31/08..02/12/08.
User presses run and enters posting date range.
Code wise, How can I get the range entered by the user?
Thanks in advance
I have a report where the user enters a daterange e.g. 01/31/08..02/12/08.
User presses run and enters posting date range.
Code wise, How can I get the range entered by the user?
Thanks in advance
Blog: http://www.kaizenlog.com
0
Comments
-
record.GETFILTER(date)
or
record.GETRANGEMIN(date) and record.GETRANGEMAX(date)
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Just curious, I didn't recall any RUN button anywhere except object designer, yes?
Rgds,
Jon.Rgds,
Jon.0 -
Yes, from the object designer.
Another similar question.
You have a range of dates e.g. 01/01/08..12/02/08 stored in a variable.
Can you filter or truncate the string when there is .. operator?
ThanksBlog: http://www.kaizenlog.com0 -
infonote wrote:Yes, from the object designer.
Another similar question.
You have a range of dates e.g. 01/01/08..12/02/08 stored in a variable.
Can you filter or truncate the string when there is .. operator?
Thanks
If the user enters a filter on a date-field, you have to take a look at the functions I already mentioned above.
Or do you have a field type text which contains the string 01/01/08..12/02/08 ?
You could take a look at the function STRPOS which returns the position of a string.
And then use COPYSTR to copy the date before or/and after the ..
Tino Ruijs
Microsoft Dynamics NAV specialist0
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
- 322 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