Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to Show Multiple Date entries in a Calendar

Posted on 2003-11-20
10
Medium Priority
?
276 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
[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
  • 3
  • 2
  • +1
10 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 1600 total points
ID: 9789713
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
ID: 9789954
Would this be first column or second. What would be the second if this is first
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9790058
Give I & II cols the same formula.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

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

Expert Comment

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

CTRL + SHIFT + F9 Keys

0
 
LVL 19

Expert Comment

by:madheeswar
ID: 9795152
Close Notes and open
0
 
LVL 31

Assisted Solution

by:qwaletee
qwaletee earned 400 total points
ID: 9795168
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
ID: 9795170
Still awake?

Won't you get sleep Qwaletee?

0
 

Author Comment

by:adspmo
ID: 9797235
That worked


0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9804973
madheeswar,
> Still awake?

> Won't you get sleep Qwaletee?
WHo needs it?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 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