Input Date fields on NAV based on MSSQL transactions

liizz
Member Posts: 125
Hi all,
I have an issue when importing records from the MSSQL database to NAV.
I have 2 fields namely Start Date and End Date in my sql table.
On NAV, i want to input the Start Date and End Date on my card form which will display transactions made within that date range on the push action of command button('Import').
Please help
Thanks
Liizz
I have an issue when importing records from the MSSQL database to NAV.
I have 2 fields namely Start Date and End Date in my sql table.
On NAV, i want to input the Start Date and End Date on my card form which will display transactions made within that date range on the push action of command button('Import').
Please help
Thanks
Liizz
0
Comments
-
what problem are ypu facing here?0
-
The filtering is not being done based on the Start Date and End Date on NAV, its importing the whole list of transactions.
Let's say:
Start Date:02/04/2012 ; End Date:06/04/2012.
I should have obtained data within this particular date range.
Thanks
Liizz0 -
What did you write in Import button?0
-
Yes exactly..
But the BStartDate and BEndDate in sql is of datatype datetime.
On NAV, I want to input the date in the following format dd/mm/yy.
This is why I am having this issue about incorrect syntax near the year.
Please advise how to solve it out.
Thanks
Liizz0 -
Check whether CONVERT Function helps you or not
http://www.w3schools.com/sql/func_convert.asp0 -
Is there in NAV codes I can adjust the date format using EVALUATE.
Thanks
Liizz0 -
How is NAV "seeing" the data in the other database? Is this via a "linked table" or other method. This is where you want to handle any data format issues.There are no bugs - only undocumented features.0
-
There is an application which is saving these transactional data in the SQL table and then an ADODB connection has been created to import these data into a temp table on NAV.
I do not want to change the datatype of the EndDate in SQL table.
It would been more appropriate to handle this change to dd/mm/yy in NAV itself.0 -
You don't need to change the datatype in the SQL table. It's already datetime. The same SQL datatype as the NAV database. What you need to do is format it in your SELECT statement using CAST/CONVERT.There are no bugs - only undocumented features.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