G/L Posting Date shows up as DateTime in Crystal Reports

rj5570
Member Posts: 157
How can I force Crystal Reports 2008 to convert all DateTime To Date. I use to use Crystal 8.5 and in the Report Options you can select Convert DateTime To Date.
I know the Native Database only tracks Date. If i run the table, it shows only Date values. But like I said, its showing as a DateTime in Field Explorer if I show field type.
There must be something I am missing in the newer version of crystal.
I know the Native Database only tracks Date. If i run the table, it shows only Date values. But like I said, its showing as a DateTime in Field Explorer if I show field type.
There must be something I am missing in the newer version of crystal.
- So it Goes.
0
Answers
-
How about File->Options->Fields
now you can play around with date, time & datetime with the format editor. select the style you want to see.0 -
thanks for the response, but its not what i want to see.
i am trying to set up a parameter field and i want to only use date. but since posting date is a date time field, i cant set it as a date parameter.
i dont understand why crystal wants to see it as a DateTime field when navision is only using it as a date field
makes no sense- So it Goes.0 -
rj5570 wrote:i am trying to set up a parameter field and i want to only use date. but since posting date is a date time field, i cant set it as a date parameter.
Have you tried? does it give you an error?
Perhaps is an odbc setup that's not seeing the field in it's actual type?
I'm not using the newest version so I can't play around with it. I can only suggest places to look.0 -
Hello Sql 2k5 and 2k has datatime only variable. So navision had to use them, and probably continue using them in 2k8, because it can use the time component for closing Dates.
In your crystal report you need to change your sql statement to
CONVERT("Posting Date", CONVERT(INT, GETDATE()))
This will return the date.0 -
understand, and appreciate your help!
i dont think there is much of a difference between 2008 and crystal xi
where in the odbc set up would that be, there are not many options there- So it Goes.0 -
ara3n wrote:Hello Sql 2k5 and 2k has datatime only variable. So navision had to use them, and probably continue using them in 2k8, because it can use the time component for closing Dates.
In your crystal report you need to change your sql statement to
CONVERT("Posting Date", CONVERT(INT, GETDATE()))
This will return the date.
Not sure if he's using SQL or native.
In my n/odbc setup->options I have Closing Date Support UNCHECKED.0 -
ya mine is unchecked too
what do you have for your identifiers?- So it Goes.0 -
http://technicalsupport.businessobjects ... /5956.aspx
it appears datetime has been a thorn in your side before
http://www.mibuso.com/forum/viewtopic.php?t=22514
I'm trying to download the 30day trial now - see if I get the same thing0 -
yes it has
but the new version doesnt have the option to convert datetime in report options
pain in the arse!- So it Goes.0 -
ya i found that thread on BO forum too
trying it now, will have to set the time to 00,00,00 since NAV doesnt use that field in the Native Database- So it Goes.0 -
How about create a formula field call "Posting Date" or whatever datetime field you're trying to convert to a date.
in the formula use the function CDATE
CDate (DateTimeField)
this will return a clean date only and use this field to match your parameter field with.0 -
so instead of using {G/L_Entry.PostingDate} in my detail, use the CDate formula field? then set a paramater for that field?
guess i am unclear on how to get the data- So it Goes.0 -
if i create the formula to Cdate (datetime.field) how do i run a paramater on that?- So it Goes.0
-
duh....i think i figured that part out now...running it, but doesnt look like it works
i made a paramater ?DateRange then put in the detail of the report the formula @PostingDate (which is a CDate(postingdate))
so that detail looks like this:
@postingdate Document_No.
its taking a bit, I will see what i get on this, but it doesnt look good so far- So it Goes.0 -
I think that worked
I am writing the rest of my report, I will post out come and full solution when i get it- So it Goes.0 -
In the select expert - click New - scroll down till you see the formula field you just created. select that then add how you want it to match
"Is equal to" or whatever - then drill into the blank to see the choices - then click the Parameter field
http://savatage99.googlepages.com/Param ... toVariable
@Posting Date is the Formula to clean the datetime field
Enter Date is the Parameter Field0 -
YES THAT WORKS!!!
\:D/
thanks!- So it Goes.0 -
see that's opens up a whole new world of using formulas in your selection criteria \:D/0
-
yes it does!!!!
We just upgraded to 4.0 so, i have to re-write all my reports- So it Goes.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