Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Recurrence questions (Read 2368 times)
koreson
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Apr 25th, 2009
Recurrence questions
Apr 25th, 2009 at 1:25pm
Print Post  
Dear Sir/Madam,

First my warm congratulations to your great planner control - its fantastic!

But I struggle with some recurrence issues.
I want to make recurrence rules for some very common tasks:

1) a Birthdays that appears yearly on a specific day.
One of many approaches was:

app = new Appointment();
app.StartTime = new DateTime(2009, 5, 6, 12, 0, 0);
app.EndTime = new DateTime(2009, 5, 6, 14, 0, 0);
app.HeaderText = "subject";
app.DescriptionText = "any";

Recurrence rec = new MindFusion.Scheduling.Recurrence();
rec.StartDate = new DateTime(2009, 5, 6);
//rec.EndDate = new DateTime(2009, 12, 31);
rec.Pattern = RecurrencePattern.Yearly;
rec.YearlyRecurrence = YearlyRecurrence.SpecificDate;
rec.RecurrenceEnd = RecurrenceEnd.Never;
app.Recurrence = rec;
calendar.Schedule.Items.Add(app);

Either the occurrences doesnt appears at all or the occurrences are all at the first day of the given month.


2.) For a given single appointment I want to make a recurrence with the following rule: show it monthly at starttime of the appointment AND is one of the occurrences a weekend day set it to the next monday. I have a solution with an interval of 30 days but I can't avoid the occurrences at weekends.
I think this a a very natural user behavior. How can I achieve that.

best regards
koreson
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Recurrence questions
Reply #1 - Apr 27th, 2009 at 11:57am
Print Post  
Hi,

Here are the answers to your questions:

1) Unfortunately setting the StartDate of the recurrence in this case is not sufficient. You have to add the following two lines to the recurrence' initialization code:

Code
Select All
rec.MonthOfYear = 5;
rec.DayOfMonth = 6; 


2) Unfortunately this is not possible at the moment. I will think of a way to expand the Recurrence class to allow for customization and validation of the generated occurrences. If this is important for you, I can build a custom version and send it to you for testing once this feature is ready. Otherwise, it will appear in the next official release.

Kind regards,
Meppy
  
Back to top
 
IP Logged
 
koreson
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Apr 25th, 2009
Re: Recurrence questions
Reply #2 - Apr 27th, 2009 at 5:06pm
Print Post  
Hi,

thanks you for the fast response.

For birthday solution I've found the same way too at weekend.


I'm not so famliar with exception of recurrences but are exceptions a propper way to shift appointments to another day by regarding any rules?
Or what are exceptions for?

If your thinking of this problem please include  celebration days. Its the same kind of problem.
I think a custom list of dates with national holydays could be a good approach.

best regards
koreson
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Recurrence questions
Reply #3 - Apr 28th, 2009 at 6:12am
Print Post  
Hi,

Quote:
I'm not so famliar with exception of recurrences but are exceptions a propper way to shift appointments to another day by regarding any rules?
Or what are exceptions for?


Exceptions are items that do not comply with the recurrence pattern (hence their name). For example, if a user moves an item of a recurrence to another day, change its name or in any other way modify a property of the item, this item is automatically marked as exception to denote that it does no longer conform with the pattern defined by its recurrence. Exceptions can be used to shift occurrences to days other than what the recurrence pattern has specified but its not a good practice.

I have implemented some improvements to the Recurrence class, which will enable you to verify generated occurrences and if necessary modify these occurrences to match specific needs (such as no items on weekends). This new feature will be available in the next Planner.NET release.

Kind regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint