2014-03-26 1 views
0

을 정의되지 않습니다,하지만 난 때 스토어로드이 오류가 enter image description here의 ExtJS 확장 가능한 캘린더 데이터 [M.EndDate.name] 내가 확장 캘린더 작업이있는 사용자 정의 아약스 수장 작품을 만들기 위해 노력하고있어

달력 날짜를 표시하지 않도록, 여기

Ext.apply(Extensible.calendar.data.EventMappings, { 

     StartDate: {name: 'fecha_reservacion', mapping: 'fecha_reservacion', type: 'date', dateFormat: 'c'}, 

    }); 
Extensible.calendar.data.EventModel.reconfigure(); 

var eventStore = Ext.create('Ext.data.Store', { 

     fields: [ 
      {name: 'id', type: 'int'}, 
      {name: 'fecha_reservacion', type: 'date', dateFormat: 'c'}, 
     ], 
     proxy: { 
      type: 'ajax', 
      url: '/reservacion/get', 
      reader: { 
       type: 'json' 

      } 
     }, 
     autoLoad: true 
}); 

Ext.create('Extensible.calendar.CalendarPanel', { 
     eventStore: eventStore, 
     calendarStore: calendarStore, 
     renderTo: 'content', 
     title: 'Custom Event Mappings', 
     width: 800, 
     height: 700, 
    }); 

답변

0

당신의 매핑이 잘못 몇 가지 코드를입니다 name: 'fecha_reservacion'name: 'StartDate'

Ext.apply(Extensible.calendar.data.EventMappings, { 
    StartDate: {name: 'fecha_reservacion', mapping: 'fecha_reservacion', type: 'date', dateFormat: 'c'}, 
    // add here all your fields 
}); 
해야한다

그리고 다른 필드에도 매핑을 추가해야합니다.

관련 문제