I am new to Servoy. I have a solution which presents data in a calendar format using a series of portals based on the clientid plus the date. I wrote a method to move the date from one day to another. The method works well and changes the entry date but the calendar does not refresh the porals. I am obviously missing something. see code below:
In the calendar file (Schedules) I capture the index number of the initial entry. The user is then taken to a global date field to select a new date:
globals.gselected_schedentry_index = schedules_to_schedule_entrys_mon1.schedule_entrysid;
elements.gschedule_move_date.visible = true;
elements.gschedule_move_date.requestFocus();
Upon data change the following method runs:
schedules_to_schedule_entrys_mon1.setSelectedIndex(globals.gselected_schedentry_index);
schedules_to_schedule_entrys_mon1.shift_date = globals.gschedule_calendar_move_date;
I then tried each and all of the following:
forms.schedule_entrys.controller.saveData();
forms.schedule_entrys.controller.loadRecords();
forms.schedule_entrys.elements.shift_date.requestFocus();
elements.gschedule_move_date.visible = false;
forms.schedule_entrys.controller.show();
controller.show();
On screeen the Calendar viewer still shows the date in the portal before the change. I expected it to immediately display the entry in the new portal.
Any help would be appreciated.
Thanks.
Carmen