?
Solved

Goto Calendar View and Date by Field Value

Posted on 2010-08-26
5
Medium Priority
?
532 Views
Last Modified: 2013-12-18
Hello,

I have a PTO database that has a button to open the basic Calendar view; however, I would like the button to open the calendar and then go to the day off requested. Example, I have a field called StartDate and I would like the button to open up the calendar and go to that date.

So far I have been trying to use the @Command( [CalendarGoTo]), but I can't figure out how to get the value from the StartDate field. Does this need to be done via Lotusscript?

Thanks in advance.
0
Comment
Question by:ajl7519
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 1

Author Comment

by:ajl7519
ID: 33535182
This was embarrassingly simple. I just used this. It only highlights the day and it doesn't open it. What code will open the day?


date := StartDate;
@Command( [SwitchView] ; "Calendar" );
@Command( [CalendarGoTo]; date);

Open in new window

0
 
LVL 22

Expert Comment

by:mbonaci
ID: 33539839
What exactly do you mean when you say "open the day"?
Open a document shown in that date or change the calendar view display property to show only selected date (not week or month)?
0
 
LVL 1

Author Comment

by:ajl7519
ID: 33543919
Yes, open the view so it only shows that day. Right now it displays the month with the day highlighted. I want to see only the day. I was getting errors when the StartDate field was blank so I add an if statement.

date := StartDate;
@If(date="";@Command( [SwitchView] ; "Calendar" );
@Command( [SwitchView] ; "Calendar" ) & @Command( [CalendarGoTo]; date))

Open in new window

0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 2000 total points
ID: 33547289
I can't find them in the documentation, but I found this that might help you to modify the view:

@Command([CalendarFormat]; "type")

where type is
1 : One day format
2: Two days
7: One week
14: Two weeks
30: One months

The double quotes are required.
0
 
LVL 1

Author Comment

by:ajl7519
ID: 33549355
Perfect. I looked all over. This will do the trick.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question