Hi,
GWT Version : 2.4.0
SmartGWT Version : 5.0p
SmartGWT Build Date : 19/03/2015 10:13
Browser: IE11
We are having issues using these two classes: com.smartgwt.client.widgets.calendar.Calendar AND com.smartgwt.client.widgets.calendar.CalendarEvent.
We have two instances of the same program. One shows the events on Calendar while other one doesn't.
The data passed to both is identical. The only difference I can see is one program is running on tomcat/SQL-Server 2008 (works fine) and other one on tomcat/SQL-Server 2005 (doesn't work).
Here are two little pieces of code:
public static CalendarEvent convertToCalendarEvent(ListGridRecord listRecord) {
CalendarEvent event = new CalendarEvent();
for (String attributeName : listRecord.getAttributes()) {
if (!attributeName.startsWith("__")) {
event.setAttribute(attributeName, listRecord.getAttributeAsObject(attributeName));
}
}
return event;
}
---
private void createCalendar() {
calendar = new Calendar() {
@Override
protected String getDayBodyHTML(Date date, CalendarEvent[] events, Calendar calendar, int i, int i1) {
String returnStr = date.getDate() + "";
if(events != null && events.length > 0) {
returnStr += imgHTML(ImageConstants.DEADLINE_16, 16, 16, "image", "style='margin-top:6px'", null);
}
return returnStr;
}
};
calendar.setWidth(visibleWidth);
calendar.setCanHover(true);
calendar.setHoverWidth(500);
........
We need to show this little icon (imgHTML as above) on Calendar when there is an Event on a date. As I mentioned it seems to work for one instance of program and doesn't work for other.
Can you please help?
Regards,
.
GWT Version : 2.4.0
SmartGWT Version : 5.0p
SmartGWT Build Date : 19/03/2015 10:13
Browser: IE11
We are having issues using these two classes: com.smartgwt.client.widgets.calendar.Calendar AND com.smartgwt.client.widgets.calendar.CalendarEvent.
We have two instances of the same program. One shows the events on Calendar while other one doesn't.
The data passed to both is identical. The only difference I can see is one program is running on tomcat/SQL-Server 2008 (works fine) and other one on tomcat/SQL-Server 2005 (doesn't work).
Here are two little pieces of code:
public static CalendarEvent convertToCalendarEvent(ListGridRecord listRecord) {
CalendarEvent event = new CalendarEvent();
for (String attributeName : listRecord.getAttributes()) {
if (!attributeName.startsWith("__")) {
event.setAttribute(attributeName, listRecord.getAttributeAsObject(attributeName));
}
}
return event;
}
---
private void createCalendar() {
calendar = new Calendar() {
@Override
protected String getDayBodyHTML(Date date, CalendarEvent[] events, Calendar calendar, int i, int i1) {
String returnStr = date.getDate() + "";
if(events != null && events.length > 0) {
returnStr += imgHTML(ImageConstants.DEADLINE_16, 16, 16, "image", "style='margin-top:6px'", null);
}
return returnStr;
}
};
calendar.setWidth(visibleWidth);
calendar.setCanHover(true);
calendar.setHoverWidth(500);
........
We need to show this little icon (imgHTML as above) on Calendar when there is an Event on a date. As I mentioned it seems to work for one instance of program and doesn't work for other.
Can you please help?
Regards,
.