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

Web and Winform appointment recurrence

5 Answers 89 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 11 Mar 2010, 04:59 PM
Hi,

I have created a system in which I edit a recurrence from a web page but want to use a windows service to process the recurrences. 

I have the web page creating a recurrence string as shown below:

DTSTART:20100319T000000Z
DTEND:20100319T000100Z
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=FR;WKST=MO

I am then in the service using that string to generate the next date in the sequence, change the recurrence string and save back into the database.  In addition if the recurrence is of a finite count I need to decrease the count that is within the string.

Other than manipulating my original string and saving that back into the database how do I do this?  The class structure is completely differnt to it's web counterpart which seems a little odd given that in theory the functionality should be the same.

Regards,

Jon



5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 16 Mar 2010, 12:08 PM
Hi Jon,

You can reference the Telerik.Web.UI assembly in your windows service and use the RecurrenceRule class to process the recurrences. You can parse recurrence rules using TryParse. Individual occurrences are available in the Occurrences collection. The ToString method converts the recurrence rule back to string.

I hope this helps.

Sincerely yours,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jon
Top achievements
Rank 1
answered on 16 Mar 2010, 01:00 PM
Hi Tsvetomir,

I did try that but an error came up and it sounded like an error indicating that the web component couldn't be used in a service app.

I've got a work around going for the time being so will have a look at this in the future.

Regards,

Jon
0
abhijit
Top achievements
Rank 1
answered on 15 Jul 2011, 03:57 PM
hi jon,

i am facing same problem.

can you please tell me what work around you did.

waiting for reply
0
Jon
Top achievements
Rank 1
answered on 15 Jul 2011, 04:02 PM
Hi,

It was so long ago that I can't remember now I'm afraid, I think that I did some custom translation once reading it back in the service app.

I remember that it was a royal pain in the backside.

Good luck,

Jon
0
abhijit
Top achievements
Rank 1
answered on 15 Jul 2011, 04:24 PM
hi jon,

anyways thanks for quick reply
Tags
Scheduler and Reminder
Asked by
Jon
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Jon
Top achievements
Rank 1
abhijit
Top achievements
Rank 1
Share this question
or