Loading ...
Sorry, an error occurred while loading the content.

responseSchema of datasource

Expand Messages
  • yuilearner
    Hi, My server JSON data is in below format. Can anyone please help me what should be the response schema in client javascript code..?
    Message 1 of 1 , Feb 5, 2009
    • 0 Attachment
      Hi,

      My server JSON data is in below format. Can anyone please help me what
      should be the response schema in client javascript code..?

      "[{"userId":"admin","logonTime":{"nanos":0},"logoutTime":{"nanos":0},"sessionId":"473524996E54B4654DEFC0157161F9C8","logoutType":"WOL"},{"userId":"admin","logonTime":{"nanos":0},"logoutTime":{"nanos":0},"sessionId":"EFED320FDB99B909C40E2E2491C2D5EF","logoutType":"WOL"},{"userId":"admin","logonTime":{"nanos":0},"logoutTime":{"nanos":0},"sessionId":"9AD287FA7E9F56F4DD403FD5416F2063","logoutType":"WOL"}]"

      Above data has 3 rows of data with 5 columns.

      i have written below code
      myDataSource.responseSchema = {
      fields : [ { key: "userId" }, { key: "logonTime" },{ key:
      "logoutTime" },{ key: "sessionId" },{ key: "logoutType" } ]
      };


      but its not working...can anyone please tell me what should be the
      response schema.

      Regards,
    Your message has been successfully submitted and would be delivered to recipients shortly.