Announcement

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

    Calendar UpdateEvent by Dragging Date

    I have created a calendar and attached a restdatasource.

    With this I am able to add and fetch events from the server.

    When it comes to editing an event by dragging the date, I experience a javascript error after the server has received the data.

    Code:
    10:04:52.471:XRP8:WARN:Log:TypeError: _3.dataSource.getLocalPrimaryKeyFields is not a function
    - No other errors reported in the developers console.

    I am not overriding any of the eventupdate functions.

    The server returns:

    Code:
    <response>
    <status>success</status>
    <message>Event Update</message>
    <data>
    <record>
    <TIMESLOTID>275</TIMESLOTID>
    <SESSIONID>291</SESSIONID>
    <name>asddasf</name>
    <TIMESLOTVENUE>6</TIMESLOTVENUE>
    <SESSIONTYPEID>42</SESSIONTYPEID>
    <TIMESLOTSTART>2009-07-14T13:30:00</TIMESLOTSTART>
    <TIMESLOTEND>2009-07-14T15:15:00</TIMESLOTEND>
    </record>
    </data>
    </response>
    Where TIMESLOTID is the primaryKey.

    I have also tried returning the following response but experience the same problem.

    Code:
    <response>
    <status>success</status>
    <message>Event Update</message>
    </response>

    #2
    Try specifying the DataSource as the actual DataSource instance (via isc.DataSource.get()) instead of as a String. If that fixes it please let us know.

    Comment


      #3
      Thank you that has solved the issue.

      Comment

      Working...
      X