Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Calendar datasource not working

    I am using smartclient 8.1 Pro.

    The examples shows that there is a dataSource property. This uses the data used by the clientOnly testData. However I was trying to get the data from the database, and was trying to link it to the DataSource the same way I use for Listgrid or any other component. It fetches the data from the database, but is lost somewhere between the DSResponse and the Calendar object in the browser.

    The log shows:

    15:58:26.597:RDQ3:WARN:Time:Invalid time formatter:HH:MM:SS - using 'toTime'
    15:58:44.999:MDN2[E]:WARN:RecordEditor:firstResponderListfilterEditor:autoFetchData is set, but no dataSource is specified, can't fetch
    15:58:45.079:MDN2[E]:WARN:WeekSchedule:eventCalendar_weekView:autoFetchData is set, but no dataSource is specified, can't fetch
    15:58:45.377:MDN2[E]:WARN:Calendar:eventCalendar:Observer: [Calendar ID:eventCalendar] is already observing method 'dataArrived' on object '[ResultSet ID:isc_ResultSet_2 (created by: eventCalendar)]', ignoring


    It says no dataSource. The calendar is created as
    Code:
    isc.Calendar.create({
        ID: "eventCalendar", 
        dataSource: customDS_schedule, autoFetchData: true
    });
    The documentation of Calendar, however does NOT have the property dataSource.

    Pls help.
    regards,
    ~S

    #2
    Calendar extends DataBoundComponent, which documents the dataSource property.

    These logs strongly suggest that your variable ("customDS_schedule") is simply null.

    Comment

    Working...
    X