This is a migrated thread and some comments may be shown as answers.

Occurrence appears when an exception exists for it.

1 Answer 24 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 26 Jul 2018, 10:53 PM

Hello.

Sorry I didn't follow your indication to open a new ticket.

There it is.

Here is my problem: 

1) I create a recurrent appointment (i.e.:  every week day at some time).

2) I make an exception (i.e.: I move one occurrence on the week to one our later)

3) I persist the data

4) When I reload from DB, both the occurrence and the exception are shown.

I attached one pic (recurrence.png) showing this.

I managed to create a project where I show how I save and recover the appointment and the exception. The example shows exactly how I do it, except for the persistence layer) (see SchedulerTest.png, which is a zip file in fact)

To make clear my point, I took a screen shot of the sample project showing what I want to fix (scheduletest.png).

There is something I am missing, but can't figure out what.

Thanks.

 

 

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 27 Jul 2018, 02:30 AM

Hi.

Well, I figured it out finally...

My error was as follows:  on creating the exceptions I was assigning the wrong exception date.

I should construct it with the exception's date but with the original hour...

I misunderstood the meaning of  the property ExceptionDate.

 

Sorry for all the messaging... you can mark this as solved.

Best regards.

Tags
ScheduleView
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or