353 Lotus blogs updated hourly. Who will post next?
Home
|
Downloads
|
Events
|
Jobs
|
Twitter
|
Bookmarks
|
Pods
|
Forum
|
Blogs
|
Search
|
myPL
|
About
February 14, 2012, 04:42:57 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Calendar
Login
Register
Planet Lotus Forum
>
Lotus Community
>
Help!
>
Lotus Notes forms / views date issue
Pages: [
1
]
« previous
next »
Print
Author
Topic: Lotus Notes forms / views date issue (Read 583 times)
0 Members and 1 Guest are viewing this topic.
testor15
Newbie
Offline
Posts: 4
Lotus Notes forms / views date issue
«
on:
February 06, 2010, 02:03:56 PM »
I am a long time programmer but very new to Lotus notes programming, tasked with a problem. We have a form with a view allowing us to see all work projects created since the system was setup. There is a need for a view to only show projects only after a set date, in this case '09/25/2009'. The field name is CreateDate. The form name is 'Proj'.
The form was created in 4.6 and I am using Lotus Designer 8.5.
The form structure for the CreateDate field is set to Date/Time, width '8', Display Date, year in 21st century, Show only month, day and year.
It appears I should be able to modify the view in the 'View Selection' to something like:
SELECT ((Form = "Proj") & CreateDate > "09/25/2009")
I can't find a solution for this, any hints or help would be greatly appreciated.
«
Last Edit: February 06, 2010, 02:05:36 PM by testor15
»
Logged
erbrooks
Newbie
Offline
Posts: 1
Re: Lotus Notes forms / views date issue
«
Reply #1 on:
February 06, 2010, 02:37:51 PM »
You're close...
Dates in the @Formula language are wrapped in brackets [] not quotes "". Quotes are used for strings (like FirstName = "John")
The width and display options on the form don't matter for the view, all that matters is that your documents (which in your case are your projects) have the field on them as a date.
So, assuming you and your server are in the US:
SELECT ((Form = "Proj") & CreateDate > [09/25/2009])
If you're not, or this is an international application then I would use the @Date function instead. E.g. [1/2/2009] means "January 1, 2009" for the US but "February 1, 2009" elsewhere. If you need to worry about that then a more reliable alternative would be:
SELECT ((Form = "Proj") & CreateDate > @Date(2009;09;25))
Logged
testor15
Newbie
Offline
Posts: 4
Re: Lotus Notes forms / views date issue
«
Reply #2 on:
February 06, 2010, 09:08:57 PM »
Thank you! It worked perfectly!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Lotus Community
-----------------------------
=> The Soap Box
=> Help!
-----------------------------
Planet Lotus
-----------------------------
=> General Information
=> Suggestion Box
=> Change Log
Loading...