Solved

Goto Calendar View and Date by Field Value

Posted on 2010-08-26
5
524 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
  • 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now