Solved

How to Show Multiple Date entries in a Calendar

Posted on 2003-11-20
10
263 Views
Last Modified: 2013-12-18
Hi GUys



This one is probably going to be really hard


We touched on it earlier in
http://www.experts-exchange.com/Applications/Email/Lotus_Notes/Q_20803090.html

Any way here goes again:...........


I have a form that is going to be used for tracking the WhereAbouts of the person who creates it.

The form is multi-use
It will be used for tracking people  who are Sick ,Other and Mission

If the choice is Sick or Other then StartDate and EndDate are Used

If the choice is Mission on the form there are 4 pairs of Calendar fields
StartDate_1....4 and EndDate_1....EndDate_4
All may be used, for sure StartDate_1 and EndDate_1 will be used

This has to be shown on a calendar.
They will be used to track where a person will be within the Date range.

Part of the requirement is that if the fields are not empty they will show up on a calendar view.

I was thinking it is probably easiest that when the original fom is saved that a script create an new form, One for each date range that is not Blank.

If there is another way to do this I would love to know. They have to show up on a calendar if the date ranges are not empty.

ANy help appreciated\

Regard

James
0
Comment
Question by:adspmo
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 400 total points
Comment Utility
You don't have to create doc for each date range

In the calendar, specify Formula like this

d1 := @if( StartDate_1 = "" | EndDate_1 = ""; ""; @Explode( @TextToTime( Text(StartDate_1) + "-" + @Text(EndDate_1) ) ));
d2 := @if( StartDate_2 = "" | EndDate_2 = ""; ""; @Explode( @TextToTime( Text(StartDate_2) + "-" + @Text(EndDate_2) ) ));
d3 := @if( StartDate_3 = "" | EndDate_3 = ""; ""; @Explode( @TextToTime( Text(StartDate_3) + "-" + @Text(EndDate_3) ) ));
d4 := @if( StartDate_4 = "" | EndDate_4 = ""; ""; @Explode( @TextToTime( Text(StartDate_4) + "-" + @Text(EndDate_4) ) ));

@Trim( d1 : d2 : d3 : d4 );



This will make sure if there are any null date ranges then it will ignore it in the date list

~Hemanth
0
 

Author Comment

by:adspmo
Comment Utility
Would this be first column or second. What would be the second if this is first
0
 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
Give I & II cols the same formula.
0
 

Author Comment

by:adspmo
Comment Utility
They show up in the designer view but not in the calendar view
0
 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
Rebuild the index by activating following keys simultaneously (from the client open to a view and )

CTRL + SHIFT + F9 Keys

0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 19

Expert Comment

by:madheeswar
Comment Utility
Close Notes and open
0
 
LVL 31

Assisted Solution

by:qwaletee
qwaletee earned 100 total points
Comment Utility
YOu need to apply @TextToTime to teh final result.  Exploding a date range returns a string list of the individual dates, not a datetime list.  @Trim only works on strings anyway.

So just modify the last line:

@TextToTime(@Trim( d1 : d2 : d3 : d4 ));

Otherwise, it remains as a string list, and even though they LOOK like dates, the calenda does not where to put them.
0
 
LVL 19

Expert Comment

by:madheeswar
Comment Utility
Still awake?

Won't you get sleep Qwaletee?

0
 

Author Comment

by:adspmo
Comment Utility
That worked


0
 
LVL 31

Expert Comment

by:qwaletee
Comment Utility
madheeswar,
> Still awake?
>
> Won't you get sleep Qwaletee?
WHo needs it?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

11 Experts available now in Live!

Get 1:1 Help Now