how to save snooze and dismiss when using DataSource

9 posts, 0 answers
  1. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 17 Nov 2014 Link to this post

    I have a Scheduler bind to a datasource that is linked to a SQL-server.
    When I have a schedule with a reminder, I want to save the response to the reminder (Snooze or Dismiss).  When I now Snooze or Dismiss and I close my website and restart the Snooze or Dismiss are gone.

    I have set the DataReminderField to my field in the database, I use AppointUpdate and appointsInsert events.  This all works fine.

    How can I save the Snooze selection and the Dismiss to the Reminder field in the database?

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 20 Nov 2014 Link to this post

    Hello,

    There are two server-side events ReminderSnooze and ReminderDismiss that are fired when user snoozes or dismisses the appointment reminder. In the ReminderDismiss event handler you can clear the reminder field in the data base.
    In ReminderSnooze you can simply modify the reminder string stored in the data base for the current appointment. Here you can find more information about the format used for setting reminder.

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 27 Nov 2014 in reply to Boyan Dimitrov Link to this post

    I'm sorry but I can't find how to 'simply modify the reminder string'.  I have the snoozeminutes (e.SnoozeMinutes) in the ReminderSnooze but how to modify the reminder string?  I can't find the documentation on how to do that.

  5. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 27 Nov 2014 Link to this post

    And what about recurring appointments that have a reminder?  In that case the AppointmentID is not the actual appointmentId but added a '_' and a number.
    How to only dismiss or snooze the reminder of the current appointment and not the entire recurring appointment?
  6. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 02 Dec 2014 Link to this post

    Hello,

    In order to avoid any further confusions I would like to clarify that when a user is snoozing the reminder it creates a cookie and stores the reminder snooze information for that specific appointment in this cookie. In this case it automatically saves, modify the reminder snooze information as soon as user selects the minutes from the drop down list and clicks on the snooze button.

    Same thing applies for the occurring appointments. It creates a cookie and saves the information for that specific appointment.



    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 02 Dec 2014 in reply to Boyan Dimitrov Link to this post

    Hi Boyan,

    I know that but I'm working with a database file to store the appointments.  And when you snooze or dismuss I have to update the database.  I have several problems with doing that :
    - how to I change the reminder string when the user presses snooze.  Can't found any info on how to adjust the string
    - when a recurring job is snoozed or dismissed, how can I only snooze of dismiss that appointment and not the entire recurring job.  The Id in this case has a "_" and a number added.

    Kind regards
  8. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 05 Dec 2014 Link to this post

    Hello,

    The only way to modify the reminder field in the data base is to execute a updated sql query from the code behind ( AppointmentSnooze server-side event handler) and modify the value. Please refer to this forum discussion for executing update sql query from the code behind.

    As I mentioned it is automatically snoozed and stored the information in the session. There is no data changed in the data base in this case.

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 05 Dec 2014 in reply to Boyan Dimitrov Link to this post

    Hi Boyan,

    I think you miss understand my question.  I know how to change and link the data to the database, that is not the issue.  the issue is that I want to save the Snooze to the database
    I know I can do this by changing the DataReminderField.  My problem is that I don't now what the value must be.

    The value is for example :

    BEGIN:VALARMTRIGGER:-PT30MX-TELERIK-UID:d1f02b03-82f2-4267-b24e-89baeb9170e3END:VALARM

    When you press snooze to 5 minutes before start, what is the data string I need to save to the database to change the DataReminderField?

    Kind regards
  10. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 09 Dec 2014 Link to this post

    Hello,

    TRIGGER:-PT30MX shows that the reminder will be shown 30minuts before the appointment start. In order to change it to 5 min you have to modify the value as shown below:
    BEGIN:VALARMTRIGGER:-PT5MX-TELERIK-UID:d1f02b03-82f2-4267-b24e-89baeb9170e3END:VALARM

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017