RefreshView
Definition
This is a method of the SAPCalendar.Calendar library. It is used whenever there is a change made to the calendar or an appointment in the calendar.
Use
This method is used when the appearance of the calendar or data within an appointment of the calendar is changed during runtime. These changes include:
-
Modifying, adding or deleting an appointment
-
Modifying, adding or deleting the working time in the calendar
-
Modifying the font, style or appearance of the calendar
-
Setting an active date for the calendar using the ShowDays or GoToDate functions

We recommend that you use this method when you add one or more appointments to the calendar. You do not have to refresh the views for each appointment that you add. Hence, create the required appointments, add these appointments to the calendar and then use this function to refresh the calendar views.
Structure
The RefreshView function has the following characteristics:
Name
RefreshView
Signature
Function RefreshView(ViewToRefresh as CalendarViewType)
Parameters
ViewToRefresh as CalendarViewType

The CalendarViewType can contain the following enum values:
1 – For appointment view
2 – For date picker view
Example
Assume that the view is appointment view. The application user has changed the content in the subject. Now, the calendar view must be refreshed.

‘Define the variable
Public enum CalendarViewType
AppointmentView = 1
DatePicker = 2
End enum
Dim ViewToRefresh as CalendarViewType
‘Assign value to the variable
viewToRefresh = CalendarViewType.AppointmentView
pObjCalendar.RefreshView ViewToRefresh
This method refreshes the view of the calendar by changing the content of the subject.