Version: v12.1p_2020-04-15/PowerEdition
Browser: Chrome v84, Edge v84 (Chromium) and Firefox 79
The Calendar Daily View (and weekly) does not display an event scheduled when going through the days in the Calendar.
Steps to reproduce the issue:
Source:
public class External implements EntryPoint {
@Override
public void onModuleLoad() {
Calendar calendar = new Calendar();
calendar.setData(CalendarData.getRecords());
calendar.draw();
}
}
CalendarData:
public class CalendarData {
private static CalendarEvent[] records;
private static Date today = new Date();
private static int year = today.getYear();
private static int month = today.getMonth();
private static int start = today.getDate() - today.getDay();
public static CalendarEvent[] getRecords() {
if (records == null) {
records = getNewRecords();
}
return records;
}
public static CalendarEvent[] getNewRecords() {
return new CalendarEvent[]{
new CalendarEvent(1, "Meeting", "Shareholders meeting: monthly forecast report", new Date(year, month, start + 2, 0, 0, 0), new Date(year, month, start + 2, 23, 0, 0))
};
}
}
The console shows the following warnings when opening the page:
ISC_Core.js:1280 *15:46:16.183:WARN:Log:Duplicate load of module 'Core'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Core.js?isc_version=12.1p_2020-04-15.js:5413
ISC_Core.js:1280 *15:46:16.198:WARN:Log:Duplicate load of module 'Foundation'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Foundation.js?isc_version=12.1p_2020-04-15.js:1346
ISC_Core.js:1280 *15:46:16.204:WARN:Log:Duplicate load of module 'Containers'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Containers.js?isc_version=12.1p_2020-04-15.js:415
ISC_Core.js:1280 *15:46:16.235:WARN:Log:Duplicate load of module 'Grids'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Grids.js?isc_version=12.1p_2020-04-15.js:4230
ISC_Core.js:1280 *15:46:16.259:WARN:Log:Duplicate load of module 'Forms'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Forms.js?isc_version=12.1p_2020-04-15.js:3453
ISC_Core.js:1280 *15:46:16.261:WARN:Log:Duplicate load of module 'RichTextEditor'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_RichTextEditor.js?isc_version=12.1p_2020-04-15.js:167
ISC_Core.js:1280 *15:46:16.387:WARN:Log:Duplicate load of module 'Calendar'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Calendar.js?isc_version=12.1p_2020-04-15.js:769
ISC_Core.js:1280 *15:46:16.416:WARN:Log:Duplicate load of module 'DataBinding'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_DataBinding.js?isc_version=12.1p_2020-04-15.js:4161
ISC_Core.js:1280 *15:46:16.422:WARN:Page:Detected loading of more than one skin - 'Enterprise' was loaded when 'Enterprise' was already loaded. See the QuickStart Guide for instructions on correctly changing the current skin
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
isc_setCurrentSkin @ ISC_Core.js:2022
isc.loadSkin @ load_skin.js:13
(anonymous) @ load_skin.js:2517
ISC_Core.js:1280 *15:46:16.424:WARN:Log:New Class ID: 'IAutoFitButton' collides with ID of existing Class object '[Class IAutoFitButton]'. Existing object will be replaced.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
isc_ClassFactorydefineClass @ ISC_Core.js:191
isc_ClassFactorydefineNonRootClass @ ISC_Core.js:186
isc_ClassFactory_defineClass @ ISC_Core.js:185
isc.loadSkin @ load_skin.js:172
(anonymous) @ load_skin.js:2517
ISC_Core.js:1280 *15:46:16.425:WARN:Log:New Class ID: 'HeaderMenuButton' collides with ID of existing Class object '[Class HeaderMenuButton]'. Existing object will be replaced.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
isc_ClassFactorydefineClass @ ISC_Core.js:191
isc_ClassFactorydefineNonRootClass @ ISC_Core.js:186
isc_ClassFactory_defineClass @ ISC_Core.js:185
isc.loadSkin @ load_skin.js:179
(anonymous) @ load_skin.js:2517
Browser: Chrome v84, Edge v84 (Chromium) and Firefox 79
The Calendar Daily View (and weekly) does not display an event scheduled when going through the days in the Calendar.
Steps to reproduce the issue:
- Open the Daily View, and go to the day that the event is scheduled.
- Go to other days using the "Previous" and "Next" arrows.
- Go back to the day of the event and see that the event is not displayed. Resizing the window horizontally always make the "invisible" events appear in the view. When going to other days and coming back, the event is not there again.
Source:
public class External implements EntryPoint {
@Override
public void onModuleLoad() {
Calendar calendar = new Calendar();
calendar.setData(CalendarData.getRecords());
calendar.draw();
}
}
CalendarData:
public class CalendarData {
private static CalendarEvent[] records;
private static Date today = new Date();
private static int year = today.getYear();
private static int month = today.getMonth();
private static int start = today.getDate() - today.getDay();
public static CalendarEvent[] getRecords() {
if (records == null) {
records = getNewRecords();
}
return records;
}
public static CalendarEvent[] getNewRecords() {
return new CalendarEvent[]{
new CalendarEvent(1, "Meeting", "Shareholders meeting: monthly forecast report", new Date(year, month, start + 2, 0, 0, 0), new Date(year, month, start + 2, 23, 0, 0))
};
}
}
The console shows the following warnings when opening the page:
ISC_Core.js:1280 *15:46:16.183:WARN:Log:Duplicate load of module 'Core'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Core.js?isc_version=12.1p_2020-04-15.js:5413
ISC_Core.js:1280 *15:46:16.198:WARN:Log:Duplicate load of module 'Foundation'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Foundation.js?isc_version=12.1p_2020-04-15.js:1346
ISC_Core.js:1280 *15:46:16.204:WARN:Log:Duplicate load of module 'Containers'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Containers.js?isc_version=12.1p_2020-04-15.js:415
ISC_Core.js:1280 *15:46:16.235:WARN:Log:Duplicate load of module 'Grids'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Grids.js?isc_version=12.1p_2020-04-15.js:4230
ISC_Core.js:1280 *15:46:16.259:WARN:Log:Duplicate load of module 'Forms'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Forms.js?isc_version=12.1p_2020-04-15.js:3453
ISC_Core.js:1280 *15:46:16.261:WARN:Log:Duplicate load of module 'RichTextEditor'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_RichTextEditor.js?isc_version=12.1p_2020-04-15.js:167
ISC_Core.js:1280 *15:46:16.387:WARN:Log:Duplicate load of module 'Calendar'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_Calendar.js?isc_version=12.1p_2020-04-15.js:769
ISC_Core.js:1280 *15:46:16.416:WARN:Log:Duplicate load of module 'DataBinding'.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
(anonymous) @ ISC_DataBinding.js?isc_version=12.1p_2020-04-15.js:4161
ISC_Core.js:1280 *15:46:16.422:WARN:Page:Detected loading of more than one skin - 'Enterprise' was loaded when 'Enterprise' was already loaded. See the QuickStart Guide for instructions on correctly changing the current skin
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
isc_setCurrentSkin @ ISC_Core.js:2022
isc.loadSkin @ load_skin.js:13
(anonymous) @ load_skin.js:2517
ISC_Core.js:1280 *15:46:16.424:WARN:Log:New Class ID: 'IAutoFitButton' collides with ID of existing Class object '[Class IAutoFitButton]'. Existing object will be replaced.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
isc_ClassFactorydefineClass @ ISC_Core.js:191
isc_ClassFactorydefineNonRootClass @ ISC_Core.js:186
isc_ClassFactory_defineClass @ ISC_Core.js:185
isc.loadSkin @ load_skin.js:172
(anonymous) @ load_skin.js:2517
ISC_Core.js:1280 *15:46:16.425:WARN:Log:New Class ID: 'HeaderMenuButton' collides with ID of existing Class object '[Class HeaderMenuButton]'. Existing object will be replaced.
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1280
isc_c_Log_addLogMessage @ ISC_Core.js:1278
isc_c_Log_log @ ISC_Core.js:1271
logMessage @ ISC_Core.js:1260
logWarn @ ISC_Core.js:1260
isc_ClassFactorydefineClass @ ISC_Core.js:191
isc_ClassFactorydefineNonRootClass @ ISC_Core.js:186
isc_ClassFactory_defineClass @ ISC_Core.js:185
isc.loadSkin @ load_skin.js:179
(anonymous) @ load_skin.js:2517
Comment