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

RecurrenceEditor Loses Exceptions On PostBack?

1 Answer 33 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 24 Feb 2014, 02:04 PM
Am I forgetting to do something here? 

I tried two difference methods:

Method 1:
---------------------
I retrieve my record from the DB
I place the string from my loaded record into the RecurrenceEditor's RecurrenceRuleText field
I make changes to other areas of my record (I do not touch the RecurrenceEditor)
I save my record again...
I find that the RecurrenceEditor's .RecurrenceRuleText field no longer holds "Exceptions", they have been erased

Method 2:
---------------------
I retrieve my record from the DB
I load the RecurenceRuleText into a RecurrenceRule object.
I place the RecurrenceRule object into the RecurrenceEditor's RecurrenceRule field
I make changes to other areas of my record (I do not touch the RecurrenceEditor)
I save my record again...
I find that the RecurrenceEditor's .RecurrenceRule field no longer holds "Exceptions", they have been erased

1 Answer, 1 is accepted

Sort by
0
Ben
Top achievements
Rank 1
answered on 24 Feb 2014, 07:27 PM
Well, I ended up just loading the original RecurrenceRule, and then adding back the "lost" exceptions before I resaved the record.

It's a bandaid, but it works.
Tags
Scheduler
Asked by
Ben
Top achievements
Rank 1
Answers by
Ben
Top achievements
Rank 1
Share this question
or