Solved

Goto Calendar View and Date by Field Value

Posted on 2010-08-26
5
530 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 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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.
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

707 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