Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
260
Can't get calendars to refresh data
posted

I have a need to refresh calendar information every few minutes (or at least check for changes).  The problem is that I can't find any way to refresh them. I have tried:

calInfo.DataBindingsForAppointments.RefreshData()

followed by a refresh on each of the view and nothing happens.  I updated the datasets, and indeed they are updating.  It just isn't making it to the calendar.

I set up the appointments part with this code:

' Set up data binding for Appointments

Dim appointmentsDataBinding As AppointmentsDataBinding = calInfo.DataBindingsForAppointments

appointmentsDataBinding.AllPropertiesMember = "AllProperties"

 

appointmentsDataBinding.StartDateTimeMember = "StartDateTime"

appointmentsDataBinding.EndDateTimeMember = "EndDateTime"

appointmentsDataBinding.SubjectMember ="Subject"

appointmentsDataBinding.AllDayEventMember ="AllDayEvent"

appointmentsDataBinding.OwnerKeyMember ="OwnerKey"

appointmentsDataBinding.SetDataBinding(dsAppts,"ScheduleAppointments")

appointmentsDataBinding.BindingContextControl =Me

appointmentsDataBinding.BindingContext =Me.BindingContext

 

I reload the dataset in a seperate function:

Private Sub LoadCalendar()

Dim SQL As String

dsAppts = Nothing

SQL ="SELECT * FROM ScheduleAppointments"

Main.db.BuildTable(SQL, dtAppts,"ScheduleAppointments", dsAppts)
' Routine to build a data table and data set

calInfo.DataBindingsForAppointments.RefreshData()

calMonth.Refresh()

calDay.Refresh()

calWeek.Refresh()

End Sub

 

What am I missing?  The data table and the dataset do update to the latest data.

 

Parents
No Data
Reply
  • 53790
    posted

    Hi,

    Have you been able to resolve your issue ? Please send me feedback. If you have any questions, do not hesitate to ask me

    Regards

Children
No Data