build 5.0-p20150808
Please consider my Timeline extension:
It's ds.xml is defined as a spring datasource, so i have a Spring bean with a fetch method that's being called.
Whenever my components loads, it fetches one month of events from my server, which it does. However, the first fetch, rows 0-200, is always called twice!
As you can see, the calls differ in that there's a sliiightly altered 'end' date, so i was suspecting it had something to do with me calling the setstartdate and setenddate before setting "autofetchdata", but as you can see in the code, i have commented it out, and rows 0-200 are still being fetched twice!
I'm kind of at a loss here, so i'm hoping that you can find some issue your end...
see my log transcipt here:
Please consider my Timeline extension:
Code:
public static final int[] workdays = {1,2,3,4,5,6,7}; public ScheduleTimeline(boolean canEditEvents, String helpUrl) { super(); setWorkdays(workdays); setCanEditEvents(canEditEvents); setCanEditLane(false); setShowEventDescriptions(true); setDataPageSize(200); setStartDateField("inTime"); setEndDateField("outTime"); setNameField(NubaClientServerConstants.FIELD_LOCATIONNAME); setShowEventDescriptions(true); setDescriptionField("note"); setMinLaneWidth(130); setTimeFormatter(TimeDisplayFormat.TOSHORTPADDED24HOURTIME); setHeaderLevels(createHeaderLevels()); setLaneFields(new ListGridField[]{new ListGridField("title", CommonConstants.constants.reportUser(), CommonConstants.FIELD_WIDTH_REPORTERNAME)}); setLaneEventPadding(2); setEventStyleName("eventWindow"); setCanRemoveEvents(false); setDataSource(DataSource.get("schedule")); /*Date begin = new Date(); Date end = new Date(); CalendarUtil.addMonthsToDate(end, 1); setStartDate(begin); setEndDate(end);*/ setAutoFetchData(true); }
Whenever my components loads, it fetches one month of events from my server, which it does. However, the first fetch, rows 0-200, is always called twice!
As you can see, the calls differ in that there's a sliiightly altered 'end' date, so i was suspecting it had something to do with me calling the setstartdate and setenddate before setting "autofetchdata", but as you can see in the code, i have commented it out, and rows 0-200 are still being fetched twice!
I'm kind of at a loss here, so i'm hoping that you can find some issue your end...
see my log transcipt here:
Code:
2015-08-29 14:24:38.006 DEBUG c.k.n.s.w.ScheduleWebService - fetch!;begin;2015-08-29T00:00:00.000+02:00;end;2015-09-18T23:59:59.999+02:00;startrow;0;endrow;200;limit;200;totalRows;400;reporterid;null;locationId;null 2015-08-29 14:24:38.006 DEBUG c.k.n.s.w.ScheduleWebService - fetch!;begin;2015-08-29T00:00:00.000+02:00;end;2015-09-19T00:00:00.000+02:00;startrow;0;endrow;200;limit;200;totalRows;400;reporterid;null;locationId;null 2015-08-29 14:24:42.051 DEBUG c.k.n.s.w.ScheduleWebService - fetch!;begin;2015-08-29T00:00:00.000+02:00;end;2015-09-19T00:00:00.000+02:00;startrow;200;endrow;400;limit;200;totalRows;600;reporterid;null;locationId;null 2015-08-29 14:24:42.253 DEBUG c.k.n.s.w.ScheduleWebService - fetch!;begin;2015-08-29T00:00:00.000+02:00;end;2015-09-19T00:00:00.000+02:00;startrow;400;endrow;401;limit;200;totalRows;401;reporterid;null;locationId;null
Comment