Groff Automation Forum Index
Making software work for you
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in 

Log in to check your private messagesLog in to check your private messages   

DateTime Parameters

 
Post new topic   Reply to topic    Groff Automation Forum Index -> Program Help
View previous topic :: View next topic  
Author Message
kitmancraig

Joined: 12 Sep 2008
Posts: 9
PostPosted: Mon Sep 29, 2008 4:50 am    Post subject: DateTime Parameters Reply with quote

I have a datetime parameter that is not being passed the full information when I use the Today dynamic text setting. I am unable to change the datetime parameter to a date because it is part of a query in the database. Any ideas how I can resolve this issue?
Back to top
View user's profile Send private message
pockeyfan

Joined: 11 Sep 2008
Posts: 16
PostPosted: Mon Sep 29, 2008 7:55 pm    Post subject: Reply with quote

I'm not very clear what you want...

dynamic date: [ymd] = "2008-09-30"
[y]-[m]-[d] = "2008-09-30"

Which format do you need?
Back to top
View user's profile Send private message
kitmancraig

Joined: 12 Sep 2008
Posts: 9
PostPosted: Tue Sep 30, 2008 2:30 am    Post subject: Reply with quote

I have a parameter in a report that requires a DateTime being passed to it in the format:

yyyy-mm-dd hh:mm:ss

In version 6 I simply passed the dynamic value %Today%:0. This worked fine. It was obviously passing the whole value to the report.

When I pass the [Today] dynamic value to the parameter and then view the report I am then prompted to select a date.
Back to top
View user's profile Send private message
pockeyfan

Joined: 11 Sep 2008
Posts: 16
PostPosted: Tue Sep 30, 2008 3:34 am    Post subject: Reply with quote

Hi, I'm using version 7.0.7.0
For your example, [today] is not supported, and try to use
[ymd][T], which is "2008-09-30 17:35:52"

If you're using version 7.0.7.0, [ymd][T] should works for you.
Back to top
View user's profile Send private message
kitmancraig

Joined: 12 Sep 2008
Posts: 9
PostPosted: Tue Sep 30, 2008 4:12 am    Post subject: Reply with quote

I am afraid that this didn't work. Any other ideas?
Back to top
View user's profile Send private message
pockeyfan

Joined: 11 Sep 2008
Posts: 16
PostPosted: Wed Oct 01, 2008 7:58 pm    Post subject: Reply with quote

Well, it should work...
Then, you may create a new blank report with input parameter, say "test", then add to CD, and try the dynamic text from the help file to find one which matches your case....
Back to top
View user's profile Send private message
kitmancraig

Joined: 12 Sep 2008
Posts: 9
PostPosted: Thu Oct 02, 2008 1:28 am    Post subject: Reply with quote

All of your help is really appreciated and I will try a new report but I am quite sure I have tried the all. The value being passed to the report is simply not a datetime. Problem with MS databases apparently. They don't have a date parameter for queries.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Groff Automation Forum Index -> Program Help All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You can delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

Igloo Theme Version 1.0 :: Created By: Andrew Charron